Documentation
¶
Index ¶
Constants ¶
const ( FASTA_LINE_LEN = 80 // max line length for fasta output FASTA_INITIAL_NB = 2 // max line length for fasta output )
const ( PHYLIP_LINE = 60 PHYLIP_BLOCK = 10 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser represents a parser.
func (*Parser) Alphabet ¶ added in v0.3.8
alphabet: can be align.BOTH (auto detect alphabet), align.NUCLEOTIDS (considers alignment as nucleotides), or align.AMINOACIDS (considers the alignment as aminoacids). If not auto, can return an error if the alignment is not compatible with the given alphabet. If another value is given, then align.BOTH is considered
func (*Parser) IgnoreIdentical ¶ added in v0.3.1
If sets to true, then will ignore duplicate sequences that have the same name and the same sequence Otherwise, it just renames them just as the sequences that have same name and different sequences
func (*Parser) ParseMultiple ¶ added in v0.1.1
func (p *Parser) ParseMultiple(aligns *align.AlignChannel)
Parses mutliple phylip alignments and give them to the channel At the end (or in case of error), it closes the channel. It is better to call this functioni from a go routine since it can block the buffered channel.