From 7ba1503188b6bed580e0d0a5905203ac8a4d1ce0 Mon Sep 17 00:00:00 2001 From: Wei Shen Date: Thu, 12 Oct 2023 14:01:23 +0100 Subject: [PATCH] name2taxid: remove the restriction of name types. #87 --- CHANGELOG.md | 4 ++++ taxonkit/cmd/util-complex-data.go | 9 +++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d79a06..9dd427c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +- [TaxonKit v0.15.1](https://github.com/shenwei356/taxonkit/releases/tag/v0.15.1) +[![Github Releases (by Release)](https://img.shields.io/github/downloads/shenwei356/taxonkit/v0.15.1/total.svg)](https://github.com/shenwei356/taxonkit/releases/tag/v0.15.1) + - `taxonkit name2taxid`: + - remove the restriction of name types. [#87](https://github.com/shenwei356/taxonkit/issues/87) - [TaxonKit v0.15.0](https://github.com/shenwei356/taxonkit/releases/tag/v0.15.0) [![Github Releases (by Release)](https://img.shields.io/github/downloads/shenwei356/taxonkit/v0.15.0/total.svg)](https://github.com/shenwei356/taxonkit/releases/tag/v0.15.0) - `taxonkit reformat`: diff --git a/taxonkit/cmd/util-complex-data.go b/taxonkit/cmd/util-complex-data.go index 7af944b..ee816d9 100644 --- a/taxonkit/cmd/util-complex-data.go +++ b/taxonkit/cmd/util-complex-data.go @@ -56,11 +56,12 @@ func getTaxonName2Taxids(file string, limit2SciName bool) map[string][]uint32 { if items[6] != "scientific name" { continue } - } else { - if !(items[6] == "scientific name" || items[6] == "synonym") { - continue - } } + // else { + // if !(items[6] == "scientific name" || items[6] == "synonym") { + // continue + // } + // } name = items[2] id, err = strconv.Atoi(items[0])