RNAmediator.Tweaks.RNAtweaks.PLFoldOutput

class RNAmediator.Tweaks.RNAtweaks.PLFoldOutput(text: str)

Output wrapper for unpaired probability files of RNAplfold

Attributes

Missing the lines starting with # is supported

__init__(text: str)

Methods

__init__(text)

from_file(file_path)

creates PLfoldOutput from a punpaired file

from_numpy(array)

creates PLFoldOutput from np arrays

from_rnamediator_numpy_output(file_path)

creates PLfoldOutput from original rnamediator np arrays

get_rnamediator_np_array()

get original RNAmediator numpy array output

get_text([nan, truncated])

get string of the unpaired probability file

localize(start, end)

trims the output (zero based)

Attributes

numpy_array

numpy array representation of lunpaired file

classmethod from_file(file_path: str)

creates PLfoldOutput from a punpaired file

Parameters

Returns

classmethod from_numpy(array: numpy.ndarray)

creates PLFoldOutput from np arrays

Parameters

Returns

classmethod from_rnamediator_numpy_output(file_path: str)

creates PLfoldOutput from original rnamediator np arrays

Parameters

Returns

get_rnamediator_np_array() numpy.ndarray

get original RNAmediator numpy array output

Returns

get_text(nan='NA', truncated=True) str

get string of the unpaired probability file

Parameters

truncatedbool, optional

choose whether the starting # lines should be included in the string (default is True)

Returns

localize(start: int, end: int)

trims the output (zero based)

property numpy_array

numpy array representation of lunpaired file