Skip to content

Taxa tab does not show taxon labels #159

Open
@ghost

Description

Under the Taxa tab, results appear to show two of four columns: "Taxon Label" and "Taxon Name". But it seems that the "Taxon Label" column does not actually display taxon labels -- and they always seem to be identical to the taxon name column. Furthermore, it does not seem to be possible to search on a taxon label that is not mapped to a taxon variant record. For example, "Cryptosporidium fox" is a taxon label that does not have taxon intel, but if I try to do a taxon label search, it returns zero records. This means that we cannot search on trees, matrices, or studies based on an unmapped taxon label string. Also, a search will list results even though the database does not have any studies, trees, or matrices with these taxa. For example, an exact taxon variant search on "Homo sapiens neanderthalensis" displays a result even though we don't have any trees that map to this. Ideally, we would only list results for names that have data in the database.

Perhaps the problem is that the Taxon tab is trying to do too much. At any rate, the behavior ought to be the following:

  1. search on a taxon label, you get a "distinct" list of all matching taxon labels whether or not they are mapped to a taxon variant and whether or not the taxon variants are mapped to taxa. On the basis of this list, the user can click the Trees tab and get a result. The list is "distinct" in the sense that we don't need to see multiple duplicate/identical rows (distinct being based on the taxon label string + taxon and ncbi id, if mapped).

  2. search on a taxon variant, you get a list with an exemplar taxon label for each row and the taxon name. Since we don't have space for a fullname taxon variant column, this is not displayed, and the "distinct" aspect of this list applies to the taxon name + ncbi id (with a taxon label showing up as an exemplar). You do not see any rows for which there is no mapping to at least one taxon label.

  3. search on a taxon, you get the same result as in (2) above.

The implication is that the behavior of subsequently clicking another tab differs between (1) and (2 + 3) above. e.g. click on the Tree tab after (1), the result is a set of trees that contain any of the taxon labels listed; click on the Tree tab after (2) or (3), the result is a set of trees that contain any of the taxa listed.

Reported by: piel

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions