Skip to content

Bug - Invalid Ensembl IDs get VersionedOrLowercase error #28

Description

@demhadais

Because of line

if !ensembl_id.is_versionless_and_uppercase() {
, Ensembl IDs which don't even match the pattern end up being called "versioned or lowercase" IDs. We could probably collapse all these checks into one check, which, if fails, returns one type of error like "invalid Ensembl ID". On the other hand, if we just move around the order of these checks, we can detect an invalid Ensembl ID when we fetch from the map and detect whether it was versioned/uppercase.

In any case, an ID like "foo" will end up with a VersionedOrLowercase error, which is incorrect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions