Open jsstevenson opened 1 year ago
This issue is stale because it has been open 45 days with no activity. Please make a comment for triaging or closing the issue.
@jarbesfeld can you comment on how we should handle this? The example above should be resolved in #361 , but it is still an issue if they should an exon that is not the first or last.
For example:
await mapper.tx_segment_to_genomic(
transcript="NM_002529.3",
exon_start=2,
exon_start_offset=-100000000
)
will return
{
"gene": "NTRK1",
"genomic_ac": "NC_000001.11",
"tx_ac": "NM_002529.3",
"seg_start": {
"exon_ord": 1,
"offset": -100000000,
"genomic_location": {
"type": "SequenceLocation",
"sequenceReference": {
"type": "SequenceReference",
"refgetAccession": "SQ.Ya6Rs7DHhDeg7YaOSg1EoNi3U_nQ9SvO"
},
"start": 56864353
}
}
}
@korikuzma Since the offset can't be that large, I would return an error message saying "Invalid input: The exon_start_offset cannot exceed the difference between the start position of exon 2 and the end position of exon 1"
@jarbesfeld what's the priority for this?
@korikuzma I would say medium priority
Not sure if this was intentional -- but currently can lead to some counterintuitive results: