Skip to content

Commit ead77cb

Browse files
committed
set up publishdir
1 parent 1ce81c3 commit ead77cb

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed

RNAseq/Workflow_Documentation/NF_RCP/workflow_code/modules/fetch_isa.nf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ process FETCH_ISA {
22

33
tag "${osd_accession}"
44

5-
publishDir "${glds_accession}/Metadata",
5+
publishDir "${ch_outdir}/Metadata",
66
mode: params.publish_dir_mode
77

88
input:
9+
val(ch_outdir)
910
val(osd_accession)
1011
val(glds_accession)
1112
output:

RNAseq/Workflow_Documentation/NF_RCP/workflow_code/modules/isa_to_runsheet.nf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
process ISA_TO_RUNSHEET {
22
tag "${osd_accession}_${glds_accession}"
33

4-
publishDir "${glds_accession}/Metadata",
5-
mode: params.publish_dir_mode
4+
publishDir "${ch_outdir}/Metadata",
5+
mode: params.publish_dir_mode,
6+
pattern: "*.csv"
67

78
input:
9+
val(ch_outdir)
810
val(osd_accession)
911
val(glds_accession)
1012
path(isa_archive)

RNAseq/Workflow_Documentation/NF_RCP/workflow_code/workflows/rnaseq_microbes.nf

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ workflow RNASEQ_MICROBES {
9292
GET_ACCESSIONS( accession, api_url )
9393
osd_accession = GET_ACCESSIONS.out.accessions_txt.map { it.readLines()[0].trim() }
9494
glds_accession = GET_ACCESSIONS.out.accessions_txt.map { it.readLines()[1].trim() }
95-
ch_outdir = ch_outdir.combine(glds_accession).map { outdir, glds -> outdir + "/" + glds }
95+
ch_outdir = ch_outdir.combine(glds_accession).map { outdir, glds -> "$outdir/$glds" }
9696
}
9797
else {
9898
ch_outdir = ch_outdir.map { it + "/results" }
@@ -102,10 +102,10 @@ workflow RNASEQ_MICROBES {
102102
// If ISA input is not provided, use the accession to get the ISA
103103
if ( runsheet_path == null ) {
104104
if ( isa_archive_path == null ) {
105-
FETCH_ISA( osd_accession, glds_accession )
105+
FETCH_ISA( ch_outdir, osd_accession, glds_accession )
106106
isa_archive = FETCH_ISA.out.isa_archive
107107
}
108-
ISA_TO_RUNSHEET( osd_accession, glds_accession, isa_archive, dp_tools_plugin )
108+
ISA_TO_RUNSHEET( ch_outdir, osd_accession, glds_accession, isa_archive, dp_tools_plugin )
109109
runsheet_path = ISA_TO_RUNSHEET.out.runsheet
110110
}
111111

@@ -326,6 +326,16 @@ workflow RNASEQ_MICROBES {
326326
// qualimap_outputs = QUALIMAP_BAM_QC.out.results
327327
// // | concat(QUALIMAP_RNASEQ_QC.out.results )
328328
// | collect
329+
330+
VV_RAW_READS(
331+
dp_tools_plugin,
332+
ch_outdir,
333+
ch_meta,
334+
runsheet_path,
335+
raw_reads | map{ it -> it[1] } | collect,
336+
raw_fastqc_zip,
337+
RAW_READS_MULTIQC.out.unzipped_report
338+
)
329339
emit:
330-
RAW_MD5SUM.out.md5sums
340+
VV_RAW_READS.out.log
331341
}

0 commit comments

Comments
 (0)