Commit 140f2697 by Eric Coissac

Merge branch 'master' of git@git.metabarcoding.org:obitools/obitools.git

parents d96cf371 20f1c1d3
......@@ -182,8 +182,8 @@ def editTaxonomyOptions(optionManager):
metavar="<path>",
default='',
help="works with the -F option. Field name for the taxonomy path of the taxa if they are in the headers of the sequences. "
"Must be of the form 'Fungi, Agaricomycetes, Thelephorales, Thelephoraceae' with the highest ancestors"
" first and ', ' as separators between ancestors")
"Must be of the form 'Fungi,Agaricomycetes,Thelephorales,Thelephoraceae' with the highest ancestors"
" first and ',' as separators between ancestors")
# optionManager.add_option('-P','--force_ancestor',
# action="store_true", dest="force_ancestor",
......@@ -267,7 +267,7 @@ if __name__ == '__main__':
elif options.path != '' :
previous = options.taxonomy.findTaxonByTaxid(restricting_ancestor)
if seq[options.path] != '' :
ancestors = [a for a in seq[options.path].split(', ')]
ancestors = [a for a in seq[options.path].split(',')]
if ancestors[-1] != t :
ancestors.append(t)
else : # useful when data is from UNITE databases but could disappear
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment