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
1902055c
Commit
1902055c
authored
5 years ago
by
Gervaise Henry
Browse files
Options
Downloads
Patches
Plain Diff
Pass endness to stranded param
parent
471380f7
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!37
v0.0.1
,
!16
Resolve "process_getRef"
Pipeline
#5836
failed with stages
in 8 minutes
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
workflow/rna-seq.nf
+1
-1
1 addition, 1 deletion
workflow/rna-seq.nf
workflow/scripts/parseMeta.py
+3
-2
3 additions, 2 deletions
workflow/scripts/parseMeta.py
with
4 additions
and
3 deletions
workflow/rna-seq.nf
+
1
−
1
View file @
1902055c
...
...
@@ -144,7 +144,7 @@ process parseMetadata {
echo "LOG: strandedness metadata parsed: \${stranded}" >>${repRID}.parseMetadata.err
# Get spike-in metadata
spike=\$(python3 ${script_parseMeta} -r ${repRID} -m "${experimentSettingsMeta}" -p spike)
spike=\$(python3 ${script_parseMeta} -r ${repRID} -m "${experimentSettingsMeta}" -p spike
-e \${endsManual}
)
echo "LOG: spike-in metadata parsed: \${spike}" >>${repRID}.parseMetadata.err
# Get species metadata
...
...
This diff is collapsed.
Click to expand it.
workflow/scripts/parseMeta.py
+
3
−
2
View file @
1902055c
...
...
@@ -10,6 +10,7 @@ def get_args():
parser
.
add_argument
(
'
-r
'
,
'
--repRID
'
,
help
=
"
The replicate RID.
"
,
required
=
True
)
parser
.
add_argument
(
'
-m
'
,
'
--metaFile
'
,
help
=
"
The metadata file to extract.
"
,
required
=
True
)
parser
.
add_argument
(
'
-p
'
,
'
--parameter
'
,
help
=
"
The parameter to extract.
"
,
required
=
True
)
parser
.
add_argument
(
'
-e
'
,
'
--endsManual
'
,
help
=
"
The endness.
"
,
required
=
False
)
args
=
parser
.
parse_args
()
return
args
...
...
@@ -55,9 +56,9 @@ def main():
# Get strandedness metadata from 'Experiment Settings.csv'
if
(
args
.
parameter
==
"
stranded
"
):
if
(
metaFile
.
Has_Strand_Specific_Information
.
unique
()
==
"
yes
"
):
if
(
len
(
metaFile
[
metaFile
[
"
File_Type
"
]
==
"
FastQ
"
])
==
1
):
if
(
args
.
endsManual
==
"
se
"
):
stranded
=
"
--rna-strandness F
"
elif
(
len
(
metaFile
[
metaFile
[
"
File_Type
"
]
==
"
FastQ
"
])
==
2
):
elif
(
args
.
endsManual
==
"
pe
"
):
stranded
=
"
--rna-strandness FR
"
elif
(
metaFile
.
Has_Strand_Specific_Information
.
unique
()
==
"
no
"
):
stranded
=
""
...
...
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