clote_ponty_from_fasta#

RNAdist.fasta_wrappers.clote_ponty_from_fasta(fasta: str, md_config: Dict[str, Any], num_threads: int = 1)#

Calculates the clote-ponty matrix for every sequence in a fasta file

Parameters:
  • fasta (str) – Path to a fasta file

  • md_config (Dict[str, Any]) – A dictionary containing keys and values to set up the ViennaRNA Model details

  • num_threads (int) – number of parallel processes to use

Returns:

Dictionary of Numpy arrays of shape |S| x |S| with S being the nucleotide sequence. The sequence identifier is the dict key and the expected distance matrices are the values

Return type:

Dict[str, np.ndarray]