Re: Identified bug in BioJava(Paiu Alexandru)

Scooter Willis <[email protected]>
Newsgroups gmane.comp.java.bio.general
Message-ID <[email protected]>
Alexandru

To make it easier on how biologist think about the first position(1)
versus how computer scientists think(0) we opted to go with the
biologist view of the world. So use 1 for the first sequence position.

Thanks

Scooter

On Wed, Apr 6, 2011 at 1:05 PM, Alexandru Paiu <[email protected]> wrote:
> Hi to all .
> I've identified a bug in BioJava .
> Usually the first element in an array is on index 0 (pos 0 ) .
> I've tried to learn more about Java and I've tryed the next 2 instructions :
>
> ProteinSequence a=new ProteinSequence("A");
> AminoAcidCompound b=a.getCompoundAt(0);
>
>
> This will give a null execption (out of array bounds or something like that
> ) .
> when I put AminoAcidCompound b=a.getCompoundAt(1);  it works and identifies
> the first
> aminoacid as Alanine .
>
> That's all for today
> _______________________________________________
> Biojava-l mailing list  -  [email protected]
> http://lists.open-bio.org/mailman/listinfo/biojava-l
>
>

_______________________________________________
Biojava-l mailing list  -  [email protected]
http://lists.open-bio.org/mailman/listinfo/biojava-l
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.