rnaglib.representations

class rnaglib.representations.Representation[source]

Callable object that accepts a raw RNA networkx object along with features and target vector representations and returns a representation of it (e.g. graph, voxel, point cloud)

property name

Just return the name of the representation

Returns:

A string

batch(samples)[source]

Batch a list of voxel samples

Parameters:

samples – A list of the output from this representation

Returns:

a batched version of it.

class rnaglib.representations.GraphRepresentation(clean_edges=True, framework='nx', edge_map={'B35': 19, 'B53': 0, 'cHH': 1, 'cHS': 2, 'cHW': 3, 'cSH': 4, 'cSS': 5, 'cSW': 6, 'cWH': 7, 'cWS': 8, 'cWW': 9, 'tHH': 10, 'tHS': 11, 'tHW': 12, 'tSH': 13, 'tSS': 14, 'tSW': 15, 'tWH': 16, 'tWS': 17, 'tWW': 18}, etype_key='LW', **kwargs)[source]

Converts RNA into a graph

property name

Just return the name of the representation

Returns:

A string

batch(samples)[source]

Batch a list of graph samples

Parameters:

samples – A list of the output from this representation

Returns:

a batched version of it.

class rnaglib.representations.VoxelRepresentation(spacing=2, padding=3, sigma=1.0, **kwargs)[source]

Converts RNA into a voxel based representation

property name

Just return the name of the representation

Returns:

A string

batch(samples)[source]

Batch a list of voxel samples

Parameters:

samples – A list of the output from this representation

Returns:

a batched version of it.

class rnaglib.representations.PointCloudRepresentation(hstack=True, sorted_nodes=True, **kwargs)[source]

Converts RNA into a point cloud based representation

property name

Just return the name of the representation

Returns:

A string

batch(samples)[source]

Batch a list of point cloud samples

Parameters:

samples – A list of the output from this representation

Returns:

a batched version of it.

class rnaglib.representations.RingRepresentation(node_simfunc=None, max_size_kernel=None, hash_path=None, **kwargs)[source]

Converts RNA into a ring based representation

property name

Just return the name of the representation

Returns:

A string

batch(samples)[source]

Batch a list of ring samples

Parameters:

samples – A list of the output from this representation

Returns:

a batched version of it.