cathpy.datafiles

from cathpy import datafiles

release = datafiles.ReleaseDir('v4.2')

release.get_file('chaingcf', '1cukA01')
# /cath/data/v4_2_0/chaingcf/1cukA.gcf

Access data files

class cathpy.datafiles.AtomFastaFileType

Represents a FASTA file type (registered as ‘atomfasta’).

class cathpy.datafiles.CombsFastaFileType

Represents a FASTA file type (registered as ‘combsfasta’).

class cathpy.datafiles.GcfFileType

Represents a GCF file type (registered as ‘chaingcf’).

class cathpy.datafiles.GenericFileType

Represents a type of CATH Data file.

class cathpy.datafiles.ReleaseDir(cath_version, *, base_dir='/cath/data')

Provides access to files relating to an official release of CATH.

Parameters:
  • cath_version – version of CATH (eg ‘v4_2_0’)
  • base_dir – root directory for all data files (default: ‘/cath/data’)
get_file(file_type, entity_id)

Returns the path for the given file type and identifier.

Parameters:
  • file_type – type of file (eg ‘chaingcf’)
  • entity_id – identifier of the CATH entity (eg ‘1cukA’)