-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Hi @ielis
I'm using gpsea and it's an awesome library but I've a little problem when the gene variant data is not curated by myself in several projects. My problem is that in some cases, my collaborators give me malformed hgvs.c descriptions as the following:
NM_006772.3:c.359_
You can check in https://rest.variantvalidator.org/VariantValidator/variantvalidator/GRCh38/NM_006772.3:c.359_/NM_006772.3 the resulting json. This kind of json breaks the _extract_variant_coordinates method in VVHgvsVariantCoordinateFinder class that is called by the find_coordinates method. find_coordinates has a try exception but only triggers with two specific different exceptions. I generalized this to general Exception class to catch any problem with the query and keep patients with correct hgvs.c variants whereas the malformed ones are discarded.
Other suggestion is to add a verbose mode in VVHgvsVariantCoordinateFinder in order to output the rest url and the obtained response to debug these cases.
Thank you in advance
Pedro Seoane