Skip to content

Instantly share code, notes, and snippets.

@cory-ko-g
Created November 21, 2011 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cory-ko-g/1383279 to your computer and use it in GitHub Desktop.
Save cory-ko-g/1383279 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
#include "emboss.h"
int main (int argc, char **argv) {
AjPSeqall seqall;
AjPSeqout seqout;
AjPSeq seq = NULL;
embInitPV("ctest", argc, argv, "CORY", "1.0.0");
seqall = ajAcdGetSeqall("sequence");
seqout = ajAcdGetSeqoutall("outseq");
while (ajSeqallNext(seqall, &seq)) {
// your code...
}
ajSeqoutClose(seqout);
ajSeqallDel(&seqall);
ajSeqDel(&seq);
ajSeqoutDel(&seqout);
embExit();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment