7 #include "../pairwise.h"
11 MODULE = Pairwise PACKAGE = Pairwise
21 /* read the sequences */
22 seqs = read_fasta(file);
25 /* do the pairwise comparison */
26 output = do_pairwise(seqs);
28 /* free the sequences */
29 while (seqs[i] != NULL)
30 free_fasta(seqs[i++]);
33 /* find out much output there is */
34 while (output[i] != NULL)
38 /* convert it to perl and free the output */
39 for (i = 0; output[i] != NULL; i++) {
40 PUSHs(sv_2mortal( newSVpv(output[i], strlen(output[i])) ));