msa_parsing

Utilities for parsing MSAs

source

remove_insertions

 remove_insertions (sequence:str)

Removes any insertions into the sequence. Needed to load aligned sequences in an MSA.


source

read_sequence

 read_sequence (filename:str)

Reads the first (reference) sequences from a fasta or MSA file.


source

read_msa

 read_msa (filename:str, nseq:int)

Reads the first nseq sequences from an MSA file, automatically removes insertions.