Skip to content
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

Make OntologyAnnotation work with localID as TAN #460

Merged
merged 1 commit into from
Oct 23, 2024
Merged

Conversation

HLWeil
Copy link
Member

@HLWeil HLWeil commented Oct 23, 2024

closes #437

@HLWeil HLWeil marked this pull request as ready for review October 23, 2024 10:55
@@ -42,8 +42,14 @@ type OntologyAnnotation(?name,?tsr,?tan, ?comments) =

member this.TANInfo =
match this.TermAccessionNumber with
| Some v ->
Regex.tryParseTermAnnotation v
| Some tan ->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be kind of reverse right?

We have one example the paff(?) subnamespace in the MS ontology. Using this as example we would have:

TSR: MS; TAN: PEFF:0001032

Then we want to return {| IDSpace = MS; LocalID = PEFF:0001032 |}

In my opinion we should give a explicitly set TSR priority.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But then we would have MS:PEFF:0001032 as the short-annotation.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh sorry my bad! Didnt fully understand the function context. All good from my side

@HLWeil HLWeil merged commit 924a87d into main Oct 23, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] Parse LocalID OntologyAnnotation Accession Term
2 participants