pmcomp_dist_from_fc#

RNAdist.dp.pmcomp.pmcomp_dist_from_fc(fc)#

Approximates Expected Distances using basepair probabilities from the ViennaRNA fold_compound

Warning

This function might produce nonsense output if the fc is not set up correctly. If you do not know how to do this consider using pmcomp_distance()

Parameters:

fc (RNA.fold_compund) – Fold compound object of ViennaRNA

Returns:

N x N matrix

containing expected distance from nucleotide 0 to n at matrix[0][-1]

Return type:

np.ndarray

Raises:

RuntimeError – If the DP matrices are not filled yet due to a missing fc.pf() call