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
genotoul-bioinfo
metagWGS
Commits
cd6dd688
Commit
cd6dd688
authored
Dec 16, 2021
by
Jean Mainguy
Browse files
refactoring of aln2taxaffi. use of new_taxdump and prot.accession2taxid.FULL
parent
f81cd2d3
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
bin/aln2taxaffi.py
View file @
cd6dd688
This diff is collapsed.
Click to expand it.
modules/assign_taxonomy.nf
View file @
cd6dd688
...
...
@@ -4,7 +4,7 @@ process ASSIGN_TAXONOMY {
label
'PYTHON'
input:
tuple
path
(
accession2taxid
),
path
(
taxdump
)
tuple
path
(
accession2taxid
),
path
(
new_
taxdump
)
tuple
val
(
sampleId
),
path
(
m8
),
path
(
sam_coverage
),
path
(
prot_len
)
output:
...
...
@@ -23,7 +23,9 @@ process ASSIGN_TAXONOMY {
script:
"""
aln2taxaffi.py -a ${accession2taxid} --taxonomy ${taxdump} -o ${sampleId} ${m8} ${prot_len}
aln2taxaffi.py -a ${accession2taxid} --taxonomy ${new_taxdump} \
-o ${sampleId} -b ${m8} --keep_only_best_aln \
--query_length_file ${prot_len} -v
merge_contig_quantif_perlineage.py -c ${sampleId}.percontig.tsv -s ${sam_coverage} -o ${sampleId}_quantif_percontig
"""
}
subworkflows/00_databases.nf
View file @
cd6dd688
...
...
@@ -69,9 +69,9 @@ workflow DATABASES {
}
else
if
(
params
.
taxonomy_dir
)
{
ch_accession2taxid
=
Channel
.
fromPath
(
params
.
taxonomy_dir
+
'/prot.accession2taxid'
,
checkIfExists:
true
)
.
fromPath
(
params
.
taxonomy_dir
+
'/prot.accession2taxid
.FULL
'
,
checkIfExists:
true
)
ch_taxdump
=
Channel
.
fromPath
(
params
.
taxonomy_dir
+
'/taxdump'
,
checkIfExists:
true
)
.
fromPath
(
params
.
taxonomy_dir
+
'/
new_
taxdump'
,
checkIfExists:
true
)
ch_taxonomy
=
ch_accession2taxid
.
combine
(
ch_taxdump
)
}
else
{
...
...
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