Skip to content
Snippets Groups Projects
Commit 6706df75 authored by Andy Yates's avatar Andy Yates
Browse files

Allowing species as a rank

parent e00bdecc
No related branches found
No related tags found
No related merge requests found
......@@ -162,7 +162,7 @@ sub _taxonomy {
my ( $self, $db ) = @_;
$self->v('Querying taxonomy for classification');
my $taxon = $self->_db_to_taxon($db);
my @excluded_ranks = qw/species root genus/;
my @excluded_ranks = qw/root genus/;
my @excluded_names = ('cellular organisms', 'root');
my $sql = <<'SQL';
select n.name
......@@ -171,7 +171,7 @@ join ncbi_taxa_node t2 on (t2.left_index <= t.left_index and t2.right_index >= t
join ncbi_taxa_name n on (t2.taxon_id = n.taxon_id)
where t.taxon_id =?
and n.name_class =?
and t2.rank not in (?,?,?)
and t2.rank not in (?,?)
and n.name not in (?,?)
order by t2.left_index desc
SQL
......
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