File tree 4 files changed +5
-1
lines changed
4 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ mod tests {
127
127
fn can_import_ncbi ( ) {
128
128
let nodes =
129
129
"1\t |\t 1\t |\t no rank\t |\t \t |\t 8\t |\t 0\t |\t 1\t |\t 0\t |\t 0\t |\t 0\t |\t 0\t |\t 0\t |\t \t |
130
+ 10239\t |\t 1\t |\t no_rank\t |\t \t |\t 9\t |\t 0\t |\t 1\t |\t 0\t |\t 0\t |\t 0\t |\t 0\t |\t 0\t |\t \t |
130
131
2\t |\t 131567\t |\t superkingdom\t |\t \t |\t 0\t |\t 0\t |\t 11\t |\t 0\t |\t 0\t |\t 0\t |\t 0\t |\t 0\t |\t \t |
131
132
543\t |\t 91347\t |\t family\t |\t \t |\t 0\t |\t 1\t |\t 11\t |\t 1\t |\t 0\t |\t 1\t |\t 0\t |\t 0\t |\t \t |
132
133
561\t |\t 543\t |\t genus\t |\t \t |\t 0\t |\t 1\t |\t 11\t |\t 1\t |\t 0\t |\t 1\t |\t 0\t |\t 0\t |\t \t |
@@ -137,6 +138,7 @@ mod tests {
137
138
131567\t |\t 1\t |\t no rank\t |\t \t |\t 8\t |\t 1\t |\t 1\t |\t 1\t |\t 0\t |\t 1\t |\t 1\t |\t 0\t |\t \t |" ;
138
139
let names = "1\t |\t all\t |\t \t |\t synonym\t |
139
140
1\t |\t root\t |\t \t |\t scientific name\t |
141
+ 10239\t |\t Viruses\t |\t \t |\t scientific name\t |
140
142
2\t |\t Bacteria\t |\t Bacteria <prokaryotes>\t |\t scientific name\t |
141
143
543\t |\t Enterobacteriaceae\t |\t \t |\t scientific name\t |
142
144
561\t |\t Escherchia\t |\t \t |\t misspelling\t |
Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ impl FromStr for TaxRank {
239
239
"breed" => Ok ( TaxRank :: Breed ) ,
240
240
"strain" => Ok ( TaxRank :: Strain ) ,
241
241
"serogroup" => Ok ( TaxRank :: SeroGroup ) ,
242
- "no rank" => Ok ( TaxRank :: Unspecified ) ,
242
+ "no rank" | "no_rank" => Ok ( TaxRank :: Unspecified ) ,
243
243
"biotype" => Ok ( TaxRank :: Biotype ) ,
244
244
"clade" => Ok ( TaxRank :: Clade ) ,
245
245
"forma specialis" => Ok ( TaxRank :: FormaSpecialis ) ,
Original file line number Diff line number Diff line change 48
48
91347 | Enterobacterales | | scientific name |
49
49
131567 | biota | | synonym |
50
50
131567 | cellular organisms | | scientific name |
51
+ 10239 | Viruses | | scientific name |
Original file line number Diff line number Diff line change 1
1
1 | 1 | no rank | | 8 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | |
2
+ 10239 | 1 | no_rank | | 9 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | |
2
3
2 | 131567 | superkingdom | | 0 | 0 | 11 | 0 | 0 | 0 | 0 | 0 | |
3
4
543 | 91347 | family | | 0 | 1 | 11 | 1 | 0 | 1 | 0 | 0 | |
4
5
561 | 543 | genus | | 0 | 1 | 11 | 1 | 0 | 1 | 0 | 0 | |
You can’t perform that action at this time.
0 commit comments