drugforge.spectrum.align_seq_match.get_idx_by_seq
- drugforge.spectrum.align_seq_match.get_idx_by_seq(dir_path: str, alignments: MultipleSeqAlignment)[source]
Auxiliary function to match pdbs of a directory to entries on MultiSeq alignment object
- Parameters:
dir_path (str) – Path to directory with PDBs
alignments (Align.MultipleSeqAlignment) – BioPython multi sequence alignment with protein sequence entries
- Returns:
Returns equal-length lists of pdbs, idx in fasta object and labels
- Return type:
(list, list, list)