bis_protein_structure.CROSSLINK.calculate_lys_leu_map¶
- bis_protein_structure.CROSSLINK.calculate_lys_leu_map(chain_id, chain, residue_dict)[source]¶
Generates a binary map indicating the presence of Lysine (LYS) or Leucine (LEU) residues.
- Parameters:
chain_id (str) – Chain identifier.
chain (Bio.PDB.Chain) – Chain object from the parsed structure.
residue_dict (dict) – Dictionary mapping chain IDs to residues and their positions.
- Returns:
residue_length (int) – Number of residues in the chain.
lys_leu_map (numpy.ndarray) – A 2D boolean array where True indicates the presence of LYS or LEU at corresponding residue positions.