-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added logic for transformation method #206
Conversation
|
assets/RNAseq_report.Rmd
Outdated
|
||
# Write cds assay table to file | ||
write.table(counts(cds, normalized=T), paste("differential_gene_expression/gene_counts_tables/deseq2_table.tsv", sep=""), append=F, quote = F, sep = "\t", eol = "\n", na = "NA", dec = ".", row.names = T, col.names = T, qmethod = c("escape", "double")) | ||
write.table(counts(cds, normalized=T), paste0("differential_gene_expression/gene_counts_tables/deseq2_table.tsv"), append=F, quote = F, sep = "\t", eol = "\n", na = "NA", dec = ".", row.names = T, col.names = T, qmethod = c("escape", "double")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could the output be named more explicitly? Like deseq2_normalized_gene_counts.tsv
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renaming to deseq2_library_scaled_gene_counts.tsv
to not produce confusion with the rlog/vst normalization stuff that is done later. I'll also add this file to the file explanation in the expand/collapse box
@@ -1808,18 +1835,41 @@ for (file in contrast_files){ | |||
mat$gene_name <- NULL | |||
mat <- data.matrix(mat) | |||
|
|||
# Skip the heatmaps for CI tests | |||
# Skip the heatmaps for CI tests because especially png() works only very unreliably for the heatmaps for some reason |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unreliably in terms of md5sums?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, unfortunately sometimes it also just does not work. I.e. Unable to start png device
is thrown and the pipeline stops.
@@ -2140,10 +2187,12 @@ as.character(params$revision), | |||
"` pipeline [^5], which was written using the nf-core template [@ewels2020nf]. For differential expression analysis, the read quantification data resulting from `", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this [^5]
the citation number?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If so, it would be missing for the other citations like @love2014...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, it adds a superscript number and also links it to the citation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah sorry, no, some citations are just added without the reference thing. The reference is only done for links, i.e. [^5] moves the report down to this link: https://github.com/qbic-pipelines/rnadeseq. The other citations like love2014 are just listed without being clickable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason why this is not consistent with the clickable references?
assets/RNAseq_report.Rmd
Outdated
" `, `AnnotationDbi v", version_annotation, | ||
"` and `", name_species, " v", version_annotation, | ||
"` were employed. ", database_string, ".\n", | ||
"Pathways were classified as enriched for those genes with padj <= ", pval_text, "." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Pathways were classified as enriched for those genes with padj <= ", pval_text, "." | |
"Pathways were classified as enriched for genes with an adjusted p-value below ", pval_text, "." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
counter proposal: an adjusted p-value <= pval_test
? I prefer having <= (or alternatively "less than or equal to") in the text so people don't wonder, even if that is an edge case
Co-authored-by: SusiJo <43847534+SusiJo@users.noreply.github.com>
Co-authored-by: SusiJo <43847534+SusiJo@users.noreply.github.com>
Co-authored-by: SusiJo <43847534+SusiJo@users.noreply.github.com>
Co-authored-by: SusiJo <43847534+SusiJo@users.noreply.github.com>
Co-authored-by: SusiJo <43847534+SusiJo@users.noreply.github.com>
If you are changing the parameter name of |
Param is now called adj_pval_threshold and this is reflected in usage.md, I assume that is what you meant? I'll ask @qbicStefanC about the renaming and if necessary do a follow-up PR to rename it back to pval_threshold |
Co-authored-by: SusiJo <43847534+SusiJo@users.noreply.github.com>
Co-authored-by: SusiJo <43847534+SusiJo@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚀
This PR adds a threshold for size factor variance (0.05) above which the pipeline will automatically use rlog transformation even if the user requests vst (can be overridden by user).
Additionally, heatmaps are now saved inside a trycatch (especially
png()
often throws an error), meanSdPlot has now correct plot titles depending on rlog/vst and < or > comparisons (is pval < 0.05) are now always <= or >= (is pval <= 0.05) as this is also what thegost()
function does.@qbicStefanC
PR checklist
nf-core lint
).nextflow run . -profile test,docker --outdir <OUTDIR>
).docs/usage.md
is updated.docs/output.md
is updated.CHANGELOG.md
is updated.README.md
is updated (including new tool citations and authors/contributors).