Changeset 22838
- Timestamp:
- 09/09/10 11:22:21 (17 months ago)
- Location:
- trunk/bio/sources/example-sources
- Files:
-
- 13 added
- 5 edited
-
kegg-example/.classpath (modified) (2 diffs)
-
kegg-example/kegg-example_additions.xml (modified) (1 diff)
-
kegg-example/main/src/org/intermine/bio/dataconversion/KeggExampleConverter.java (modified) (3 diffs)
-
kegg-example/resources/kegg-example_keys.properties (modified) (1 diff)
-
kegg-example/test (added)
-
kegg-example/test/build.xml (added)
-
kegg-example/test/lib (added)
-
kegg-example/test/project.properties (added)
-
kegg-example/test/resources (added)
-
kegg-example/test/resources/KeggConverterTest_tgt.xml (added)
-
kegg-example/test/resources/pfa_gene_map.tab (added)
-
kegg-example/test/src (added)
-
kegg-example/test/src/org (added)
-
kegg-example/test/src/org/intermine (added)
-
kegg-example/test/src/org/intermine/bio (added)
-
kegg-example/test/src/org/intermine/bio/dataconversion (added)
-
kegg-example/test/src/org/intermine/bio/dataconversion/KeggExampleConverterTest.java (added)
-
kegg-identifiers/resources/kegg-identifiers_keys.properties (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bio/sources/example-sources/kegg-example/.classpath
r20410 r22838 2 2 <classpath> 3 3 <classpathentry kind="src" path="main/src"/> 4 <classpathentry kind="src" path="test/src"/> 4 5 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> 5 6 <classpathentry combineaccessrules="false" kind="src" path="/bio-core-main"/> … … 10 11 <classpathentry combineaccessrules="false" kind="src" path="/intermine-objectstore-main"/> 11 12 <classpathentry combineaccessrules="false" kind="src" path="/intermine-objectstore-test"/> 13 <classpathentry kind="lib" path="test/resources"/> 12 14 <classpathentry kind="output" path="bin"/> 13 15 </classpath> -
trunk/bio/sources/example-sources/kegg-example/kegg-example_additions.xml
r22539 r22838 3 3 <class name="Pathway" is-interface="true" > 4 4 <attribute name="identifier" type="java.lang.String"/> 5 <attribute name="name" type="java.lang.String"/>6 5 <collection name="genes" referenced-type="Gene" reverse-reference="pathways"/> 7 6 </class> -
trunk/bio/sources/example-sources/kegg-example/main/src/org/intermine/bio/dataconversion/KeggExampleConverter.java
r22812 r22838 80 80 81 81 Iterator lineIter = FormattedTextParser.parseTabDelimitedReader(reader); 82 83 82 while (lineIter.hasNext()) { 84 83 // line is a string array with the one element for each tab separated value 85 84 // on the next line of the file 86 85 String[] line = (String[]) lineIter.next(); 87 88 86 String geneId = line[0]; 89 87 … … 113 111 * @param pathwayId the id of a KEGG pathway to look up 114 112 * @return an Item representing the pathway 113 * @throws ObjectStoreException 115 114 */ 116 private Item getPathway(String pathwayId) { 115 private Item getPathway(String pathwayId) 116 throws ObjectStoreException { 117 117 Item pathway = pathwayMap.get(pathwayId); 118 118 if (pathway == null) { … … 120 120 pathway.setAttribute("identifier", pathwayId); 121 121 pathwayMap.put(pathwayId, pathway); 122 store(pathway); 122 123 } 123 124 return pathway; -
trunk/bio/sources/example-sources/kegg-example/resources/kegg-example_keys.properties
r22539 r22838 1 Organism=key_taxonid 2 DataSource=key_name 3 Gene=key_primaryidentifier 4 DataSet=key_title 5 OntologyTerm=key_name_ontology 6 Ontology=key_title 1 Organism.key_taxonid=taxonId 2 Gene.key_primaryidentifier=primaryIdentifier 3 Pathway.key_identifier=identifier -
trunk/bio/sources/example-sources/kegg-identifiers/resources/kegg-identifiers_keys.properties
r22786 r22838 1 1 DataSet=key_title 2 2 DataSource=key_name 3 Synonym=key_synonym4 SequenceOntologyTerm=key_name
Note: See TracChangeset
for help on using the changeset viewer.
