Converting Data to Strings (strings
)¶
The strings module provides some general and some specific functions which allow to convert data into strings which can then be imported by other software tools. You can import it by typing:
>>> from lingpy.convert.strings import *
Or by typing:
>>> from lingpy.convert import strings
Most of the functions are used internally, being triggered when writing, for example, data from a ~lingpy.basic.wordlist.Wordlist object to file. They can, however, also be used directly, and especially the ~lingpy.convert.strings.write_nexus function may prove useful to get a more flexible nexus-output of wordlist data.
Functions¶
|
Convert a scoring function to a string. |
|
Function converts an MSA object into a string. |
|
Convert matrix to dst-format. |
|
Function converts a list of paps into nexus file format. |
|
Write paps created by the Wordlist class to a csv-file. |
|
Convert the data in a given wordlist to NEXUS-format for multistate analyses in PAUP. |
|
Write a nexus file for phylogenetic analyses. |