Skip to content

Commit b7bd50a

Browse files
committed
[RNA-Seq] DGE: Unfilter tech reps from unnorm counts
1 parent eead37a commit b7bd50a

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

RNAseq/Workflow_Documentation/NF_RCP/workflow_code/bin/dge_deseq2.Rmd

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,14 @@ if (params$DEBUG_MODE_ADD_DUMMY_COUNTS) {
181181
}
182182
print(sprintf("DEBUG: %s: Replacing original counts with random values from 0 to 5000", Sys.time()))
183183
}
184+
185+
# Save a copy of the original counts before any filtering
186+
if (params$microbes) {
187+
original_counts <- counts
188+
} else {
189+
original_txi_counts <- txi.rsem$counts
190+
}
191+
184192
if (params$microbes) {
185193
} else {
186194
## Add 1 to genes with lengths of zero - needed to make DESeqDataSet object
@@ -305,9 +313,9 @@ normCounts <- as.data.frame(counts(dds, normalized = TRUE))
305313
VSTCounts <- as.data.frame(assay(vst(dds)))
306314
write.csv(
307315
if (params$microbes) {
308-
counts
316+
original_counts
309317
} else {
310-
txi.rsem$counts
318+
original_txi_counts
311319
},
312320
file = file.path(params$output_directory,
313321
paste0(if(params$microbes) "FeatureCounts_Unnormalized_Counts"

RNAseq/Workflow_Documentation/NF_RCP/workflow_code/conf/local.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ process {
3636
}
3737
withName:ALIGN_STAR {
3838
cpus = { 4 }
39-
memory = { 48.GB * task.attempt }
39+
memory = { 72.GB * task.attempt }
4040
errorStrategy = {
4141
[137].contains(task.exitStatus) ? 'retry' : 'terminate'
4242
}

RNAseq/Workflow_Documentation/NF_RCP/workflow_code/conf/slurm.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ process {
3737
}
3838
withName:ALIGN_STAR {
3939
cpus = { 4 }
40-
memory = { 64.GB }
40+
memory = { 72.GB }
4141
errorStrategy = {
4242
[137].contains(task.exitStatus) ? 'retry' : 'terminate'
4343
}

0 commit comments

Comments
 (0)