Commit 1c318bd3 by Celine Mercier

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

parents e99684a4 a43601cf
...@@ -331,7 +331,7 @@ if __name__ == '__main__': ...@@ -331,7 +331,7 @@ if __name__ == '__main__':
for t in options.newspecies: for t in options.newspecies:
genus,species = t.split(" ",1) genus,species = t.split(" ",1)
parent = options.taxonomy.findTaxonByName(genus) parent = options.taxonomy.findTaxonByName(genus)[0]
taxid = options.taxonomy.addLocalTaxon(t,'species',parent[0],options.taxashift) taxid = options.taxonomy.addLocalTaxon(t,'species',parent[0],options.taxashift)
taxon = options.taxonomy.findTaxonByTaxid(taxid) taxon = options.taxonomy.findTaxonByTaxid(taxid)
parent= options.taxonomy._taxonomy[taxon[2]] parent= options.taxonomy._taxonomy[taxon[2]]
...@@ -347,4 +347,4 @@ if __name__ == '__main__': ...@@ -347,4 +347,4 @@ if __name__ == '__main__':
ecoTaxonomyWriter(options.ecodb,options.taxonomy,onlyLocal=True) ecoTaxonomyWriter(options.ecodb,options.taxonomy,onlyLocal=True)
\ No newline at end of file
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