Advertisement
zoark0

channel from list of tuples

Nov 8th, 2021
80
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/user/bin/nextflow
  2. nextflow.enable.dsl=2
  3.  
  4. process quast {
  5.    
  6.     input:
  7.     tuple val(sample_id), path(contig)
  8.    
  9.     output:
  10.     path "quast_directory_${sample_id}/report.tsv"
  11.    
  12.     """
  13.     quast.py ${contig} -r reference_genome.fasta -o ${sample_id}_quast -t 4
  14.     """
  15. }
  16.  
  17. workflow {
  18.     contig_ch = Channel.from( ['AH-806-L16', '/home/AH-806-L16_contigs.fasta'] )
  19.     quast(contig_ch)
Advertisement
RAW Paste Data Copied
Advertisement