Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
lanani
nextflow
Commits
b6575e65
Verified
Commit
b6575e65
authored
Jun 06, 2018
by
Laurent Modolo
Browse files
BEDtools: add tests files
parent
4d440098
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/nf_modules/BEDtools/bedtools.nf
View file @
b6575e65
...
...
@@ -21,7 +21,7 @@ Channel
.set { bed_files }
process fasta_from_bed {
tag "$
pair_id
"
tag "$
{bed.baseName}
"
cpus 4
publishDir "results/fasta/", mode: 'copy'
...
...
@@ -35,6 +35,6 @@ process fasta_from_bed {
script:
"""
bedtools getfasta -name \
-fi ${fasta} -bed ${bed} -fo ${
fasta
.baseName}_extracted.fasta
-fi ${fasta} -bed ${bed} -fo ${
bed
.baseName}_extracted.fasta
"""
}
src/nf_modules/BEDtools/tests/fasta_from_bed.nf
0 → 100644
View file @
b6575e65
params.fastq = "$baseDir/data/fasta/*.fasta"
params.bed = "$baseDir/data/annot/*.bed"
log.info "fasta file : ${params.fasta}"
log.info "bed file : ${params.bed}"
Channel
.fromPath( params.fasta )
.ifEmpty { error "Cannot find any fasta files matching: ${params.fasta}" }
.set { fasta_files }
Channel
.fromPath( params.bed )
.ifEmpty { error "Cannot find any bed files matching: ${params.bed}" }
.set { bed_files }
process fasta_from_bed {
tag "${bed.baseName}"
cpus 4
publishDir "results/fasta/", mode: 'copy'
input:
file fasta from fasta_files
file bed from bed_files
output:
file "*_extracted.fasta" into fasta_files_extracted
script:
"""
bedtools getfasta -name \
-fi ${fasta} -bed ${bed} -fo ${bed.baseName}_extracted.fasta
"""
}
src/nf_modules/BEDtools/tests/tests.sh
0 → 100755
View file @
b6575e65
nextflow src/nf_modules/BEDtools/tests/fasta_from_bed.nf
\
-c
src/nf_modules/BEDtools/bedtools.config
\
-profile
docker
\
--fasta
"data/tiny_dataset/fasta/tiny_v2.fasta"
\
--bed
"data/tiny_dataset/annot/tiny.bed"
\
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment