Added logic for transformation method#206
Conversation
|
|
|
||
| # 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.
Could the output be named more explicitly? Like deseq2_normalized_gene_counts.tsv ?
There was a problem hiding this comment.
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
| 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.
Unreliably in terms of md5sums?
There was a problem hiding this comment.
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.
Is this [^5] the citation number?
There was a problem hiding this comment.
If so, it would be missing for the other citations like @love2014...
There was a problem hiding this comment.
yep, it adds a superscript number and also links it to the citation
There was a problem hiding this comment.
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.
Is there a reason why this is not consistent with the clickable references?
| " `, `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.
| "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.
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>
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.mdis updated.docs/output.mdis updated.CHANGELOG.mdis updated.README.mdis updated (including new tool citations and authors/contributors).