Skip to content
Snippets Groups Projects
Unverified Commit d14e7205 authored by Laurent Modolo's avatar Laurent Modolo
Browse files

deepTools: add test for 2 bam files

parent 0c40a0da
No related branches found
No related tags found
No related merge requests found
params.bam = "$baseDir/data/bigwig/*.bw"
params.bw = "$baseDir/data/bigwig/*.bw"
params.bed = "$baseDir/data/annot/*.bed"
log.info "bigwig files : ${params.bw}"
......@@ -7,7 +7,6 @@ log.info "bed files : ${params.bed}"
Channel
.fromPath( params.bw )
.ifEmpty { error "Cannot find any bigwig files matching: ${params.bw}" }
.map { it -> [(it.baseName =~ /([^\.]*)/)[0][1], it]}
.set { bw_files }
Channel
......@@ -17,12 +16,12 @@ Channel
.set { bed_files }
process compute_matrix {
tag "$file_id"
tag "$bed_file_id"
cpus 4
publishDir "results/mapping/region_matrix/", mode: 'copy'
input:
set bw_file_id, file(bw) from bw_files.collect()
file bw from bw_files.collect()
set bed_file_id, file(bed) from bed_files.collect()
output:
......
#!/bin/sh
./nextflow src/nf_modules/deepTools/bam_to_bigwig.nf -c src/nf_modules/deepTools/bam_to_bigwig.config -profile docker --bam "data/tiny_dataset/map/tiny_v2.sort.bam"
cp data/tiny_dataset/map/tiny_v2.sort.bam data/tiny_dataset/map/tiny_v2_bis.sort.bam
./nextflow src/nf_modules/deepTools/bam_to_bigwig.nf -c src/nf_modules/deepTools/bam_to_bigwig.config -profile docker --bam "data/tiny_dataset/map/tiny_v2*.sort.bam"
./nextflow src/nf_modules/deepTools/compute_matrix.nf -c src/nf_modules/deepTools/compute_matrix.config -profile docker --bw "results/mapping/bigwig/*.bw" --bed "data/tiny_dataset/annot/tiny.bed"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment