Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mmassaviol
WAWmassaviol
Commits
1ed6822d
Commit
1ed6822d
authored
Oct 06, 2021
by
khalid
Browse files
EdgeR and deseq2 use an expandable input
parent
4ad900d6
Changes
3
Hide whitespace changes
Inline
Side-by-side
generate_workflow_snakefile.py
View file @
1ed6822d
...
...
@@ -141,10 +141,9 @@ def generate(name, path_yaml = "", path_input = DEFAULT_PATH_INPUT, path_output
#if not param["origin_command"] in raw_inputs:
# result += "\tinputs[\"" + param["input_name"] + "\"].append(" + expand_begin + param["origin_command"] + "[\"" + param["origin_name"] + "\"]" + expand_end + ")\n"
# raw_inputs.append(param["origin_command"])
reslt
+=
"n"
reslt
+=
"
\
n
"
else
:
result
+=
"
\t
inputs[
\"
"
+
param
[
"input_name"
]
+
"
\"
] = expand("
+
expand_begin
+
"rules."
+
param
[
"origin_step"
]
+
"__"
+
param
[
"origin_command"
]
+
".output."
+
param
[
"origin_name"
]
+
expand_end
+
", sample=SAMPLES)
\n
"
# Inputs de type liste
elif
(
"list"
in
INPUT_YAML
and
INPUT_YAML
[
"list"
]):
if
param
[
"input_name"
]
not
in
inputs_list_from_yaml
:
...
...
tools/deseq2/deseq2.yaml
View file @
1ed6822d
...
...
@@ -18,7 +18,7 @@
output_dir
:
deseq2
,
inputs
:
[
{
name
:
counts
,
type
:
"
tsv"
},
{
name
:
counts
,
type
:
"
tsv"
,
expand
:
true
},
#will expand over counts for samples in SAMPLES
{
name
:
popmap_file
,
type
:
"
popmap"
,
file
:
"
"
,
description
:
"
Path
to
tsv
file
with
samples
conditions"
},
],
outputs
:
...
...
tools/edger/edger.yaml
View file @
1ed6822d
...
...
@@ -17,7 +17,7 @@
output_dir
:
edger
,
inputs
:
[
{
name
:
counts
,
type
:
"
tsv"
}
,
{
name
:
counts
,
type
:
"
tsv"
,
expand
:
true
},
#will expand over counts for samples in SAMPLES
{
name
:
group_file
,
type
:
"
popmap"
,
file
:
"
"
,
description
:
"
Path
to
tsv
file
with
samples
conditions"
},
],
outputs
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment