bis_protein_structure.split_pdb.extract

bis_protein_structure.split_pdb.extract(structure, chain_id, start, end, filename)[source]

Write out selected portion of a structure to a file.

Parameters:
  • structure (Bio.PDB.Structure) – The structure object containing the protein data.

  • chain_id (str) – The identifier for the chain to extract.

  • start (int) – The starting residue index for extraction.

  • end (int) – The ending residue index for extraction.

  • filename (str) – The path to the output file where the selected portion will be saved.

Return type:

None