griffithlab / civicpy

A python interface for the CIViC db application
MIT License
8 stars 5 forks source link

Use '*' as a wildcard for coordinate exact searches #84

Closed susannasiebert closed 4 years ago

susannasiebert commented 4 years ago

Some variants will have None reference or alternate bases (e.g., indels). Previously, a None in the coordinate query would match any reference or alternate base (i.e., act as a de-facto wildcard).

This PR changes this behavior so that using None in your query for your reference and/or alternate base will only match variants with no reference and/or alternate base. A new wildcard character * is introduced which can be used in the coordinate query for reference or alternate alleles and match any reference alleles or alternate alleles (including variants without reference or alternate alleles).