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

Matthew Pocock matthew_pocock@yahoo.co.uk
Thu, 24 Oct 2002 15:37:06 +0100 (BST)


Hi Stephane,

Looks like a bug to me. It turns out it's my fault
from when first writing the code. Line 200 of
RemoteFeature.java has a == that should be a !=. Fixed
in cvs. Apologies.

Matthew

 --- Stephane Marcel
<stephane.marcel@lionbioscience.com> wrote: > 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
> 
> _______________________________________________
> Biojava-l mailing list  -  Biojava-l@biojava.org
> http://biojava.org/mailman/listinfo/biojava-l 

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com