Package bnGUI

Examples of bnGUI.OBOES


    public enr_geneEnricherOBOES() {
    }

    public static ArrayList[] enrich(String[] accessions, writeReport wrep) {
        //OBOES is a class for finding over/under representated annotations in a gene set
        OBOES myOB = new OBOES();

        //These files are the ontology and the underlying data
        File ontology = new File(FILENAME_ONTOLOGY);
        File annotation_BP = new File(FILENAME_ANNOTATION_BP);
        File annotation_CC = new File(FILENAME_ANNOTATION_CC);
        File annotation_MF = new File(FILENAME_ANNOTATION_MF);

        //This determines the statistical procedures used and cutoffs
        myOB.setCorrectionMethod("benjamini_hochberg");
        myOB.setMaximumPvalue(.05);
        myOB.setMinimumCount(2);

        //This loads the data in
        myOB.loadOntology(ontology.getAbsolutePath(), "gene ontology");
        try {
            myOB.loadAnnotation(annotation_BP.getAbsolutePath(), "gene ontology");
            myOB.loadAnnotation(annotation_CC.getAbsolutePath(), "gene ontology");
            myOB.loadAnnotation(annotation_MF.getAbsolutePath(), "gene ontology");
        } catch (Exception ex) {
            System.out.println(ex.toString());
        }

        try {
            // This is the actual enrichment happening
            ///enr now has all the results of the enrichment
            SimpleEnrichment[] enr = myOB.getSimpleEnrichment(accessions, "gene ontology");
            if (wrep.lookupFileName != null) {
                File lo = new File(wrep.lookupFileName);

                //This will print out a heatmap of the results
                enr_BioTools2.createHeatMap(enr,
View Full Code Here


        for (int i = 0; i < accessions.length; i++) {
            accessions[i] = (i + 1) + "";
        }
       
       
        OBOES myOB = new OBOES();


        File ontology = new File(FILENAME_ONTOLOGY);
        File annotation_BP = new File(FILENAME_ANNOTATION_BP); //biological process
        File annotation_CC = new File(FILENAME_ANNOTATION_CC); //cellular component
        File annotation_MF = new File(FILENAME_ANNOTATION_MF); //molecular function

        myOB.setCorrectionMethod("benjamini_hochberg");
        myOB.setMaximumPvalue(.99);
        myOB.setMinimumCount(1);
        myOB.loadOntology(ontology.getAbsolutePath(), "geneo");
        try {
            myOB.loadAnnotation(annotation_BP.getAbsolutePath(), "geneo");
            myOB.loadAnnotation(annotation_CC.getAbsolutePath(), "geneo");
            myOB.loadAnnotation(annotation_MF.getAbsolutePath(), "geneo");
        } catch (Exception ex) {
            System.out.println(ex.toString());
        }
        SimpleEnrichment[] enr = null;
        try {
            enr = myOB.getSimpleEnrichment(accessions, "geneo");

            /*ArrayList[] arr;
            if (enr != null && enr.length > 0) {
            arr = new ArrayList[enr.length];
           
View Full Code Here

TOP

Related Classes of bnGUI.OBOES

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.