verkkofillet.pl.completePlot#
- verkkofillet.pl.completePlot(obj, width=6, height=4, save=True, figName=None, force=False)[source]#
Generates a bar plot showing contig completeness grouped by reference chromosome and haplotype. The completeness of each chromosome is calculated by comparing it to the reference length. A completeness value greater than 100 indicates that the contig length exceeds the original reference length.
- Parameters:
obj – An object that contains a
.statsattribute, which should be a pandas DataFrame with the following columns: -ref_chr(str): Reference chromosome identifier. -hap(str): Haplotype information. -contig_len(int): Length of the contigs.