-
Notifications
You must be signed in to change notification settings - Fork 21
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
Fuzzy locations break document validity #200
Comments
A workaround for now will be to simply not use this class: instead, use the same behavior of the old converter, which just truncated fuzzy ranges into Some possible better resolutions for the future:
|
On deeper inspection, it looks like we're already partway to solution via the section approach, since the offending |
…s be 1) add a non-standard sbol#locationPosition type, and 2) reference to an unrecognized Location from a SequenceFeature. Temporarily address this by reverting to the prior behavior of truncating fuzzy ranges into ranges.
Is this possible a job for an extension? Could this work by extending |
Unfortunately, I don't currently see how to do it:
|
That's unfortunate. I'm glad you explored the possibility. I have opened a pySBOL3 issue to understand this limitation better: SynBioDex/pySBOL3#427 |
Patch has been merged; issue will stay open for a better resolution. |
The current implementation of the SBOL/Genbank converter in sbol3_genbank_conversion.py uses a custom class
Location_GenBank_Extension
to represent GenBank's fuzzy location field.Unfortunately, the current implementation breaks document validity, because it tags the objects with type
http://sbols.org/v3#locationPosition
, which is not a valid SBOL type. This causes any SBOL library not already adjusted to accept the extension (e.g., pySBOL3) to deem the document invalid (and possibly also crash during loading, depending on implementation).Changing the intended type for the location,
http://www.ncbi.nlm.nih.gov/genbank#locationPosition
, does not fix the problem either, because now there is aSequenceFeature
whosehasLocation
property points to something that the library doesn't believe is an SBOLLocation
.The text was updated successfully, but these errors were encountered: