GithubHelp home page GithubHelp logo

drseb / annotation-simulation Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 3.22 MB

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

License: GNU General Public License v3.0

Java 100.00%
hpo patients simulation phenotype hpo-annotated-patients phenotypes phenotyping phenotype-ontologies

annotation-simulation's Introduction

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);
		

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.