Skip to content

Commit

Permalink
name2taxid: remove the restriction of name types. #87
Browse files Browse the repository at this point in the history
  • Loading branch information
shenwei356 committed Oct 12, 2023
1 parent 571eda0 commit 7ba1503
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions 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`:
Expand Down
9 changes: 5 additions & 4 deletions taxonkit/cmd/util-complex-data.go
Expand Up @@ -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])
Expand Down

0 comments on commit 7ba1503

Please sign in to comment.