LingPy

lingpy.compare.Multiple.output

Multiple.output(fileformat='msa', filename=None, sorted_seqs=False, unique_seqs=False)

Write data to file.

Parameters :

fileformat : { ‘psa’, ‘msa’, ‘msq’ }

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

  • ‘psa’ – output of all pairwise alignments in psa-format,
  • ‘msa’ – output of the multiple alignment in msa-format, or
  • ‘msq’ – output of the multiple sequences in msq-format.

filename : str

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

sorted_seqs : bool

Indicate whether the sequences should be sorted or not (applys only to ‘msa’ and ‘msq’ output.

unique_seqs : bool

Indicate whether only unique sequences should be written to file or not.