[Biojava-l] Group to AminoAcid ?

Andreas Prlic andreas at sdsc.edu
Wed May 11 23:23:46 UTC 2011


Hi Jay,

you could do this:

if ( group instanceof AminoAcid ) {
 AminoAcid aa = (AminoAcid) group;
}

A


On Wed, May 11, 2011 at 2:42 PM, Jay Vyas <jayunit100 at gmail.com> wrote:

> Hi Everyone :  Im trying to convert a "Group" to an "AminoAcid" in biojava,
> so that I can use the "getPhi()" "getPsi()" on my protein.  My input is
> just
> a Chain of Groups (typical pdb structure).
>
> I figured maybe I could make one using the AminoAcid constructor, so I
> tried
>
> //Group g
> new AminoAcidImpl(g)
>
> but of course, this isnt in the api.
>
> Any ideas ?
> _______________________________________________
> 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