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
d100d917
Commit
d100d917
authored
7 years ago
by
Beibei Chen
Browse files
Options
Downloads
Patches
Plain Diff
fix path and bam indexing
parent
b77bf445
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
workflow/main.nf
+20
-20
20 additions, 20 deletions
workflow/main.nf
workflow/scripts/runChipseeker.R
+2
-1
2 additions, 1 deletion
workflow/scripts/runChipseeker.R
with
22 additions
and
21 deletions
workflow/main.nf
+
20
−
20
View file @
d100d917
#!/usr/bin/env nextflow
params.design="$baseDir/../test_data/samplesheet.csv"
params.bams = "$baseDir/../test_data/*.bam"
params.bais = "$baseDir/../test_data/*.bai"
//
params.bais = "$baseDir/../test_data/*.bai"
params.peaks = "$baseDir/../test_data/*.broadPeak"
params.genomepath="/project/shared/bicf_workflow_ref/GRCh37"
toppeakcount = 200
...
...
@@ -17,25 +17,25 @@
diffbind_bams = Channel.fromPath(params.bams)
diffbind_peaks = Channel.fromPath(params.peaks)
meme_peaks = Channel.fromPath(params.peaks)
deeptools_bamindex = Channel.fromPath(params.bais)
diffbind_bamindex = Channel.fromPath(params.bais)
//
deeptools_bamindex = Channel.fromPath(params.bais)
//
diffbind_bamindex = Channel.fromPath(params.bais)
//
process bamindex {
//
publishDir "$baseDir/output/", mode: 'copy'
//
input:
//
file index_bam_files from index_bams
//
output:
//
file "*bai" into deeptools_bamindex
//
file "*bai" into diffbind_bamindex
//
//
script:
//
"""
//
module load python/2.7.x-anaconda
//
module load R/3.3.2-gccmkl
//
module load samtools/intel/1.3
//
samtools index $index_bam_files
//
"""
//
}
process bamindex {
publishDir "$baseDir/output/", mode: 'copy'
input:
file index_bam_files from index_bams
output:
file "*bai" into deeptools_bamindex
file "*bai" into diffbind_bamindex
script:
"""
module load python/2.7.x-anaconda
module load R/3.3.2-gccmkl
module load samtools/intel/1.3
samtools index $index_bam_files
"""
}
process run_deeptools {
publishDir "$baseDir/output", mode: 'copy'
...
...
@@ -102,7 +102,7 @@ process run_chipseeker_originalpeak {
"""
module load python/2.7.x-anaconda
module load R/3.3.2-gccmkl
Rscript $baseDir/scripts/runChipseeker.R $design_file ${
species
}
Rscript $baseDir/scripts/runChipseeker.R $design_file ${
params.genomepath
}
"""
}
...
...
This diff is collapsed.
Click to expand it.
workflow/scripts/runChipseeker.R
+
2
−
1
View file @
d100d917
...
...
@@ -8,7 +8,8 @@ args = commandArgs(trailingOnly=TRUE)
library
(
ChIPseeker
)
#Parse the genome path and get genome version
genome
=
unlist
(
strsplit
(
args
[
2
],
"[/]"
))[
-1
]
path_elements
=
unlist
(
strsplit
(
args
[
2
],
"[/]"
))
genome
=
path_elements
[
length
(
path_elements
)]
if
(
genome
==
"GRCh37"
)
{
...
...
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