Changeset 22838


Ignore:
Timestamp:
09/09/10 11:22:21 (17 months ago)
Author:
julie
Message:

add test, keys to example source

Location:
trunk/bio/sources/example-sources
Files:
13 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/bio/sources/example-sources/kegg-example/.classpath

    r20410 r22838  
    22<classpath> 
    33    <classpathentry kind="src" path="main/src"/> 
     4    <classpathentry kind="src" path="test/src"/> 
    45    <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> 
    56    <classpathentry combineaccessrules="false" kind="src" path="/bio-core-main"/> 
     
    1011    <classpathentry combineaccessrules="false" kind="src" path="/intermine-objectstore-main"/> 
    1112    <classpathentry combineaccessrules="false" kind="src" path="/intermine-objectstore-test"/> 
     13    <classpathentry kind="lib" path="test/resources"/> 
    1214    <classpathentry kind="output" path="bin"/> 
    1315</classpath> 
  • trunk/bio/sources/example-sources/kegg-example/kegg-example_additions.xml

    r22539 r22838  
    33<class name="Pathway" is-interface="true" > 
    44  <attribute name="identifier" type="java.lang.String"/> 
    5   <attribute name="name" type="java.lang.String"/> 
    65  <collection name="genes" referenced-type="Gene" reverse-reference="pathways"/> 
    76</class> 
  • trunk/bio/sources/example-sources/kegg-example/main/src/org/intermine/bio/dataconversion/KeggExampleConverter.java

    r22812 r22838  
    8080 
    8181        Iterator lineIter = FormattedTextParser.parseTabDelimitedReader(reader); 
    82  
    8382        while (lineIter.hasNext()) { 
    8483            // line is a string array with the one element for each tab separated value 
    8584            // on the next line of the file 
    8685            String[] line = (String[]) lineIter.next(); 
    87  
    8886            String geneId = line[0]; 
    8987 
     
    113111     * @param pathwayId the id of a KEGG pathway to look up 
    114112     * @return an Item representing the pathway 
     113     * @throws ObjectStoreException 
    115114     */ 
    116     private Item getPathway(String pathwayId) { 
     115    private Item getPathway(String pathwayId) 
     116        throws ObjectStoreException { 
    117117        Item pathway = pathwayMap.get(pathwayId); 
    118118        if (pathway == null) { 
     
    120120            pathway.setAttribute("identifier", pathwayId); 
    121121            pathwayMap.put(pathwayId, pathway); 
     122            store(pathway); 
    122123        } 
    123124        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 
     1Organism.key_taxonid=taxonId 
     2Gene.key_primaryidentifier=primaryIdentifier 
     3Pathway.key_identifier=identifier 
  • trunk/bio/sources/example-sources/kegg-identifiers/resources/kegg-identifiers_keys.properties

    r22786 r22838  
    11DataSet=key_title 
    22DataSource=key_name 
    3 Synonym=key_synonym 
    4 SequenceOntologyTerm=key_name 
Note: See TracChangeset for help on using the changeset viewer.