Giter Site home page Giter Site logo

drseb / boqa Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 6.0 207 KB

Bayesian ontology querying from Bauer et al.

Home Page: https://phenomics.github.io/software-boqa.html

License: Other

Java 95.45% R 4.55%
hpo phenotype similarity bayesian-inference phenotypes phenotyping phenotype-ontologies obofoundry

boqa's Introduction

BOQA

Simple usage by:

	// Test usage
	BoqaService service = new BoqaService(ontologyFile, annotationFile);
	service.scoreItemsForTestQuery();

	BOQACore.setAssociationFileType(Type.PAF);
	BOQACore boqaCore = new BOQACore(ontologyFile, annotationFile);

	List<Integer> queryAsBoqaIndices = new ArrayList<Integer>();
	queryAsBoqaIndices.add(1);
	queryAsBoqaIndices.add(2);
	queryAsBoqaIndices.add(3);

	List<ItemResultEntry> resultList = boqaCore.score(queryAsBoqaIndices);

	for (int i = 0; i < 10; i++) {

		int boqaId = resultList.get(i).getItemId();

		String itemName = boqaCore.getItemName(boqaId);

		double score = resultList.get(i).getScore();

		System.out.println("boqaId :" + boqaId);
		System.out.println("itemName :" + itemName);
		System.out.println("score :" + score);
		System.out.println();

	}
}

boqa's People

Contributors

drseb avatar visze avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

boqa's Issues

Ontologizer Dependencies

Hello, if you could assist me with getting your project to build it would be greatly appreciated. I'm having trouble locating the correct ontologizer dependencies. I see the ontologizerlib repo, but it does not contain many things that this project is looking for, for example ontologizer.association.AssociationParser, ontologizer.go.OBOParser, and I can't figure out where they are. Could you point me to them? Thanks

Handling of unknown TermIds

Currently an IllegalArgEx is thrown when unknown TermIds are given. Thus users have to filter before calling BOQA. I think it might be better to just run BOQA with the terms that can be found and print warnings for the ignored terms.

Javadoc errors using JDK8

Packaging this project using maven 3.5.1 and jdk8-openjdk 6.u144 will fail because of incomplete javadoc errors.
This is a broader issue as outlined here:
https://stackoverflow.com/questions/15886209/maven-is-not-working-in-java-8-when-javadoc-tags-are-incomplete

This issue can be fixed by disabling Xdoclint when compiling with jdk8. I have appended an edited pom.xml, which is usable for building against jdk8.

On a broader perspective it would be great if this issue could be fixed by completing documentation according to doclint requirements. Is there still ongoing work in this project?
pom.xml.txt

Help with Usage

@drseb Maybe this is the wrong repo, but I'm trying to basically run Phenomizer locally with a couple changes to the ontology and annotations, and I'm having a difficult time figuring out how to do that. The example gives back a list of phenotypes; how do I get the matching diseases? Thanks

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.