use Text::Tradition; my $t_from_file = Text::Tradition->new( 'name' => 'my text', 'input' => 'Tabular', 'file' => '/path/to/collation.csv', 'sep_char' => ',' ); my $t_from_string = Text::Tradition->new( 'name' => 'my text', 'input' => 'Tabular', 'string' => $tab_separated_collation, 'sep_char' => "\t", );
Parser module for Text::Tradition to read an alignment table format, such as CSV or Excel.
Takes an initialized tradition and a set of options; creates the appropriate nodes and edges on the graph, as well as the appropriate witness objects. The $option_hash can contain the following:
The data should comprise a table with witnesses arranged in columns, with the witness sigla in the first row. Empty cells are interpreted as omissions (and thus stemmatologically relevant.) Longer lacunae in the text, to be disregarded in cladistic analysis, may be represented by filling the appropriate cells with the tag '#LACUNA#'.
If a witness name ends in the collation's ac_label, it will be treated as an 'ante-correction' version of the 'main' witness whose sigil it shares.
This package is free software and is provided "as is" without express or implied warranty. You can redistribute it and/or modify it under the same terms as Perl itself.
Tara L Andrews <firstname.lastname@example.org>