Quynh Nhu Nguyen
07/25/2025, 10:54 AMlibrary(stageR)
stageRObj <- stageRTx(pScreen = pScreen, pConfirmation = pConfirmation,
pScreenAdjusted = FALSE, tx2gene = tx2gene)
stageRObj <- stageWiseAdjustment(stageRObj, method = "dtu", alpha = 0.05)
stageR_results <- getAdjustedPValues(stageRObj, order = FALSE,
onlySignificantGenes = TRUE)
# Extract significant genes and transcript groups
sig_genes_stageR <- unique(stageR_results$geneID[stageR_results$gene < 0.05])
sig_tg_stageR <- stageR_results$txID[stageR_results$transcript < 0.05]
# Filter original DEXSeq table
dxr_stageR <- dxr_original_df[
dxr_original_df$gene_id %in% sig_genes_stageR &
dxr_original_df$transcript_group_ids %in% sig_tg_stageR, ]
Problem: Some transcript returned by stageR have padj > 0.05 in the original DEXSeq output table.
Question: Should I re-filter again based on DEXSeq2 padj, or is stageR's adjustment sufficient? From what I understand, stageR should already handle multiple testing properly — is that correct?
Thank you for your consideration.
Best,
NhuThomas Danhorn
07/25/2025, 8:07 PMgetAdjustedPValues suggests that they have been adjusted (there might be a separate function to get the unadjusted/raw p-values). The definitive answer would come from looking at the source code.Quynh Nhu Nguyen
07/26/2025, 8:43 PM