Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RNA-seq
Manage
Activity
Members
Labels
Plan
Issues
12
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
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
GUDMAP_RBK
RNA-seq
Commits
6675415d
Commit
6675415d
authored
5 years ago
by
Jonathan Gesell
Browse files
Options
Downloads
Patches
Plain Diff
Added feature counts process.
parent
75486483
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!37
v0.0.1
,
!22
Resolve "process_count"
Pipeline
#6230
canceled with stages
in 10 minutes and 42 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
workflow/nextflow.config
+3
-0
3 additions, 0 deletions
workflow/nextflow.config
workflow/rna-seq.nf
+32
-4
32 additions, 4 deletions
workflow/rna-seq.nf
with
35 additions
and
4 deletions
workflow/nextflow.config
+
3
−
0
View file @
6675415d
...
...
@@ -38,6 +38,9 @@ process {
withName
:
makeBigWig
{
container
=
'bicf/deeptools3.3:2.0.0'
}
withName
:
makeFeatureCounts
{
container
=
'bicf/subread2:2.0.0'
}
}
trace
{
...
...
This diff is collapsed.
Click to expand it.
workflow/rna-seq.nf
+
32
−
4
View file @
6675415d
...
...
@@ -210,7 +210,9 @@ process getRef {
val species_getRef
output:
path ("*") into reference
path ("hisat2") type 'dir' into reference
path ("bed") type 'dir' into bedFile
tuple val ("${refRID}"), path ("genome.fna"), path ("genome.gtf") into featureCountsRef
script:
"""
...
...
@@ -241,10 +243,14 @@ process getRef {
then
aws s3 cp "\${references}" /hisat2 ./ --recursive >>${repRID}.getRef.err
aws s3 cp "\${references}" /bed ./ --recursive >>${repRID}.getRef.err
aws s3 cp "\${references}" /*.fna --recursive >>${repRID}.getRef.err
aws s3 cp "\${references}" /*.gtf --recursive >>${repRID}.getRef.err
elif [ ${referenceBase} == "/project/BICF/BICF_Core/shared/gudmap/references" ]
then
cp -R "\${references}"/hisat2 ./ >>${repRID}.getRef.err
cp -R "\${references}"/bed ./ >>${repRID}.getRef.err
ln -s "\${references}"/hisat2 >>${repRID}.getRef.err
ln -s "\${references}"/bed >>${repRID}.getRef.err
ln -s "\${references}"/genome.fna >>${repRID}.getRef.err
ln -s "\${references}"/genome.gtf >>${repRID}.getRef.err
fi
"""
}
...
...
@@ -338,6 +344,7 @@ process dedupData {
output:
tuple val ("${repRID}"), path ("${repRID}.sorted.deduped.bam"), path ("${repRID}.sorted.deduped.bai") into dedupBam
tuple val ("${repRID}"), path ("${repRID}.sorted.deduped.bam"), path ("${repRID}.sorted.deduped.bai") into featureCountsIn
path ("${repRID}.dedup.out")
path ("${repRID}.dedup.err")
...
...
@@ -385,7 +392,7 @@ process makeBigWig {
publishDir "${logsDir}", mode: 'copy', pattern: "*.makeBigWig.err"
input:
set
val (repRID), path (inBam), path (inBai) from dedupBam
tuple
val (repRID), path (inBam), path (inBai) from dedupBam
output:
path ("${repRID}.bw")
...
...
@@ -395,3 +402,24 @@ process makeBigWig {
bamCoverage -p `nproc` -b ${inBam} -o ${repRID}.bw
"""
}
/*
*Run featureCounts and get the counts, tpm, and fpkm
*/
process makeFeatureCounts {
tag "${repRID}"
publishDir "${outDir}/featureCounts", mode: 'copy', pattern: "${repRID}*.featureCounts*"
publishDir "${logsDir}", mode: 'copy', pattern: "${repRID}.makeFetureCounts.{out,err}"
input:
tuple val (repRID1), path (bam), path (bai) from featureCountsIn
tuple val (repRID2), path (genome), path (gtf) from featureCountsRef
output:
tuple val ("${repRID}"), path ("${repRID}.featureCounts.summary"), path ("${repRID}.featureCounts"), path ("${bam}.featureCounts.sam") into featureCountsOut
script:
"""
featureCounts -R SAM -p -G ${genome} -T `nproc` -a ${gtf} -o ${repRID}.featureCounts ${repRID}.sorted.deduped.bam
"""
}
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