CodonU.analyzer.enc_comp
Module Contents
Functions
|
Calculates ENc value for a given sequences |
- CodonU.analyzer.enc_comp.calculate_enc(handle: str, genetic_code_num: int, min_len_threshold=200, gene_analysis: bool = False, save_file: bool = False, file_name: str = 'ENc_report', folder_path: str = 'Report') float or dict[str, float]
Calculates ENc value for a given sequences
- Parameters:
handle – Handle to the file, or the filename as a string
genetic_code_num – Genetic table number for codon table
min_len_threshold – Minimum length of nucleotide sequence to be considered as gene
gene_analysis – Option if gene analysis (True) or genome analysis (False) (optional)
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 ENc value if gene_analysis is false, else a dictionary containing gene number and corresponding ENc value