Using the ajSeqRead function....

Brooks Mark brooks at embl-grenoble.fr
Mon Aug 20 16:54:02 UTC 2001


Hi all,
        I have run into a bit of a problem when trying to open a file
from a file selection dialog.  I need to parse (nucleotide) sequence
files and spit their contents into AjPSeq instances.

   Question 1:  Am I right in thinking that ajSeqRead should parse these
files in this manner?
If so:
    Question 2: Am I doing this right? Here is a simplified code
snippet:

------------->8-------------------8<------------------
int
open_ok () {
AjPSeq seq;
AjPSeqin seqIn;
AjPStr seqfileInName;

seq = ajSeqNew ();
seqIn = ajSeqinNew ();
seqfileInName = ajStrNewC("actin.seq");
ajSeqinUsa ( &seqIn , seqfileInName );
ajSeqinSetNuc (seqIn);
ajSeqRead (seq , seqIn);
ajSeqinDel (&seqIn);
return 0;

}

------------->8-------------------8<------------------

Sorry if it's a daft pair of questions, I'm a bit of a newbie! (Hence my poor code too!)

Thanks in advance for any comments,

Mark

--
Mark Brooks,
EMBL Grenoble Outstation,
6, rue Jules Horowitz, BP181
38042 Grenoble Cedex 9, France.
Tel: + (0)4 76 20 72 85






More information about the emboss-dev mailing list