rnaglib.dataset_transforms.DistanceComputer

class rnaglib.dataset_transforms.DistanceComputer(name, recompute=True)[source]

Dataset transform adding to the dataset attributes a distance matrix encoding the pairwise distances between all RNAs of the dataset

Parameters:
  • name (str) – the name identifying the distance metric

  • recompute (bool) – a boolean indicating whether the distance has to be recomputed in case it had already been computed for this dataset (it can be set to True if the dataset may have been subject to modifications since the latest distance computation)

__init__(name, recompute=True)[source]

Methods

__init__(name[, recompute])

forward(dataset)