Biochemist desperately in need of help!

Hello People

I'm a Biochemist, with no programming experience at all! I have an assignment where I have to create a programme whereby I store an array of different values for an amino acid (single char); I then paste in an amino acid sequence (a string) and using an equation, take each char and add them together and the result will tell me if it is ordered or disordered; basically I want to convert the string into chars and apply the equation and then add it up; I also have to create a GUI and applet (whatever those are?)
could any of you help me in any way? some script I can play around with would be fantasic!!

thankyou in advance

regards

Dan

Comments

  • : Hello People
    :
    : I'm a Biochemist, with no programming experience at all! I have an
    : assignment where I have to create a programme whereby I store an
    : array of different values for an amino acid (single char); I then
    : paste in an amino acid sequence (a string) and using an equation,
    : take each char and add them together and the result will tell me if
    : it is ordered or disordered; basically I want to convert the string
    : into chars and apply the equation and then add it up; I also have to
    : create a GUI and applet (whatever those are?)
    : could any of you help me in any way? some script I can play around
    : with would be fantasic!!
    :
    : thankyou in advance
    :
    : regards
    :
    : Dan
    :
    GUI: http://en.wikipedia.org/wiki/GUI
    Applet: http://en.wikipedia.org/wiki/Java_applet

    If you want to create an unchangable sequence then an array is easier to handle than an String:
    [code]
    char[] aminoAcids = new char[20];
    [/code]
    Otherwise I would suggest an ArrayList:
    [code]
    ArrayList aminoAcids = new ArrayList();
    [/code]
    See http://java.sun.com/javase/6/docs/api/ for more info on the ArrayList.

    In both cases you can use this to loop through the sequence:
    [code]
    for (char aminoAcid : aminoAcids) {
    // do something with aminoAcid
    }
    [/code]
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion