Commit e054b010 authored by David Trudgian's avatar David Trudgian

Use globbing pattern for multiple fastq files

parent 4f604bac
......@@ -16,8 +16,10 @@ params.fastq = "$baseDir/../test_data/*.fastq"
// Path to the BWA Index (.fa file) that we are using for the analysis
params.index = "/project/apps_database/iGenomes/Homo_sapiens/UCSC/hg19/Sequence/BWAIndex/genome.fa"
// First, get the list of fastqs, might be using a pattern matching multiple
fastqs = Channel.fromPath(params.fastq)
// First, get the list of fastqs. When multiple files are selected on the web
// interface they will be passed as a comma-separated list. Therefore we use the
// { pattern1,pattern2 } glob syntax to pick all them up.
fastqs = Channel.fromPath( "{" + params.fastq+ ",}" )
// Now find the path to the BWA index directory
index_path = file(params.index).parent
// And get the name of the actual index inside that directory
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment