Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
chipseq_analysis
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Astrocyte
Workflows
BICF
chipseq_analysis
Commits
92096435
Commit
92096435
authored
6 years ago
by
Venkat Malladi
Browse files
Options
Downloads
Patches
Plain Diff
Change order of process. Made diffPeaks a when opperative.
parent
6b3c190b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
workflow/main.nf
+22
-31
22 additions, 31 deletions
workflow/main.nf
with
22 additions
and
31 deletions
workflow/main.nf
+
22
−
31
View file @
92096435
...
...
@@ -387,9 +387,6 @@ process consensusPeaks {
}
// Define channel to find number of unique experiments
noUniqueExperiments = uniqueExperiments.splitCsv(sep: '\t', header: true).toList()
// Annotate Peaks
process peakAnnotation {
...
...
@@ -411,57 +408,51 @@ process peakAnnotation {
}
// Calculate Differential Binding Activity
process diffPeaks {
// Motif Search Peaks
process motifSearch {
publishDir "$baseDir/output/${task.process}", mode: 'copy'
input:
file design
DiffPeaks
file design
MotifSearch
output:
file '*_diffbind.bed' into diffPeaks
file '*_diffbind.csv' into diffPeaksCounts
file '*.pdf' into diffPeaksStats
file 'normcount_peaksets.txt' into normCountPeaks
file "*memechip" into motifSearch
script:
if (noUniqueExperiments.size() == 1) {
"""
touch no_diffbind.bed
touch no_diffbind.csv
touch no_heatmap.pdf
touch no_pca.pdf
touch normcount_peaksets.txt
"""
}
else {
"""
Rscript $baseDir/scripts/diff_peaks.R $designDiffPeaks
"""
}
"""
python3 $baseDir/scripts/motif_search.py -d $designMotifSearch -g $fasta -p $topPeakCount
"""
}
// Motif Search Peaks
process motifSearch {
// Define channel to find number of unique experiments
noUniqueExperiments = uniqueExperiments.splitCsv(sep: '\t', header: true).toList()
// Calculate Differential Binding Activity
process diffPeaks {
publishDir "$baseDir/output/${task.process}", mode: 'copy'
input:
file design
MotifSearch
file design
DiffPeaks
output:
file "*memechip" into motifSearch
file '*_diffbind.bed' into diffPeaks
file '*_diffbind.csv' into diffPeaksCounts
file '*.pdf' into diffPeaksStats
file 'normcount_peaksets.txt' into normCountPeaks
when:
noUniqueExperiments.size() > 1
script:
script:
"""
python3
$baseDir/scripts/
moti
f_
s
ea
rch.py -d $designMotifSearch -g $fasta -p $topPeakCount
Rscript
$baseDir/scripts/
dif
f_
p
ea
ks.R $designDiffPeaks
"""
}
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment