Skip to content

Commit

Permalink
Give alternative result into Readme's minidocs
Browse files Browse the repository at this point in the history
omaus committed Jul 26, 2023

Unverified

This user has not yet uploaded their public signing key.
1 parent 2c5aaae commit a97d033
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -70,7 +70,11 @@ OboOntology.toFile "myOboOntology.obo" myOntology
```fsharp
let termOfInterest = testOntology.Terms[5]
testOntology.GetParentOntologyAnnotations(termOfInterest.Id)
let isAs = testOntology.GetParentOntologyAnnotations(termOfInterest.Id)
// output is an ISADotNet.OntologyAnnotation list
let isAsTerms = isAs |> List.map (fun oa -> testOntology.GetTerm(oa.TermAccessionString.ToString()))
// output is an OboTerm list
```

## Develop
6 changes: 5 additions & 1 deletion playground.fsx
Original file line number Diff line number Diff line change
@@ -54,4 +54,8 @@ let myOntology = OboOntology.create [myOboTerm] []

let termOfInterest = testOntology.Terms[5]

testOntology.GetParentOntologyAnnotations(termOfInterest.Id)
let isAs = testOntology.GetParentOntologyAnnotations(termOfInterest.Id)
// output is an ISADotNet.OntologyAnnotation list

let isAsTerms = isAs |> List.map (fun oa -> testOntology.GetTerm(oa.TermAccessionString.ToString()))
// output is an OboTerm list

0 comments on commit a97d033

Please sign in to comment.