Skip to content

Commit

Permalink
Give alternative result into Readme's minidocs
Browse files Browse the repository at this point in the history
  • Loading branch information
omaus committed Jul 26, 2023
1 parent 2c5aaae commit a97d033
Show file tree
Hide file tree
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
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion playground.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -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.