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

add tests for macs2

parent 72ffaf95
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ params.genome_size = "hs" ...@@ -2,6 +2,7 @@ params.genome_size = "hs"
params.control_tag = "control" params.control_tag = "control"
log.info "bam files : ${params.bam}" log.info "bam files : ${params.bam}"
log.info "genome size : ${params.genome_size}" log.info "genome size : ${params.genome_size}"
log.info "control tag : ${params.control_tag}"
Channel Channel
.fromPath( params.bam ) .fromPath( params.bam )
...@@ -22,7 +23,11 @@ process peak_calling { ...@@ -22,7 +23,11 @@ process peak_calling {
input: input:
set file_id, file(file_ip) from bam_files_ip set file_id, file(file_ip) from bam_files_ip
set file_id_control, file(file_control) from bam_files_control.collect() set file_id_control, file(file_control) from bam_files_control
.ifEmpty {
error "Cannot find any bam files matching: ${params.control_tag}"
}
.collect()
output: output:
file "*" into peak_output file "*" into peak_output
......
...@@ -6,3 +6,13 @@ cp data/tiny_dataset/map/tiny_v2.bam data/tiny_dataset/map/tiny_v2_control.bam ...@@ -6,3 +6,13 @@ cp data/tiny_dataset/map/tiny_v2.bam data/tiny_dataset/map/tiny_v2_control.bam
--bam "data/tiny_dataset/map/tiny_v2*.bam" \ --bam "data/tiny_dataset/map/tiny_v2*.bam" \
--genome_size 129984 \ --genome_size 129984 \
--control_tag "control" --control_tag "control"
if [ -x "$(command -v singularity)" ]; then
./nextflow src/nf_modules/macs2/peak_calling.nf \
-c src/nf_modules/macs2/peak_calling.config \
-profile singularity \
-resume \
--bam "data/tiny_dataset/map/tiny_v2*.bam" \
--genome_size 129984 \
--control_tag "control"
fi
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