java -jar MarkDuplicates --input file-1 --input file-2 --input file-n etc...
script:def input_args = bam_files.collect{ "--input $it" }.join(" ")"""java -jar MarkDuplicates $input_args"""
--
You received this message because you are subscribed to the Google Groups "Nextflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/nextflow.
For more options, visit https://groups.google.com/d/optout.
Process `null` script contains error(s)
output:
file "bwa.fastqtosam.mergebam.bam" into MergeBamAlignment_output
process MarkDup {
input:
file gatk4
output:
file("mergebam.fastqtosam.bwa.bam") into MarkDup_bamoutput
file("mergebam.fastqtosam.bwa.bai") into MarkDup_baioutput
file("markduplicates.metrics")
script:
def input_args = MergeBamAlignment_output.collect{ "--input $it" }.join(" ")
'''
java -Dsnappy.disable=true -Xmx16G -XX:ParallelGCThreads=16 -Djava.io.tmpdir=`pwd`/tmp -jar \
!{gatk4} \
MarkDuplicates \
$input_args \
-O mergebam.fastqtosam.bwa.bam \
--VALIDATION_STRINGENCY LENIENT \
--METRICS_FILE markduplicates.metrics \
--MAX_FILE_HANDLES_FOR_READ_ENDS_MAP 200000 \
--CREATE_INDEX true
'''
}
Provided bam_files is the input list of file, something like the following:script:def input_args = bam_files.collect{ "--input $it" }.join(" ")"""java -jar MarkDuplicates $input_args"""
On Mon, Jul 24, 2017 at 3:20 PM, Oskarv <oskarvi...@gmail.com> wrote:
I need to merge a bunch of bam files with MarkDuplicates, and the syntax is
java -jar MarkDuplicates --input file-1 --input file-2 --input file-n etc...
How do I make NF repeat "--input" for each file from the channel?
--
You received this message because you are subscribed to the Google Groups "Nextflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+unsubscribe@googlegroups.com.
'''
code here
'''
"code here"
java -jar MarkDuplicates --input file1 --input file2 etc
java -jarMarkduplicates --input file1
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+unsubscribe@googlegroups.com.
file bam_files from file MergeBamAlignment_output.collect()
file bam_files from MergeBamAlignment_output.collect()
def input_args = MergeBamAlignment_output.collect{ "--input $it" }.join(" ")
def input_args = bam_files.collect{ "--input $it" }.join(" ")
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+unsubscribe@googlegroups.com.