rnaglib.transforms.ConnectedComponentPartition¶
- class rnaglib.transforms.ConnectedComponentPartition(parallel=False, num_workers=-1)[source]¶
Split up an RNA by connected components. Yields all nodes belonging to the same connected component at a time.
- __init__(parallel=False, num_workers=-1)¶
Methods
__init__
([parallel, num_workers])forward
(rna_dict)new_name
(rna_partition)Compute the name of the given partition of RNA