Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mbb
waw
Commits
277d26f4
Commit
277d26f4
authored
May 10, 2022
by
khalid
Browse files
add a simple OTU abundance count output
parent
5654f689
Changes
2
Hide whitespace changes
Inline
Side-by-side
tools/FROGS_biom_to_tsv/FROGS_biom_to_tsv.rule.snakefile
View file @
277d26f4
...
...
@@ -3,10 +3,12 @@ rule <step_name>__FROGS_biom_to_tsv:
**<step_name>__FROGS_biom_to_tsv_inputs(),
output:
abundance_file = config["results_dir"]+'/'+config["<step_name>__FROGS_biom_to_tsv_output_dir"]+'/tax_affiliation.tsv',
lulu_abundance_file = config["results_dir"]+'/'+config["<step_name>__FROGS_biom_to_tsv_output_dir"]+'/simple_OTU_abundance.tsv',
log: config["results_dir"]+'/logs/' + config["<step_name>__FROGS_biom_to_tsv_output_dir"] + '/FROGS_biom_to_tsv_log.txt',
params:
command = config["<step_name>__FROGS_biom_to_tsv_command"],
outDir = config["results_dir"]+'/'+config["<step_name>__FROGS_biom_to_tsv_output_dir"],
shell: """
{params.command} -b {input.biom} -t {output.abundance_file}
{params.command} -b {input.biom} -t {output.abundance_file} ;
cut -f10,12- -d$'\t' {output.abundance_file} > {output.lulu_abundance_file}
"""
\ No newline at end of file
tools/FROGS_biom_to_tsv/FROGS_biom_to_tsv.yaml
View file @
277d26f4
...
...
@@ -23,6 +23,8 @@
outputs
:
[
{
name
:
"
abundance_file"
,
file
:
"
tax_affiliation.tsv"
,
type
:
"
tsv"
,
description
:
"
output
file
with
the
abundance
and
metadata
(tsv)"
},
{
name
:
"
lulu_abundance_file"
,
file
:
"
simple_OTU_abundance.tsv"
,
type
:
"
tsv"
,
description
:
"
OTU
abundance
with
samples
as
columns
and
OTUs
as
rows
(for
lulu)"
},
],
options
:
[
...
...
Write
Preview
Markdown
is supported
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