cocoatree.msa.filter_seq_id¶
- cocoatree.msa.filter_seq_id(sequences, sequences_id, list_id)[source]¶
Filter sequences based on list
Filter a multiple sequence alignment to keep only sequences whose identifiers are in a user provided list.
Parameters¶
sequences : list of MSA sequences
sequences_id : list of the MSA’s sequence identifiers
list_id : list of sequence identifiers the user wants to keep. The identifiers must be in the same format as in the input MSA
Returns¶
- new_msaBio.Align.MultipleSeqAlignment object,
filtered msa
id_list : list of sequence ID in the filtered MSA
seq_list : list of sequences of the filtered MSA