pditommaso on master
Add support for bootDiskSize #1… (compare)
pditommaso on master
Bump version 19.12.0-SNAPSHOT Add Google Life Sciences execut… (compare)
pditommaso on testing
Add missing message (compare)
pditommaso on google-lifescience
Add GLS integration test (compare)
a = Channel.from(['a', 1], ['b', 2])
b = Channel.from(['a', 3], ['b', 4])
c = Channel.from(['a', 5], ['b', 6])
d = Channel.empty()
a.mix(b).mix(c).mix(d).groupTuple().view().set { ch }
process bar {
input: set val(a), val(b) from ch
echo true
shell:
'''
echo "one value !{a} other values !{b}"
'''
}
params
inside a .map
call. Is that possible?
This is what I want to do
bed_split_ch = bed_ch
.map{it -> tuple(it[0],it[1].splitText(by: 2, file: true))}
and it works. I would like to use params.splitBed
instead of 2.
unittest
in Python, but I am not sure what exactly I should be testing. Any suggestions? My work so far is here: https://github.com/stevekm/nextflow-ci
nextflow.py
, mostly just a CLI wrapper with ENV variables thrown in
[Process that emits a folder to "process1_ch"]
// Get the path in process1_ch
path = ?????????
// Do something with the path
new_ch = Channel.fromPath(path + '*somefilepatternmatching')
.map { do something with the data }
[Process that uses "new_ch"]
new_ch
toList
(https://www.nextflow.io/docs/latest/operator.html#tolist), but that doesn't seem to do the job
// Get the sample names from the files in the output FASTQ folder by regex.
sample_names_ch = Channel.fromPath(bcl2fastq_outdir + '/*.fastq.gz')
.map { it.toString() }
.map { it.replaceAll(/\/.*\//, "") } // Remove everything leading up to the sample name.
.map { it.replaceAll(/_.*/, "") } // Remove everything after the sample name.
.unique()