Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nextflow
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LBMC
nextflow
Commits
5d14ce0b
Unverified
Commit
5d14ce0b
authored
6 years ago
by
Laurent Modolo
Browse files
Options
Downloads
Patches
Plain Diff
add tests for macs2
parent
72ffaf95
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/nf_modules/macs2/peak_calling.nf
+6
-1
6 additions, 1 deletion
src/nf_modules/macs2/peak_calling.nf
src/nf_modules/macs2/tests.sh
+10
-0
10 additions, 0 deletions
src/nf_modules/macs2/tests.sh
with
16 additions
and
1 deletion
src/nf_modules/macs2/peak_calling.nf
+
6
−
1
View file @
5d14ce0b
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/nf_modules/macs2/tests.sh
+
10
−
0
View file @
5d14ce0b
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment