Example of how to use the summary plot¶
InĀ [1]:
Copied!
from pyMut.input import read_maf
maf_path = "../../../src/pyMut/data/examples/MAF/tcga_laml.maf.gz"
print(f'š Loading file: {maf_path}')
# Read the MAF file and create the PyMutation object
py_mutation = read_maf(maf_path,assembly="37")
from pyMut.input import read_maf
maf_path = "../../../src/pyMut/data/examples/MAF/tcga_laml.maf.gz"
print(f'š Loading file: {maf_path}')
# Read the MAF file and create the PyMutation object
py_mutation = read_maf(maf_path,assembly="37")
2025-08-01 00:59:35,029 | INFO | pyMut.input | Starting MAF reading: ../../../src/pyMut/data/examples/MAF/tcga_laml.maf.gz 2025-08-01 00:59:35,030 | INFO | pyMut.input | Loading from cache: ../../../src/pyMut/data/examples/MAF/.pymut_cache/tcga_laml.maf_8bfbda65c4b23428.parquet 2025-08-01 00:59:35,058 | INFO | pyMut.input | Cache loaded successfully in 0.03 seconds
š Cargando archivo: ../../../src/pyMut/data/examples/MAF/tcga_laml.maf.gz
InĀ [2]:
Copied!
py_mutation.configure_high_quality_plots()
py_mutation.configure_high_quality_plots()
InĀ [3]:
Copied!
py_mutation.summary_plot()
py_mutation.summary_plot()
Out[3]:
InĀ [4]:
Copied!
py_mutation.snv_class_plot().savefig("summary_plot.png")
py_mutation.snv_class_plot().savefig("summary_plot.png")