CodonU.correspondence_analysis.ca_codon

Module Contents

Functions

ca_codon(→ prince.CA)

Performs CA on codon frequency or RSCU contingency table

CodonU.correspondence_analysis.ca_codon.ca_codon(contingency_table: pandas.DataFrame, n_components: int = 59, single_syn_codons: list[str] | None = None, save_file: bool = False, file_name: str = 'CA_codon', folder_path: str = 'Report') prince.CA

Performs CA on codon frequency or RSCU contingency table

Note Gene descriptions must be index headings and codons must column headings of the table

Parameters:
  • contingency_table – The contingency table (pandas DataFrame object)

  • n_components – Components for CA

  • single_syn_codons – List of codons belonging to SF1

  • save_file – Option for saving the values in xlsx format (Optional)

  • file_name – Intended file name (Optional)

  • folder_path – Folder path where image should be saved (optional)

Returns:

The CA object