pyrosetta_help.chain_ops package

Submodules

pyrosetta_help.chain_ops.chain_ops module

class pyrosetta_help.chain_ops.chain_ops.ChainOps(chains: List[dict])[source]

Bases: object

Works on the list of dict (metadata.json) with among others keys

  • number (pose number)

  • chain (chain letter)

  • gene_name (gene name)

__init__(chains: List[dict])[source]
dump(json_filename: str = 'metadata.json')[source]
get_entry(value)[source]

guess key…

Parameters:

value

Returns:

get_entry_of_key(value, key)[source]
get_pose_of_chain(pose, value)[source]
load(json_filename: str = 'metadata.json')[source]

pyrosetta_help.chain_ops.transmogrifier module

class pyrosetta_help.chain_ops.transmogrifier.Murinizer(chains: List[dict])[source]

Bases: Transmogrifier

Human –> Mouse

__init__(chains: List[dict])[source]
class pyrosetta_help.chain_ops.transmogrifier.Transmogrifier(chains: List[dict], wanted_label: str, owned_label: str)[source]

Bases: ChainOps

This is to convert a mutation from one species (owned_label) to another (wanted_label) based on provided sequences in the chains list of dict

__init__(chains: List[dict], wanted_label: str, owned_label: str)[source]
align_seqs(chain_selection) Tuple[str, str][source]

Align the human seq to the mouse and store it the chain dict

covert_A2B(seqA: str, seqB: str, resiA: int) int[source]

Given seqA and seqB as two gap aligned sequences, and an off-by-one residue number of seqA without counting gaps, return an off-by-one residue number of seqB without counting gaps.

classmethod from_chain_ops(chain_ops: ChainOps, wanted_label: str, owned_label: str)[source]
transmogrify(mutation: str, chain_selection: str | int | dict) str[source]

Module contents

They were copied over from another project. They are not complete. These classes/functions do not use PyRosetta. To change a sequence to another use threading.