Changeset 462


Ignore:
Timestamp:
06/06/11 12:24:07 (2 years ago)
Author:
nata_courby
Message:

R examples

Location:
trunk/ontoCAT/src/uk/ac/ebi/ontocat
Files:
1 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ontoCAT/src/uk/ac/ebi/ontocat/examples/R/Example1.R

    r458 r462  
    1515########################################################## 
    1616# Gene enrichment test by using ontoCAT R package 
    17 # Please use the full version of ontoCAT R package: https://sourceforge.net/projects/ontocat/files/ontoCAT/ontoCAT_R/ontoCAT_1.1.3.tar.gz 
     17# Please use the full version of ontoCAT R package: https://sourceforge.net/projects/ontocat/files/ontoCAT/ontoCAT_R/ontoCAT_1.1.5.tar.gz 
    1818########################################################## 
     19 
     20#Java Heap size needed to reason over GO ontology (more than 20 MB in size) is 512MB. 
     21#Here are the instructions how to increase Java Heap Size in R: 
     22 
     23library(rJava) 
     24options(java.parameters="-Xmx512") 
     25.jinit() 
     26 
     27#To check the result: 
     28.jcall(.jnew("java/lang/Runtime"), "J", "maxMemory") 
     29#Now it is possible to work with large ontologies like GO 
    1930 
    2031library(RCurl) 
     
    3445library(ontoCAT) 
    3546 
    36 # Obtain GO slim for biological processes: 
    37 go <- getOntology("http://www.ontocat.org/browser/trunk/ontoCAT/src/uk/ac/ebi/ontocat/examples/R/resources/goslim_bp.obo") 
     47# Obtain GO ontology 
     48go <- getOntology("http://www.geneontology.org/ontology/obo_format_1_2/gene_ontology_ext.obo") 
    3849 
    3950# Obtain the list of all GOIDs using biomaRt 
  • trunk/ontoCAT/src/uk/ac/ebi/ontocat/examples/R/Example2.R

    r458 r462  
    1515###################################################### 
    1616# Search and re-annotation of free-text to ontology 
     17# Please use the full version of ontoCAT R package: https://sourceforge.net/projects/ontocat/files/ontoCAT/ontoCAT_R/ontoCAT_1.1.5.tar.gz 
    1718###################################################### 
     19 
     20#Java Heap size needed to reason over GO ontology (more than 20 MB in size) is 512MB. 
     21#Here are the instructions how to increase Java Heap Size in R: 
     22 
     23library(rJava) 
     24options(java.parameters="-Xmx512") 
     25.jinit() 
     26 
     27#To check the result: 
     28.jcall(.jnew("java/lang/Runtime"), "J", "maxMemory") 
     29#Now it is possible to work with large ontologies like GO 
    1830 
    1931# Table of results of experiments concering morphogenesis, where terms are in free-text form 
    2032results<-data.frame(term=c("sorocarp","endocardium","paraxial mesoderm","embryonic arm","post-embryonic medial fin","mesonephric glomerulus","mesonephric mesenchyme","membranous septum","post-embryonic hindlimb","bronchiole"),value=rnorm(10)) 
    2133 
    22 # Obtain GO slim for biological processes 
    2334library(ontoCAT) 
    24 go <- getOntology("http://www.ontocat.org/browser/trunk/ontoCAT/src/uk/ac/ebi/ontocat/examples/R/resources/goslim_bp.obo") 
     35 
     36# Obtain GO ontology 
     37go <- getOntology("http://www.geneontology.org/ontology/obo_format_1_2/gene_ontology_ext.obo") 
    2538 
    2639# Re-annotation example using GO ontology 
  • trunk/ontoCAT/src/uk/ac/ebi/ontocat/virtual/LocalisedFileService.java

    r458 r462  
    5656        /** 
    5757         * Instantiates the decorator. 
    58          *  
     58         * 
    5959         */ 
    6060        public LocalisedFileService(FileOntologyService fos) { 
     
    6565        /** 
    6666         * Creates the proxy. 
    67          *  
     67         * 
    6868         * @param fos 
    6969         *            the obj 
    7070         * 
    71          *  
     71         * 
    7272         * @return the object 
    7373         * @throws OntologyServiceException 
Note: See TracChangeset for help on using the changeset viewer.