[Biojava-l] How to get strand information using DAS and biojava?

Thorsten Jansen thorsten.jansen@lionbioscience.com
Thu, 01 Aug 2002 11:30:50 +0200


Hi,
does anybody out there know how to get the strand information for a
feature received from a DAS server by using biojava?

I tried the following code but unfortunatly that code doesn't work:
////////////////////////////////////////////////////////////
DASSequence dasSeq;
.....
.....
Iterator iterator = dasSeq.features();
while (iterator.hasNext()){
    org.biojava.bio.seq.StrandedFeature fbj =
(org.biojava.bio.seq.StrandedFeature)iterator.next();
    ....
    ....
}
/////////////////////////////////////////////////////////////
This code results in a classcastexception. Casting to
org.biojava.bio.seq.Feature works fine but that doesn't provide me with
the strand information.

Thanks
Thorsten