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
2be5d85a
Commit
2be5d85a
authored
5 years ago
by
Gervaise Henry
Browse files
Options
Downloads
Patches
Plain Diff
Initial code
parent
47fc8ba7
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!37
v0.0.1
,
!14
Resolve "process_createManifest"
Pipeline
#5716
passed with stages
in 22 minutes and 54 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
workflow/rna-seq.nf
+24
-3
24 additions, 3 deletions
workflow/rna-seq.nf
workflow/scripts/parseMeta.py
+28
-0
28 additions, 0 deletions
workflow/scripts/parseMeta.py
with
52 additions
and
3 deletions
workflow/rna-seq.nf
+
24
−
3
View file @
2be5d85a
...
...
@@ -20,6 +20,7 @@ Channel.from(params.repRID)
.into {
repRID_getBag
repRID_getData
repRID_parseMetadata
repRID_trimData
}
...
...
@@ -33,7 +34,6 @@ derivaConfig = Channel.fromPath("${baseDir}/conf/replicate_export_config.json")
* getData: get bagit file from consortium
*/
process getBag {
executor 'local'
tag "${repRID_getBag}"
publishDir "${logsDir}/getBag", mode: 'symlink', pattern: "${repRID_getBag}.getBag.err"
...
...
@@ -66,7 +66,6 @@ process getData {
input:
val repRID_getData
executor 'local'
path cookies, stageAs: 'deriva-cookies.txt' from bdbag
path bagit
...
...
@@ -77,7 +76,6 @@ process getData {
file("**/Experiment.csv") into experimentMeta
file ("${repRID_getData}.getData.err")
script:
"""
hostname >>${repRID_getData}.getData.err
...
...
@@ -94,6 +92,29 @@ process getData {
"""
}
/*
* parseMetadata: parses metadata to extract experiment parameters
*/
process parseMetadata {
tag "${repRID_parseMetadata}"
publishDir "${logsDir}/parseMetadata", mode: 'symlink', pattern: "${repRID_parseMetadata}.parseMetadata.err"
input:
val repRID_parseMetadata
file fileMeta
file experimentSettingsMeta
file experimentMeta
output:
script:
"""
hostname >>${repRID_parseMetadata}.parseMetadata.err
ulimit -a >>${repRID_parseMetadata}.parseMetadata.err
"""
}
/*
* trimData: trims any adapter or non-host sequences from the data
*/
...
...
This diff is collapsed.
Click to expand it.
workflow/scripts/parseMeta.py
0 → 100644
+
28
−
0
View file @
2be5d85a
#!/usr/bin/env python3
import
argparse
import
pandas
as
pd
def
get_args
():
parser
=
argparse
.
ArgumentParser
()
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
)
args
=
parser
.
parse_args
()
return
args
def
main
():
args
=
get_args
()
metaFile
=
pd
.
read_csv
(
args
.
metaFile
,
sep
=
"
\t
"
,
header
=
None
)
if
(
args
.
parameter
==
"
repRID
"
):
if
(
len
(
metaFile
.
Replicate_RID
.
unique
())
>
1
):
#ERROR
if
not
(
metaFile
.
Replicate_RID
==
arg
$
repRID
):
#ERROR
if
(
len
(
fileFile
[
fileFile
[
"
File_Type
"
]
==
"
FastQ
"
].
RID
)
>
2
):
#ERROR
if
__name__
==
'
__main__
'
:
main
()
\ No newline at end of file
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