コード例 #1
0
 private DasComponentFeature getTranscript(
     String transcriptID, int startI, int stopI, DasComponentFeature gene)
     throws DataSourceException {
   for (DasComponentFeature feature : gene.getReportableSubComponents())
     if (feature.getFeatureId().equals(transcriptID)) return feature;
   return gene.addSubComponent(
       transcriptID,
       startI,
       stopI,
       startI,
       stopI,
       transcriptID,
       this.transcriptType,
       transcriptID,
       transcriptID,
       method,
       null,
       null,
       null,
       null,
       null);
 }
コード例 #2
0
 private DasComponentFeature getExon(
     String exonID, int startI, int stopI, DasComponentFeature transcript)
     throws DataSourceException {
   for (DasComponentFeature feature : transcript.getReportableSubComponents())
     if (feature.getFeatureId().equals(exonID)) return feature;
   return transcript.addSubComponent(
       exonID,
       startI,
       stopI,
       startI,
       stopI,
       exonID,
       this.exonType,
       exonID,
       exonID,
       method,
       null,
       null,
       null,
       null,
       null);
 }