If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Help with my WPF Application

I am currently developing a wpf application to extract a sequence from a file contained within a rich textbox. What I have been able to do is load the file (a pdb file, which is basically a text file and can be opened in wordpad) into the rich text box on my form. What I am having difficulty with is extracting the information I want from this rich text box.

I have enclosed my application and the raw data above (2B0F), and would be very grateful if you could review it and see how to get this particular aspect working. A PDB file is a Protein Data Bank used in Mass Spectromatry, and is big because the data it contains is extensive.

Basically, what I intend is to load the .pdb file into the rich text box, and then extract the sequence data. This data looks like:

etc, with a whole lot of data that I do not need at the moment at the top above this as you can see (you will need to scroll to see the data I am meaning in my application once you have loaded the pdb file. I would like to extract the sequence from this data above, and put it into a rich text box, so it looks like this (this is all the data from the sequence I have enclosed): As you can see, all I need is the atom number and the chemical code from the centre, as well as divide this up into two chains (for example chain A represents all those that have an A, and chain B represents all those that have a B in it.