コード例 #1
0
 private DasComponentFeature getGene(
     String geneID, int startI, int stopI, DasAnnotatedSegment segment)
     throws DataSourceException {
   for (DasFeature feature : segment.getFeatures())
     if (feature.getFeatureId().equals(geneID)) return (DasComponentFeature) feature;
   return segment
       .getSelfComponentFeature()
       .addSubComponent(
           geneID, startI, stopI, startI, stopI, geneID, geneType, geneID, geneID, method, null,
           null, null, null, null);
 }