[Biojava-l] [Biojava-I] RemoteFeature.Region.isRemote() bugged ?

Stephane Marcel stephane.marcel@lionbioscience.com
Thu, 24 Oct 2002 15:36:51 +0200


Hi,

when I read the doc of the Class RemoteFeature.Region I can see that :

isRemote() should return true if the sequence is a remote sequence (a clone
for example) and getSeqID() will return the ID of the remote sequence.

But if I try this:
for(Iterator i = regions.iterator(); i.hasNext(); )
	{
	RemoteFeature.Region region =
	(RemoteFeature.Region) i.next();
	System.out.println(
				 region.getSeqID() + "\t" +
				 region.isRemote() + "\t" +
				 region.getLocation());
	}
}

on the folowing sequence:
CDS             join(AL123465:123..567,363963..367351,368780..369208)

I get this result:
AL123465        false   [123,567]
null    true    [363963,367351]
null    true    [368780,369208]

Is it normal or the result should be:
AL123465        true    [123,567]
null    false   [363963,367351]
null    false   [368780,369208]

If it is a bug, somebody can fix it?

Thanks

Stephane





I