Instantiate a DO Repository
DOrepo.Rd
Instantiate a DOrepo
object from the
pyDOID package (powered by
reticulate).
Arguments
- path
The local path to the HumanDiseaseOntology git repository, as a string.
Classes & Methods
The DOrepo
class inherits the methods & subclasses of the
GitPython.Repo
class, along with the following:
DOrepo$tag_iterate(function, start = [str], end = [str])
: Iterate through DO releases (tags) fromstart
toend
executing afunction
at each.start
andend
are optional; if unspecified the first or last release/tag of the repo will be assumed.DOrepo$capture_head()
: Capture the currenthead
of the repo; useful for restoring state after git checkout(s). USE: If assigned to variablex
, restore state withx$checkout()
.DOrepo$doid
andDOrepo$doid_merged
: Access the doid.owl and doid-merged.owl files of the repository. These inherit from thepyDOID.owl.xml
class, seeowl_xml()
for methods. NOTE that, unlikeowl_xml()
, doid.owl and doid-merged.owl are not loaded into memory upon instantiation ofDOrepo
, but are loaded automatically when the first$query()
is executed or manually via$load()
.
See also
Other pyDOID classes:
owl_xml()