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
fa11871a
Commit
fa11871a
authored
4 years ago
by
Gervaise Henry
Browse files
Options
Downloads
Patches
Plain Diff
Extract raw reads
parent
4faeddc4
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!37
v0.0.1
,
!36
Metadata output update
Pipeline
#7811
failed with stages
in 2 minutes and 19 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
workflow/conf/multiqc_config.yaml
+3
-2
3 additions, 2 deletions
workflow/conf/multiqc_config.yaml
workflow/rna-seq.nf
+15
-4
15 additions, 4 deletions
workflow/rna-seq.nf
with
18 additions
and
6 deletions
workflow/conf/multiqc_config.yaml
+
3
−
2
View file @
fa11871a
...
...
@@ -80,9 +80,10 @@ custom_data:
Ends
Stranded
Spike-in
Raw Reads
Assigned Reads
Read Length
TIN
Median
Read Length
Median
TIN
file_format
:
'
tsv'
section_name
:
'
TIN'
...
...
This diff is collapsed.
Click to expand it.
workflow/rna-seq.nf
+
15
−
4
View file @
fa11871a
...
...
@@ -902,6 +902,7 @@ process fastqc {
output:
path ("*_fastqc.zip") into fastqc
path ("rawRead.csv") into inferMetadata_rawReads
script:
"""
...
...
@@ -911,9 +912,18 @@ process fastqc {
# run fastqc
echo -e "LOG: running fastq on raw fastqs" >> ${repRID}.fastqc.log
fastqc *.fastq.gz -o .
# count raw reads
zcat ${fastq[0]} | echo $((`wc -l`/4)) > rawReads.csv
"""
}
// Extract number of raw reads metadata into channel
rawReadsInfer = Channel.create()
inferMetadata_rawReads.splitCsv(sep: ",", header: false).separate(
rawReadsInfer
)
/*
*dataQC: calculate transcript integrity numbers (TIN) and bin as well as calculate innerdistance of PE replicates
*/
...
...
@@ -998,6 +1008,7 @@ process aggrQC {
val speciesI from speciesInfer_aggrQC
val readLengthM from readLengthMeta
val readLengthI from readLengthInfer
val rawReadsI from rawReadsInfer
val assignedReadsI from assignedReadsInfer
val tinMedI from tinMedInfer
val expRID
...
...
@@ -1018,10 +1029,10 @@ process aggrQC {
# make metadata table
echo -e "LOG: creating metadata table" >> ${repRID}.aggrQC.log
echo -e "Source\tSpecies\tEnds\tStranded\tSpike-in\tAssigned Reads\tRead Length\tTIN" > metadata.tsv
echo -e "
Infered
\t${species
I
}\t${ends
I
}\t${stranded
I
}\t${spike
I
}\t-\t-\t-" >> metadata.tsv
echo -e "
Submitter
\t${species
M
}\t${ends
M
}\t${stranded
M
}\t${spike
M
}\t-\t
${readLengthM}
\t-" >> metadata.tsv
echo -e "Measured\t-\t${endsManual}\t-\t-\t${assignedReadsI}\t${readLengthI}\t${tinMedI}" >> metadata.tsv
echo -e "Source\tSpecies\tEnds\tStranded\tSpike-in\
tRaw Reads\
tAssigned Reads\t
Median
Read Length\t
Median
TIN" > metadata.tsv
echo -e "
Submitter
\t${species
M
}\t${ends
M
}\t${stranded
M
}\t${spike
M
}\t-\t-\t
${readLengthM}\t
-" >> metadata.tsv
echo -e "
Infered
\t${species
I
}\t${ends
I
}\t${stranded
I
}\t${spike
I
}\t-\t
-\t-
\t-" >> metadata.tsv
echo -e "Measured\t-\t${endsManual}\t-\t-\t${
rawReadsI}\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