{ 1, dna.getLength() }, 1, 1));
// TODO: transform EMBL Database refs to canonical form
if (dbRefs != null)
+ {
for (Iterator i = dbRefs.iterator(); i.hasNext(); dna
.addDBRef((DBRefEntry) i.next()))
+ {
;
+ }
+ }
}
try
{
{
for (Iterator dbr = feature.dbRefs.iterator(); dbr.hasNext(); dna
.addDBRef((DBRefEntry) dbr.next()))
+ {
;
+ }
}
}
if (FeatureProperties.isCodingFeature(sourceDb, feature.getName()))
{
for (Iterator dbr = feature.dbRefs.iterator(); dbr.hasNext(); dna
.addDBRef((DBRefEntry) dbr.next()))
+ {
;
+ }
}
}
}
// { 1prstart, prstart + prseq.length() - 1 }, 3, 1);
pcdnaref.setMap(new Mapping(mp));
if (product != null)
+ {
product.addDBRef(pcdnaref);
+ }
}
}
sf.setEnd(exon[xint + 1]);
sf.setType(feature.getName());
sf.setFeatureGroup(sourceDb);
- sf.setDescription("Exon " + (1 + (int) (xint / 2))
+ sf.setDescription("Exon " + (1 + xint / 2)
+ " for protein '" + prname + "' EMBLCDS:" + prid);
sf.setValue(FeatureProperties.EXONPOS, new Integer(1 + xint));
sf.setValue(FeatureProperties.EXONPRODUCT, prname);
if (vals != null && vals.size() > 0)
{
- Enumeration kv = vals.elements();
+ Enumeration kv = vals.keys();
while (kv.hasMoreElements())
{
Object key = kv.nextElement();
if (key != null)
+ {
sf.setValue(key.toString(), vals.get(key));
+ }
}
}
dna.addSequenceFeature(sf);