terminator.data.data.read_lens

terminator.data.data.read_lens(in_folder, pdb_id, min_protein_len=30)[source]

Reads the lengths specified in the proper .length file and return them.

If the read sequence length is less than min_protein_len, instead return None.

Parameters:
  • in_folder (str) – folder to find TERM file.

  • pdb_id (str) – PDB ID to load.

  • min_protein_len (int) – minimum cutoff for loading TERM file.

Returns:

  • pdb_id (str) – PDB ID that was loaded

  • total_term_length (int) – number of TERMS in file

  • seq_len (int) – sequence length of file, or None if sequence length is less than min_protein_len