Expand description
Reading and writing for the plain text SFS format.
The plain text format is a simple format consisting of two lines.
The first line contains a header line #SHAPE=<[shape]>
, where [shape]
is a /
-separated representation of the shape of the SFS. The next line
gives the SFS in flat, row-major order separated by a single space.
In other words, the plain text format is like the format output by realSFS, except with the addition of a header line so that the SFS can be read without passing the shape separately.
Structs§
- Parse
Header Error - An error associated with parsing the plain text format header.
Functions§
- read_
sfs - Reads an SFS in plain text format from a reader.
- read_
sfs_ from_ path - Reads an SFS in plain text format from a file path.
- write_
sfs - Writes an SFS in plain text format to a writer.
- write_
sfs_ to_ path - Writes an SFS in plain text format to a file path.