File tree Expand file tree Collapse file tree 6 files changed +50
-7
lines changed
RNAseq/Workflow_Documentation/NF_RCP/workflow_code Expand file tree Collapse file tree 6 files changed +50
-7
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ process {
60
60
container = "quay.io/biocontainers/rsem:1.3.3--pl526ha52163a_0"
61
61
}
62
62
63
- withName: 'GET_ACCESSIONS|FETCH_ISA|ISA_TO_RUNSHEET|RUNSHEET_FROM_ISA|GENERATE_MD5SUMS|SOFTWARE_VERSIONS|UPDATE_ISA_TABLES|PARSE_QC_METRICS|REMOVE_RRNA_FEATURECOUNTS' {
63
+ withName: 'GET_ACCESSIONS|FETCH_ISA|ISA_TO_RUNSHEET|RUNSHEET_FROM_ISA|GENERATE_MD5SUMS|SOFTWARE_VERSIONS|UPDATE_ISA_TABLES|PARSE_QC_METRICS|REMOVE_RRNA_FEATURECOUNTS|MD5SUM ' {
64
64
container = "quay.io/nasa_genelab/dp_tools:1.3.5"
65
65
}
66
66
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ process {
17
17
maxErrors = '-1'
18
18
19
19
// See https://www.nextflow.io/docs/latest/config.html#config-process-selectors
20
- withName:'GET_ACCESSIONS|FETCH_ISA|ISA_TO_RUNSHEET|PARSE_ANNOTATIONS_TABLE|COPY_READS|GET_MAX_READ_LENGTH|ADD_GENE_ANNOTATIONS|EXTEND_DGE_TABLE|VV_RAW_READS|GET_GTF_FEATURES|REMOVE_RRNA_FEATURECOUNTS' {
20
+ withName:'GET_ACCESSIONS|FETCH_ISA|ISA_TO_RUNSHEET|PARSE_ANNOTATIONS_TABLE|COPY_READS|GET_MAX_READ_LENGTH|ADD_GENE_ANNOTATIONS|EXTEND_DGE_TABLE|VV_RAW_READS|GET_GTF_FEATURES|REMOVE_RRNA_FEATURECOUNTS|MD5SUM ' {
21
21
cpus = { 1 }
22
22
memory = { 2.GB }
23
23
}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ process {
18
18
cache = 'lenient'
19
19
20
20
// See https://www.nextflow.io/docs/latest/config.html#config-process-selectors
21
- withName:'GET_ACCESSIONS|FETCH_ISA|ISA_TO_RUNSHEET|PARSE_ANNOTATIONS_TABLE|COPY_READS|GET_MAX_READ_LENGTH|ADD_GENE_ANNOTATIONS|EXTEND_DGE_TABLE|VV_RAW_READS|GET_GTF_FEATURES|REMOVE_RRNA_FEATURECOUNTS' {
21
+ withName:'GET_ACCESSIONS|FETCH_ISA|ISA_TO_RUNSHEET|PARSE_ANNOTATIONS_TABLE|COPY_READS|GET_MAX_READ_LENGTH|ADD_GENE_ANNOTATIONS|EXTEND_DGE_TABLE|VV_RAW_READS|GET_GTF_FEATURES|REMOVE_RRNA_FEATURECOUNTS|MD5SUM ' {
22
22
cpus = { 1 }
23
23
memory = { 2.GB }
24
24
}
Original file line number Diff line number Diff line change
1
+ process MD5SUM {
2
+ /* *
3
+ * Run recursive md5sum on files/directories and output md5sum files
4
+ *
5
+ * Inputs:
6
+ * path to file(s) or directory
7
+ * label for output file name
8
+ *
9
+ * Outputs:
10
+ * {MD5SumLabel}_md5sums.tsv - Raw md5sums
11
+ */
12
+
13
+ input:
14
+ path files
15
+
16
+ output:
17
+ path(" ${ params.md5sumLabel } _md5sum_GLbulkRNAseq.tsv" ), emit: md5sums
18
+
19
+ script:
20
+ """
21
+ # Generate raw md5sums
22
+ if [ -d "${ files } " ]; then
23
+ find "${ files } " -type f -exec md5sum {} \\ ; > ${ params.md5sumLabel } _md5sum_GLbulkRNAseq.tsv
24
+ else
25
+ md5sum ${ files } > ${ params.md5sumLabel } _md5sum_GLbulkRNAseq.tsv
26
+ fi
27
+
28
+ """
29
+ }
Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ process SOFTWARE_VERSIONS {
3
3
path versions_file
4
4
5
5
output:
6
- path " software_versions_GLbulkRNAseq.txt " , emit: software_versions
6
+ path " software_versions_GLbulkRNAseq.md " , emit: software_versions
7
7
path " software_versions_GLbulkRNAseq.yaml" , emit: software_versions_yaml
8
8
9
9
script:
10
10
"""
11
- software_versions.py ${ versions_file} software_versions_GLbulkRNAseq.txt --assay rnaseq
11
+ software_versions.py ${ versions_file} software_versions_GLbulkRNAseq.md --assay rnaseq
12
12
"""
13
13
}
Original file line number Diff line number Diff line change @@ -58,6 +58,9 @@ include { ADD_GENE_ANNOTATIONS } from '../modules/add_gene_annotations.nf'
58
58
59
59
include { SOFTWARE_VERSIONS } from ' ../modules/software_versions.nf'
60
60
61
+ include { MD5SUM as RAW_MD5SUM } from ' ../modules/md5sum.nf' addParams(md5sumLabel :" raw" )
62
+ include { MD5SUM as PROCESSED_MD5SUM } from ' ../modules/md5sum.nf' addParams(md5sumLabel :" processed" )
63
+
61
64
62
65
include { VV_RAW_READS ;
63
66
VV_TRIMMED_READS ;
@@ -314,10 +317,10 @@ workflow RNASEQ_MICROBES {
314
317
| mix(FEATURECOUNTS . out. versions)
315
318
| mix(RAW_READS_MULTIQC . out. versions)
316
319
| mix(DGE_DESEQ2 . out. versions)
320
+ | mix(ch_nextflow_version)
317
321
// Process the versions:
318
322
ch_software_versions
319
323
| unique // Remove duplicates
320
- | mix(ch_nextflow_version) // Add Nextflow version
321
324
| collectFile( // Combine all into one file
322
325
name : " software_versions.txt" ,
323
326
newLine : true ,
@@ -327,6 +330,17 @@ workflow RNASEQ_MICROBES {
327
330
328
331
SOFTWARE_VERSIONS (ch_final_software_versions)
329
332
333
+
334
+ // Generate md5sums for raw and processed data
335
+ RAW_MD5SUM ( STAGE_RAW_READS . out. ch_all_raw_reads
336
+ | concat (RAW_READS_MULTIQC . out. zipped_report) // to do: reimplement zip output w/ cleaned paths
337
+ | collect)
338
+
339
+ // PROCESSED_MD5SUM(x
340
+ // | concat(y)
341
+ // | collect
342
+ // )
343
+
330
344
emit :
331
- EXTRACT_RRNA . out. rrna_ids
345
+ RAW_MD5SUM . out. md5sums
332
346
}
You can’t perform that action at this time.
0 commit comments