rna_library.processing.junction_data

Contains the JunctionEntry and JunctionData objects

Module Contents

Classes

JunctionEntry

Represents a single junction entry from an RNA construct

JunctionData

Composite class that represents a collection of JunctionEntry objects in an experiment.

class rna_library.processing.junction_data.JunctionEntry(**kwargs)

Represents a single junction entry from an RNA construct

validate_arguments_(self)

Helper method that validates arguments in the constructor.

key(self)

Getter that accesses the (sequence, structure) key for the JunctionEntry

Return type

Tuple[str,str]

is_symmetrical(self)

Getter that checks if the JunctionEntry is for a symmetrical unction.

Return type

bool

__getitem__(self, idx)
Parameters

idx (int) –

Return type

float

class rna_library.processing.junction_data.JunctionData(**kwargs)

Composite class that represents a collection of JunctionEntry objects in an experiment.

get_active_data(self)
rebuild_data(self)

Method that rebuilds the internal data representation from the JunctionEntry objects.

Return type

NoneType

is_symmetrical(self)

Getter that tells if the current JunctionData object models a symmetrical junction. :rtype: bool

plot(self, plot_dir, overwrite=False)

Method that saves a plot of the JunctionData’s data points to the supplied directory.

Param

str plot_dir: The directory where the plot will be saved. Does not have to exist.

Return type

NoneType

Parameters

plot_dir (str) –

show(self)

Method that brings up a plot of the JunctionData’s data points

Return type

NoneType

bind(self, ax)

Method that binds the JunctionData points to a supplied matplotlib Axes object.

Param

matplotlib.axes.Axes ax: the Axes object which the plot will be bound to

Return type

NoneType

Parameters

ax (matplotlib.axes.Axes) –

measure_variance(self)
Return type

Dict[str, float]