Description Usage Arguments Value Examples
View source: R/AllConstructors.R
Constructor method for creating instances of class CMdictionary-class
. The created Conceptmapper dictionary will be stored as an XML file in the file system.
1 2 3 | CMdictionary(inputFileOrDb = NULL, dictType = "OBO",
outputDir = tempdir(), synonymType = "EXACT", taxID = 0,
outputDirOp = TRUE)
|
inputFileOrDb |
The local OBO/OWL ontology to be converted into an XML Conceptmapper dictionary or the URL of a OBO/OWL file. If inputFileOrdb is NA and the |
dictType |
the type of input dictionary
|
outputDir |
the directory where the XML conceptmapper dictionary will be stored. Defaults to the tmp system's directory |
synonymType |
The type of synonyms to consider when building the dictionary for Conceptmapper. For further detail http://owlcollab.github.io/oboformat/doc/obo-syntax.html. Default: EXACT
|
taxID |
the taxonomy identifier of the organism when the dictionary type is ENTREZ or TARGET. If 0 all the taxonomies will be included in the new dictionary. |
outputDirOp |
set to TRUE to clean the directory before creating the dictionary |
An object of type CMdictionary-class
that can be used to annotate text with the EntityFinder
.
1 2 3 4 5 6 7 8 | ## Not run:
#' ##This might take some time to download the dictionary
dict <- CMdictionary(dictType = 'TARGET', inputFileOrDb='org.Hs.eg.db')
dict_file <- system.file('extdata', 'sample.cs.obo', package='OnassisJavaLibs')
dictionary <- CMdictionary(dictType='OBO', inputFileOrDb=dict_file)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.