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
16e47ae1
Commit
16e47ae1
authored
8 years ago
by
Beibei Chen
Browse files
Options
Downloads
Patches
Plain Diff
design process and deeptools works for main
parent
7cf7adc4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
workflow/main.nf
+57
-7
57 additions, 7 deletions
workflow/main.nf
workflow/scripts/runDeepTools.py
+1
-1
1 addition, 1 deletion
workflow/scripts/runDeepTools.py
with
58 additions
and
8 deletions
workflow/main.nf
+
57
−
7
View file @
16e47ae1
...
...
@@ -4,7 +4,7 @@
// params.bams="$baseDir/../test/*.bam"
params.testpath="/project/BICF/BICF_Core/bchen4/chipseq_analysis/test/"
params.design="/project/BICF/BICF_Core/bchen4/chipseq_analysis/test/samplesheet.csv"
params.gen
ome
="/project/
sha
re
d
/b
icf_workflow_ref/GRCh37/
"
params.gen
ebed
="/project/
BICF/BICF_Co
re/b
chen4/chipseq_analysis/test/genome/hg19/gene.bed
"
// design_file = file(params.design)
// bams=file(params.bams)
...
...
@@ -13,22 +13,72 @@
//geneset = file("$params.genome/gsea_gmt/$params.geneset")
process run_chipseq_analysis {
// publishDir "$baseDir/output", mode: 'copy'
process processdesign {
publishDir "$baseDir/output/", mode: 'copy'
// input:
// file design_file from input
// file annotation Tdx
output:
file "new_design" into deeptools_design
// file "new_design" into diffbind_design
script:
"""
module load python/2.7.x-anaconda
source activate /project/shared/bicf_workflow_ref/chipseq_bchen4/
python $baseDir/scripts/preprocessDesign.py -i ${params.design}
"""
}
process run_deeptools {
// publishDir "$baseDir/output", mode: 'copy'
input:
file deeptools_design_file from deeptools_design
// file annotation Tdx
output:
stdout result
script:
"""
module load python/2.7.x-anaconda
module load meme/4.11.1-gcc-openmpi
source activate /project/shared/bicf_workflow_ref/chipseq_bchen4/
module load deeptools/2.3.5
module load meme/4.11.1-gcc-openmpi
python $baseDir/scripts/process.py -i ${params.design} -g hg19 --top-peak 200
python $baseDir/scripts/runDeepTools.py -i $deeptools_design_file -g ${params.genebed}
"""
}
process run_diffbind {
// publishDir "$baseDir/output", mode: 'copy'
input:
file diffbind_design_file from diffbind_design
// file annotation Tdx
output:
file "*_diffbind.bed" into diffpeaks_chipseeker
file "*_diffbind.bed" into diffpeaks_meme
script:
"""
module load python/2.7.x-anaconda
source activate /project/shared/bicf_workflow_ref/chipseq_bchen4/
Rscript $baseDir/scripts/runDiffBind.R -i $diffbind_design_file
"""
}
//process run_chipseeker {
//// publishDir "$baseDir/output", mode: 'copy'
// input:
// file diffbind_design_file from diffbind_design
//// file annotation Tdx
// output:
// file "*_diffbind.bed" into diffpeaks_chipseeker
// file "*_diffbind.bed" into diffpeaks_meme
//
// script:
// """
// module load python/2.7.x-anaconda
// source activate /project/shared/bicf_workflow_ref/chipseq_bchen4/
// Rscript $baseDir/scripts/runDiffBind.R -i $diffbind_design_file
//"""
//}
This diff is collapsed.
Click to expand it.
workflow/scripts/runDeepTools.py
+
1
−
1
View file @
16e47ae1
...
...
@@ -47,7 +47,7 @@ def bam2bw_wrapper(command):
def
run_signal
(
files
,
labels
,
genome
):
#compute matrix and draw profile and heatmap
gene_bed
=
"
/project/BICF/BICF_Core/bchen4/chipseq_analysis/test/genome/
"
+
genome
+
"
/gene.bed
"
gene_bed
=
genome
#
"/project/BICF/BICF_Core/bchen4/chipseq_analysis/test/genome/"+genome+"/gene.bed"
bw_commands
=
[]
for
f
in
files
:
bw_commands
.
append
(
"
bamCoverage -bs 10 -b
"
+
f
+
"
-o
"
+
f
.
replace
(
"
bam
"
,
"
bw
"
))
...
...
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