rnaglib.transforms.PartitionFromDict

class rnaglib.transforms.PartitionFromDict(partition_dict, **kwargs)[source]

Partitions an RNA according to a partition defined in a dictionary.

Parameters:

partition_dict (dict) – dictionary of the form {RNA_name:[[residue_name_1,…,residue_name_6],…,[residue_name_i,…,residue_name_N]]} where we want the RNA to be broken down into several sub-RNAs among which one sub-RNA containing residue_name_1,…,residue_name_6, another one with residue_name_i,…,residue_name_N etc.

__init__(partition_dict, **kwargs)[source]

Methods

__init__(partition_dict, **kwargs)

forward(rna_dict)

new_name(rna_partition)

Compute the name of the given partition of RNA