wrapper.c - LVB to PHYLIP interface
Version Tag $Id: wrapper.c,v 1.27 2006/02/06 19:55:47 db60 Exp $
Dataptr phylip_dna_matrin(Lvb_bool ileaved);
Read a DNA data matrix in PHYLIP 3.6 format from file. The file name is given by the macro MATFNAM in lvb.h.
LVB_TRUE
indicates that the matrix is in PHYLIP interleaved format.
Otherwise, it is assumed to be in PHYLIP sequential format.
Returns a pointer to a new, dynamically allocated LVB data matrix structure containing the data matrix.
void phylip_mat_dims_in(long *species_ptr, long *sites_ptr);
Reads the number of sequences and number of sites per sequence in a PHYLIP-format matrix file.
On return, *species_ptr
is set to the number of sequences.
On return, *sites_ptr
is set to the number of sites per
sequence.
phylip_mat_dims_in()
should not be called if the matrix file is
open.