Skip to content

Code to generate ontology annotated objects (e.g. HPO annotated patients)

License

Notifications You must be signed in to change notification settings

drseb/annotation-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License: CC BY-NC 4.0

License: CC BY-NC 4.0

annotation-simulation

Code to simulated noisy and/or imprecise ontology-associations for objects, such as HPO-annotated patients with a particular disease.

usage

pom

add repo

<repositories>
	<repository>
		<id>compbio</id>
            	<url>http://compbio.charite.de/tl_files/maven</url>
	</repository>
</repositories>

add dependency

<dependency>
	    <groupId>annotation-simulation</groupId>
	    <artifactId>annotation-simulation</artifactId>
	    <version>0.0.1-SNAPSHOT</version>
</dependency>

Example code to generate a thousand HPO-annotated patients with some noise and imprecision

// init
AnnotationSimulator simulator = new AnnotationSimulator(ontologyFile, annotationFile, OntologyProjectType.HPO);

// the disease
DiseaseDatabase db = DiseaseDatabase.OMIM;
String id = "114030";

// simulate now
ArrayList<ArrayList<Term>> patients = simulator.simulatePatients(db, id, 1000, 0.2, 0.4, 2, 10);
		

Releases

No releases published

Packages

No packages published

Languages