in variant-prediction/predict.py [0:0]
def read_msa(filename: str, nseq: int) -> List[Tuple[str, str]]:
""" Reads the first nseq sequences from an MSA file, automatically removes insertions."""
msa = [
(record.description, str(record.seq))
for record in itertools.islice(SeqIO.parse(filename, "fasta"), nseq)
]
msa = [(desc, seq.upper()) for desc, seq in msa]
return msa