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
788a539f
Commit
788a539f
authored
4 years ago
by
Gervaise Henry
Browse files
Options
Downloads
Patches
Plain Diff
Extract assigned reads count
parent
740d2eff
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!37
v0.0.1
,
!36
Metadata output update
Pipeline
#7788
failed with stages
in 2 minutes and 34 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
workflow/conf/multiqc_config.yaml
+4
-2
4 additions, 2 deletions
workflow/conf/multiqc_config.yaml
workflow/rna-seq.nf
+20
-8
20 additions, 8 deletions
workflow/rna-seq.nf
with
24 additions
and
10 deletions
workflow/conf/multiqc_config.yaml
+
4
−
2
View file @
788a539f
...
...
@@ -80,10 +80,12 @@ custom_data:
Ends
Stranded
Spike-in
Assigned Reads
:
format
:
'
{:,.0f}'
Read Length
:
format
:
'
{:,.0f}'
format
:
'
{:,.0f}'
TIN
:
format
:
'
{:+.1f}'
format
:
'
{:+.1f}'
file_format
:
'
tsv'
section_name
:
'
TIN'
...
...
This diff is collapsed.
Click to expand it.
workflow/rna-seq.nf
+
20
−
8
View file @
788a539f
...
...
@@ -842,6 +842,7 @@ process countData {
output:
path ("*.countTable.csv") into counts
path ("*.countData.summary") into countsQC
path ("assignedReads") into inferMetadata_assignedReads
script:
"""
...
...
@@ -861,7 +862,7 @@ process countData {
elif [ "${stranded}" == "reverse" ]
then
stranding=2
echo -e "LOG: strandedness set to
forward
stranded [2]" >> ${repRID}.countData.log
echo -e "LOG: strandedness set to
reverse
stranded [2]" >> ${repRID}.countData.log
fi
# run featureCounts
...
...
@@ -875,6 +876,11 @@ process countData {
fi
echo -e "LOG: counted" >> ${repRID}.countData.log
assignedReads=grep -m 1 'Assigned' *.countData.summary | grep -oe '\([0-9.]*\)'
echo -e \${assignedReads} > assignedReads.csv
echo -e "LOG: assigned reads: "\${assignedReads} >> ${repRID}.countData.log
# calculate TPM from the resulting countData table
echo -e "LOG: calculating TPM with R" >> ${repRID}.countData.log
Rscript calculateTPM.R --count "${repRID}.countData"
...
...
@@ -905,6 +911,12 @@ process fastqc {
"""
}
// Extract number of assigned reads metadata into channel
assignedReadsInfer = Channel.create()
inferMetadata_assignedReads.splitCsv(sep: ",", header: false).separate(
assignedReads
)
/*
*dataQC: calculate transcript integrity numbers (TIN) and bin as well as calculate innerdistance of PE replicates
*/
...
...
@@ -920,7 +932,7 @@ process dataQC {
output:
path "${repRID}.tin.hist.tsv" into tinHist
path "${repRID}.tin.med.csv" into tinMed
path "${repRID}.tin.med.csv" into
inferMetadata_
tinMed
path "${repRID}.insertSize.inner_distance_freq.txt" into innerDistance
script:
...
...
@@ -955,7 +967,7 @@ process dataQC {
// Extract median TIN metadata into channel
tinMedInfer = Channel.create()
tinMed.splitCsv(sep: ",", header: false).separate(
inferMetadata_
tinMed.splitCsv(sep: ",", header: false).separate(
tinMedInfer
)
...
...
@@ -989,6 +1001,7 @@ process aggrQC {
val speciesI from speciesInfer_aggrQC
val readLengthM from readLengthMeta
val readLengthI from readLengthInfer
val assignedReadsI from assignedReadsInfer
val tinMedI from tinMedInfer
val expRID
val studyRID
...
...
@@ -1008,11 +1021,10 @@ process aggrQC {
# make metadata table
echo -e "LOG: creating metadata table" >> ${repRID}.aggrQC.log
echo -e "Source\tSpecies\tEnds\tStranded\tSpike-in\tRead Length\tTIN" > metadata.tsv
echo -e "Infered\t${speciesI}\t${endsI}\t${strandedI}\t${spikeI}\t-\t-" >> metadata.tsv
echo -e "Submitter\t${speciesM}\t${endsM}\t${strandedM}\t${spikeM}\t${readLengthM}\t-" >> metadata.tsv
echo -e "Manual\t-\t${endsManual}\t-\t-\t-\t-" >> metadata.tsv
echo -e "Measured\t-\t-\t-\t-\t${readLengthI}\t${tinMedI}" >> metadata.tsv
echo -e "Source\tSpecies\tEnds\tStranded\tSpike-in\tAssigned Reads\tRead Length\tTIN" > metadata.tsv
echo -e "Infered\t${speciesI}\t${endsI}\t${strandedI}\t${spikeI}\t-\t-\t-" >> metadata.tsv
echo -e "Submitter\t${speciesM}\t${endsM}\t${strandedM}\t${spikeM}\t${readLengthM}\t-\t-" >> metadata.tsv
echo -e "Measured\t-\t${endsManual}\t-\t-\t${assignedReadsI}\t${readLengthI}\t${tinMedI}" >> metadata.tsv
# remove inner distance report if it is empty (SE repRID)
echo -e "LOG: removing dummy inner distance file" >> ${repRID}.aggrQC.log
...
...
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