biointerface package

Submodules

biointerface.core module

Core module for extracting Protein-DNA interfaces.

class biointerface.core.Interface(structure, protein_chain_id, search_radius=5.0)[source]

Bases: object

Extract Protein-DNA interface.

Parameters

structureBio.PDB.Structure

Biopython Structure entity.

protein_chain_idstr

Chain id of a protein that may interact with DNA.

search_radiusfloat | int, optional

Search radius, measured in Armstrong, within which Protein-DNA interactions are found. Default is 5.0

get_dna_atoms() list[<module 'Bio.PDB.Atom' from '/home/docs/checkouts/readthedocs.org/user_builds/biointerface/envs/v0.2.0/lib/python3.13/site-packages/Bio/PDB/Atom.py'>][source]

Get only DNA atoms in the protein-DNA interface.

Returns

list[Atom]

List of DNA atoms in the interface.

get_interface_data() DataFrame[source]

Get all data from the interface, as a dataframe.

Contains the following data fields:

Residue hetero field Residue number Residue insertion code Residue name Atom name Atom alternate location Atom element Atomic coordinates (x, y, z) From both protein and DNA atoms Euclidean distance

Returns

dfpd.DataFrame

All data from the interface.

get_protein_atoms() list[<module 'Bio.PDB.Atom' from '/home/docs/checkouts/readthedocs.org/user_builds/biointerface/envs/v0.2.0/lib/python3.13/site-packages/Bio/PDB/Atom.py'>][source]

Get only protein atoms in the protein-DNA interface.

Returns

list[Atom]

List of protein atoms in the interface.

biointerface.core.build_interfaces(structure, search_radius=5.0) list[source]

Extract all Protein-DNA interfaces found in a structure.

Parameters

structureBio.PDB.Structure

Biopython Structure entity.

search_radiusfloat | int, optional

Search radius, measured in Armstrong, within which Protein-DNA interactions are found. Default is 5.0

Returns

list

List of all Protein-DNA interfaces found in a structure.

Module contents

Top-level package for BioInterface.

class biointerface.Interface(structure, protein_chain_id, search_radius=5.0)[source]

Bases: object

Extract Protein-DNA interface.

Parameters

structureBio.PDB.Structure

Biopython Structure entity.

protein_chain_idstr

Chain id of a protein that may interact with DNA.

search_radiusfloat | int, optional

Search radius, measured in Armstrong, within which Protein-DNA interactions are found. Default is 5.0

get_dna_atoms() list[<module 'Bio.PDB.Atom' from '/home/docs/checkouts/readthedocs.org/user_builds/biointerface/envs/v0.2.0/lib/python3.13/site-packages/Bio/PDB/Atom.py'>][source]

Get only DNA atoms in the protein-DNA interface.

Returns

list[Atom]

List of DNA atoms in the interface.

get_interface_data() DataFrame[source]

Get all data from the interface, as a dataframe.

Contains the following data fields:

Residue hetero field Residue number Residue insertion code Residue name Atom name Atom alternate location Atom element Atomic coordinates (x, y, z) From both protein and DNA atoms Euclidean distance

Returns

dfpd.DataFrame

All data from the interface.

get_protein_atoms() list[<module 'Bio.PDB.Atom' from '/home/docs/checkouts/readthedocs.org/user_builds/biointerface/envs/v0.2.0/lib/python3.13/site-packages/Bio/PDB/Atom.py'>][source]

Get only protein atoms in the protein-DNA interface.

Returns

list[Atom]

List of protein atoms in the interface.

biointerface.build_interfaces(structure, search_radius=5.0) list[source]

Extract all Protein-DNA interfaces found in a structure.

Parameters

structureBio.PDB.Structure

Biopython Structure entity.

search_radiusfloat | int, optional

Search radius, measured in Armstrong, within which Protein-DNA interactions are found. Default is 5.0

Returns

list

List of all Protein-DNA interfaces found in a structure.