LingPy

lingpy.lexstat.LexStat.output

LexStat.output(fileformat='lxs', filename=None)

Write the data to file.

Parameters :

fileformat : { ‘lxs’, ‘star’, ‘psa’, ‘msa’, ‘alm’, ‘dst’ }

Indicate which data should be written to a file. Select between:

  • ‘lxs’ – output in lxs-format,
  • ‘star’ – output in star-format (one separate file for each language),
  • ‘psa’ – output of all pairwise alignments in psa-format,
  • ‘msa’ – output of all cognate sets in separate files in msa-format,
  • ‘alm’ – output of all cognate sets in one file in alm-format (all data with presumed cognates in aligned format), or
  • ‘dst’ – the distance matrix in dst-format (input format for distance analyses in the Phylip software package (see http://evolution.genetics.washington.edu/phylip/).

filename : str

Select a specific name for the outfile, otherwise, the name of the infile will be taken by default.