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
88c55e12
Commit
88c55e12
authored
5 years ago
by
Gervaise Henry
Browse files
Options
Downloads
Patches
Plain Diff
Add unit test for makeFeatureCounts
parent
9663d913
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!37
v0.0.1
,
!22
Resolve "process_count"
Pipeline
#6236
failed with stages
in 8 minutes and 11 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+7
-0
7 additions, 0 deletions
.gitlab-ci.yml
workflow/rna-seq.nf
+27
-26
27 additions, 26 deletions
workflow/rna-seq.nf
workflow/tests/test_makeFeatureCounts.py
+15
-0
15 additions, 0 deletions
workflow/tests/test_makeFeatureCounts.py
with
49 additions
and
26 deletions
.gitlab-ci.yml
+
7
−
0
View file @
88c55e12
...
...
@@ -77,6 +77,13 @@ makeBigWig:
-
singularity run 'docker://bicf/deeptools3.3:2.0.0' bamCoverage -p `nproc` -b ./test_data/bam/small/Q-Y5JA_1M.se.sorted.deduped.bam -o Q-Y5JA_1M.se.bw
-
pytest -m makeBigWig
makeFeatureCounts
:
stage
:
unit
script
:
-
singularity run 'docker://bicf/bicf/subread2:2.0.0' featureCounts -R SAM -p -G /project/BICF/BICF_Core/shared/gudmap/references/GRCh38.p12.v31/genome.fna -T `nproc` -a /project/BICF/BICF_Core/shared/gudmap/references/GRCh38.p12.v31/genome.gtf -o Q-Y5JA_1M.se.featureCounts ./test_data/bam/small/Q-Y5JA_1M.se.sorted.deduped.bam
-
singularity run 'docker://bicf/bicf/subread2:2.0.0' Rscript calculateTPM.R --count Q-Y5JA_1M.se.featureCounts
-
pytest -m makeFeatureCounts
fastqc
:
stage
:
unit
script
:
...
...
This diff is collapsed.
Click to expand it.
workflow/rna-seq.nf
+
27
−
26
View file @
88c55e12
...
...
@@ -362,31 +362,7 @@ process dedupData {
}
/*
*fastqc: run fastqc on untrimmed fastq's
*/
process fastqc {
tag "${repRID}"
publishDir "${outDir}/fastqc", mode: 'copy', pattern: "*_fastqc.zip"
publishDir "${logsDir}", mode: 'copy', pattern: "*.fastq.err"
input:
path (fastq) from fastqs_fastqc
output:
path ("*_fastqc.zip") into fastqc
script:
"""
hostname >${repRID}.fastqc.err
ulimit -a >>${repRID}.fastqc.err
# run fastqc
fastqc *.fastq.gz -o . >>${repRID}.fastqc.err
"""
}
/*
*Make BigWig files for later processes
*makeBigWig: make bigwig file
*/
process makeBigWig {
tag "${repRID}"
...
...
@@ -405,7 +381,7 @@ process makeBigWig {
}
/*
*Run featureCounts and get the counts, tpm
, and fpkm
*Run featureCounts and get the counts, tpm
*/
process makeFeatureCounts {
tag "${repRID}"
...
...
@@ -426,3 +402,28 @@ process makeFeatureCounts {
Rscript calculateTPM.R --count "${repRID}.featureCounts"
"""
}
/*
*fastqc: run fastqc on untrimmed fastq's
*/
process fastqc {
tag "${repRID}"
publishDir "${outDir}/fastqc", mode: 'copy', pattern: "*_fastqc.zip"
publishDir "${logsDir}", mode: 'copy', pattern: "*.fastq.err"
input:
path (fastq) from fastqs_fastqc
output:
path ("*_fastqc.zip") into fastqc
script:
"""
hostname >${repRID}.fastqc.err
ulimit -a >>${repRID}.fastqc.err
# run fastqc
fastqc *.fastq.gz -o . >>${repRID}.fastqc.err
"""
}
This diff is collapsed.
Click to expand it.
workflow/tests/test_makeFeatureCounts.py
0 → 100644
+
15
−
0
View file @
88c55e12
#!/usr/bin/env python3
import
pytest
import
pandas
as
pd
import
os
import
utils
data_output_path
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
+
\
'
/../../
'
@pytest.mark.makeFeatureCounts
def
test_makeFeatureCounts
():
assert
os
.
path
.
exists
(
os
.
path
.
join
(
data_output_path
,
'
Q-Y5JA_1M.se.featureCounts
'
))
assert
os
.
path
.
exists
(
os
.
path
.
join
(
data_output_path
,
'
Q-Y5JA_1M.se.countTable.csv
'
))
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