-
Notifications
You must be signed in to change notification settings - Fork 0
Fix endogenous genomic mapping #68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: mavedb-dev
Are you sure you want to change the base?
Conversation
This change reduces likelihood of errors when mapping accession-based transcript variants to genomic positions. Keep alignment process for now so that we can report the transcript and gene for these variants. Eventually, just the transcript id could be used to access this information.
bencap
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks Sally. A couple minor comments that should be quick but which I do think are worth addressing before merging.
|
|
||
| _logger = logging.getLogger(__name__) | ||
|
|
||
| CLINGEN_API_URL = "https://reg.genome.network/allele" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's set this as an environment variable.
This should be a separate issue, but this did make me think we should standardize the way we setup envvars for ClinGen (and our other services, generally)
| try: | ||
| response.raise_for_status() | ||
| except requests.HTTPError as e: | ||
| msg = f"Received HTTPError from {CLINGEN_API_URL} for HGVS {hgvs}" | ||
| _logger.error(msg) | ||
| raise ResourceAcquisitionError(msg) from e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might want to back off certain response errors with some retry logic here so we can do our best to fill everything in completely and avoid missing data from transient errors.
| """Provide dcd mapping version""" | ||
|
|
||
| dcd_mapping_version = "2025.3.1" | ||
| dcd_mapping_version = "2026.1.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can bump this just prior to being released rather than as part of any individual changes. It's pedantic, but it's not really a new version until we are ready to release it.
Use ClinGen to map accession-based transcript variants to genomic locations.