NAME

wrapper.c - LVB to PHYLIP interface

Version Tag $Id: wrapper.c,v 1.27 2006/02/06 19:55:47 db60 Exp $


phylip_dna_matrin - READ PHYLIP-FORMAT DNA DATA MATRIX

SYNOPSIS

    Dataptr phylip_dna_matrin(Lvb_bool ileaved);

DESCRIPTION

Read a DNA data matrix in PHYLIP 3.6 format from file. The file name is given by the macro MATFNAM in lvb.h.

PARAMETERS

INPUT

ileaved

LVB_TRUE indicates that the matrix is in PHYLIP interleaved format. Otherwise, it is assumed to be in PHYLIP sequential format.

RETURN

Returns a pointer to a new, dynamically allocated LVB data matrix structure containing the data matrix.


phylip_mat_dims_in - READ PHYLIP MATRIX DIMENSIONS

SYNOPSIS

void phylip_mat_dims_in(long *species_ptr, long *sites_ptr);

DESCRIPTION

Reads the number of sequences and number of sites per sequence in a PHYLIP-format matrix file.

PARAMETERS

OUTPUT

species_ptr

On return, *species_ptr is set to the number of sequences.

sites_ptr

On return, *sites_ptr is set to the number of sites per sequence.

BUGS

phylip_mat_dims_in() should not be called if the matrix file is open.