Package lib :: Package structure :: Module files
[hide private]
[frames] | no frames]

Module files

source code

Module for handling different structural file formats.

Functions [hide private]
 
find_pdb_files(path=None, file_root=None)
Find all PDB files in the given path corresponding to the file root.
source code
Variables [hide private]
  __package__ = 'lib.structure'

Imports: F_OK, access, sep


Function Details [hide private]

find_pdb_files(path=None, file_root=None)

source code 

Find all PDB files in the given path corresponding to the file root.

This will find all *.pdb, *.pdb.gz, and *.pdb.bz2 files, package them into a list, and return the list.

Parameters:
  • path (str) - The file system path to search for the files in.
  • file_root (str) - The file root of the files to find. For example if the file is 'test.pdb.gz', then the file root is 'test'.