Skip to content

Commit

Permalink
update snapshot with outpath
Browse files Browse the repository at this point in the history
  • Loading branch information
Joon-Klaps committed Oct 14, 2024
1 parent 67217ca commit a706319
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions subworkflows/local/generate_downstream_samplesheets/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ workflow SAMPLESHEET_MAG{
def out_path = file(params.outdir).toString() + '/filter/filtered/'
def sample = meta.id
def run = meta.run
def group = "" // only used for co-abundance in binning
def short_reads_1 = meta.long_reads == (reads.size() > 2) ? outpath + reads[0].getName() : "" // If long reads, but no short reads, then short_reads_1 is empty
def short_reads_2 = meta.long_reads == (reads.size() > 2) && reads[1] ? outpath + reads[1].getName() : ""
def long_reads = meta.long_reads ? outpath + reads.last().getName() : "" // If long reads, take final element
def group = "" // only used for co-abundance in binning
def short_reads_1 = meta.long_reads == (reads.size() > 2) ? out_path + reads[0].getName() : "" // If long reads, but no short reads, then short_reads_1 is empty
def short_reads_2 = meta.long_reads == (reads.size() > 2) && reads[1] ? out_path + reads[1].getName() : ""
def long_reads = meta.long_reads ? out_path + reads.last().getName() : "" // If long reads, take final element
[sample: sample, run: run, group: group, short_reads_1: short_reads_1, short_reads_2: short_reads_2, long_reads: long_reads]
}
.tap{ ch_colnames } //ch_header exists using ch_colnames instead
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"content": [
[
"taxprofiler.csv:md5,3af063f070342c72605b0277a7df4c36",
"mag.csv:md5,b7826905be577df908978e0e75f2a288"
"mag.csv:md5,cb28c6bbf1ff5028a6c31dcbbc5f815a"
]
],
"meta": {
"nf-test": "0.9.0",
"nextflow": "24.04.4"
},
"timestamp": "2024-10-14T10:48:25.402183468"
"timestamp": "2024-10-14T11:08:57.333343647"
}
}

0 comments on commit a706319

Please sign in to comment.