Changeset 20734


Ignore:
Timestamp:
25/02/10 17:34:38 (2 years ago)
Author:
rns
Message:

Fix gene identifiers before putting them in primaryIdentifier to item id map.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bio/sources/chado-db/main/src/org/intermine/bio/dataconversion/ModEncodeMetaDataProcessor.java

    r20732 r20734  
    279279            String submissionTitle = submissionDetails.title; 
    280280 
    281              
     281 
    282282            List<Integer> thisSubmissionDataIds = submissionDataMap.get(chadoExperimentId); 
    283283            LOG.info("DATA IDS " + chadoExperimentId + ": " + thisSubmissionDataIds.size()); 
     
    310310            // read any genes that have been created so we can re-use the same item identifiers 
    311311            // when creating antibody/strain target genes later 
    312             extractGenesFromSubFeatureMap(subFeatureMap); 
     312            extractGenesFromSubFeatureMap(processor, subFeatureMap); 
    313313        } 
    314314        LOG.info("PROCESS TIME features: " + (System.currentTimeMillis() - bT)); 
    315315    } 
    316316 
    317     private void extractGenesFromSubFeatureMap(Map<Integer, FeatureData> subFeatureMap) { 
     317    private void extractGenesFromSubFeatureMap(ModEncodeFeatureProcessor processor,  
     318            Map<Integer, FeatureData> subFeatureMap) { 
    318319        for (FeatureData fData : subFeatureMap.values()) { 
    319320            if (fData.getInterMineType().equals("Gene")) { 
    320                 geneToItemIdentifier.put(fData.getUniqueName(), fData.getItemIdentifier()); 
     321                String geneIdentifier = processor.fixIdentifier(fData, fData.getUniqueName()); 
     322                geneToItemIdentifier.put(geneIdentifier, fData.getItemIdentifier()); 
    321323            } 
    322324        } 
Note: See TracChangeset for help on using the changeset viewer.