Changeset 462
- Timestamp:
- 06/06/11 12:24:07 (2 years ago)
- Location:
- trunk/ontoCAT/src/uk/ac/ebi/ontocat
- Files:
-
- 1 added
- 1 deleted
- 3 edited
-
examples/R/Example1.R (modified) (2 diffs)
-
examples/R/Example2.R (modified) (1 diff)
-
examples/R/Example3.R (added)
-
examples/R/resources (deleted)
-
virtual/LocalisedFileService.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ontoCAT/src/uk/ac/ebi/ontocat/examples/R/Example1.R
r458 r462 15 15 ########################################################## 16 16 # 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.gz17 # Please use the full version of ontoCAT R package: https://sourceforge.net/projects/ontocat/files/ontoCAT/ontoCAT_R/ontoCAT_1.1.5.tar.gz 18 18 ########################################################## 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 23 library(rJava) 24 options(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 19 30 20 31 library(RCurl) … … 34 45 library(ontoCAT) 35 46 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 48 go <- getOntology("http://www.geneontology.org/ontology/obo_format_1_2/gene_ontology_ext.obo") 38 49 39 50 # Obtain the list of all GOIDs using biomaRt -
trunk/ontoCAT/src/uk/ac/ebi/ontocat/examples/R/Example2.R
r458 r462 15 15 ###################################################### 16 16 # 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 17 18 ###################################################### 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 23 library(rJava) 24 options(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 18 30 19 31 # Table of results of experiments concering morphogenesis, where terms are in free-text form 20 32 results<-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)) 21 33 22 # Obtain GO slim for biological processes23 34 library(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 37 go <- getOntology("http://www.geneontology.org/ontology/obo_format_1_2/gene_ontology_ext.obo") 25 38 26 39 # Re-annotation example using GO ontology -
trunk/ontoCAT/src/uk/ac/ebi/ontocat/virtual/LocalisedFileService.java
r458 r462 56 56 /** 57 57 * Instantiates the decorator. 58 * 58 * 59 59 */ 60 60 public LocalisedFileService(FileOntologyService fos) { … … 65 65 /** 66 66 * Creates the proxy. 67 * 67 * 68 68 * @param fos 69 69 * the obj 70 70 * 71 * 71 * 72 72 * @return the object 73 73 * @throws OntologyServiceException
Note: See TracChangeset
for help on using the changeset viewer.