[Biojava-l] Identified bug in BioJava(Paiu Alexandru)

Scooter Willis willishf at ufl.edu
Wed Apr 6 18:30:11 UTC 2011


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 <paiualex12 at gmail.com> 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  -  Biojava-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/biojava-l
>
>




More information about the Biojava-l mailing list