pygtop.shared (Shared objects)

Objects not specific to ligands or targets.

A link to an external database, containing accession and species information.

Parameters:json_data – A dictionary obtained from the web services.
accession()[source]

The Accession code.

database()[source]

The Database being linked to.

url()[source]

The URL for this database entry.

species()[source]

The specific species the database entry refers to.

class pygtop.shared.Gene(json_data)[source]

A gene for a pyGtoP target.

Parameters:json_data – A dictionary obtained from the web services.
target_id()[source]

The ID of the pyGtoP target derived from this gene.

species()[source]

The species the gene is from.

gene_symbol()[source]

The gene’s code.

gene_name()[source]

The gene’s name.

official_gene_id()[source]

The gene’s official ID.

genomic_location()[source]

The gene’s location in its genome.

amino_acids()[source]

The number of amino acids the gene codes for.

transmembrane_domains()[source]

The number of amino acids in the resultant protein.

pore_loops()[source]

The number of pore loops in the resultant protein.

pygtop.shared.strip_html(func)[source]

A decorator which, when applied to a function, will add a ‘strip_html’ keyword argument - if set to True this will strip any HTML from the function’s output.