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

samblaster: add nf files

parent ec475c5f
No related branches found
No related tags found
No related merge requests found
profiles {
docker {
docker.temp = 'auto'
docker.enabled = true
process {
$dedup_sam {
container = "samblaster:0.1.24"
}
}
}
sge {
process{
$dedup_sam {
beforeScript = "module purge; module load samblaster/0.1.24"
}
}
}
}
params.sam = "$baseDir/data/sam/*.sam"
log.info "sams files : ${params.sam}"
Channel
.fromPath( params.sam )
.ifEmpty { error "Cannot find any sam files matching: ${params.sam}" }
.map { it -> [(it.baseName =~ /([^\.]*)/)[0][1], it]}
.set { sam_files }
process dedup_sam {
tag "$file_id"
cpus 4
input:
set file_id, file(sam) from sam_files
output:
set file_id, "*_dedup.sam*" into dedup_sam_files
script:
"""
samblaster --addMateTags -i ${sam} -o ${file_id}_dedup.sam
"""
}
./nextflow src/nf_modules/samblaster/dedup_sams.nf \
-c src/nf_modules/samblaster/dedup_sams.config \
-profile docker \
--sam "data/tiny_dataset/map/tiny_v2.sam"
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