SigProfilerAssignment 0.1.5__tar.gz → 0.1.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/MANIFEST.in +1 -0
- {SigProfilerAssignment-0.1.5/SigProfilerAssignment.egg-info → SigProfilerAssignment-0.1.6}/PKG-INFO +2 -1
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/README.md +1 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/Analyzer.py +6 -0
- SigProfilerAssignment-0.1.6/SigProfilerAssignment/DecompositionPlots/.DS_Store +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/DecompositionPlots/PlotDecomposition.py +88 -28
- SigProfilerAssignment-0.1.6/SigProfilerAssignment/SigProfilerAssignment_CLI.py +40 -0
- SigProfilerAssignment-0.1.6/SigProfilerAssignment/controllers/cli_controller.py +199 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/decompose_subroutines.py +11 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/decomposition.py +44 -0
- SigProfilerAssignment-0.1.6/SigProfilerAssignment/version.py +8 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6/SigProfilerAssignment.egg-info}/PKG-INFO +2 -1
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment.egg-info/SOURCES.txt +4 -0
- SigProfilerAssignment-0.1.6/SigProfilerAssignment.egg-info/entry_points.txt +2 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/setup.py +7 -2
- SigProfilerAssignment-0.1.5/SigProfilerAssignment/version.py +0 -8
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/LICENSE.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/DecompositionPlots/PlotDecomposition_CNV48.py +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/DecompositionPlots/PlotDecomposition_DBS78.py +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/DecompositionPlots/PlotDecomposition_ID83.py +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/DecompositionPlots/PlotDecomposition_SBS1536.py +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/DecompositionPlots/PlotDecomposition_SBS288.py +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/DecompositionPlots/PlotDecomposition_SBS96.py +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/DecompositionPlots/PlotDecomposition_SV32.py +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/DecompositionPlots/ReferenceFiles/Accolade_fermante.png +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/DecompositionPlots/ReferenceFiles/CREDIT.md +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/DecompositionPlots/ReferenceFiles/Fonts/Arial Bold.ttf +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/DecompositionPlots/SigProfilerPlottingMatrix.py +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/__init__.py +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/21_breast_WGS_substitutions.mat +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/CNV_features.tsv +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/CNV_signatures.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/CN_classes_dictionary.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/DBS_signatures_genome_builds.xlsx +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v1_SBS_GRCh37.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v1_SBS_GRCh37_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v2_SBS_GRCh37.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v2_SBS_GRCh37_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.1_DBS_GRCh37.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.1_DBS_GRCh37_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.1_ID_GRCh37.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.1_SBS_GRCh37.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.1_SBS_GRCh37_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.2_DBS_GRCh37.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.2_DBS_GRCh37_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.2_ID_GRCh37.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.2_SBS288_GRCh37.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.2_SBS_GRCh37.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.2_SBS_GRCh37_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.3_CN_GRCh37.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.3_DBS_GRCh37.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.3_DBS_GRCh37_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.3_ID_GRCh37.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.3_SBS_GRCh37.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.3_SBS_GRCh37_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.4_CN_GRCh37.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.4_DBS_GRCh37.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.4_DBS_GRCh37_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.4_ID_GRCh37.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.4_SBS_GRCh37.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.4_SBS_GRCh37_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3_DBS_GRCh37.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3_DBS_GRCh37_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3_ID_GRCh37.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3_SBS_GRCh37.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3_SBS_GRCh37_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v1_SBS_GRCh38.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v1_SBS_GRCh38_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v2_SBS_GRCh38.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v2_SBS_GRCh38_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.1_DBS_GRCh38.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.1_DBS_GRCh38_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.1_SBS_GRCh38.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.1_SBS_GRCh38_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.2_DBS_GRCh38.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.2_DBS_GRCh38_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.2_SBS_GRCh38.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.2_SBS_GRCh38_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.3_DBS_GRCh38.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.3_DBS_GRCh38_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.3_SBS_GRCh38.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.3_SBS_GRCh38_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.4_DBS_GRCh38.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.4_DBS_GRCh38_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.4_SBS_GRCh38.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.4_SBS_GRCh38_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.4_SV_GRCh38.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3_DBS_GRCh38.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3_DBS_GRCh38_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3_SBS_GRCh38.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3_SBS_GRCh38_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v1_SBS_mm10.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v1_SBS_mm10_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v2_SBS_mm10.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v2_SBS_mm10_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.1_DBS_mm10.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.1_DBS_mm10_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.1_SBS_mm10.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.1_SBS_mm10_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.2_DBS_mm10.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.2_DBS_mm10_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.2_SBS_mm10.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.2_SBS_mm10_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.3_DBS_mm10.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.3_DBS_mm10_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.3_SBS_mm10.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.3_SBS_mm10_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.4_DBS_mm10.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.4_DBS_mm10_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.4_SBS_mm10.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.4_SBS_mm10_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3_DBS_mm10.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3_DBS_mm10_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3_SBS_mm10.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3_SBS_mm10_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v1_SBS_mm9.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v1_SBS_mm9_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v2_SBS_mm9.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v2_SBS_mm9_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.1_DBS_mm9.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.1_DBS_mm9_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.1_SBS_mm9.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.1_SBS_mm9_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.2_DBS_mm9.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.2_DBS_mm9_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.2_SBS_mm9.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.2_SBS_mm9_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.3_DBS_mm9.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.3_DBS_mm9_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.3_SBS_mm9.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.3_SBS_mm9_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.4_DBS_mm9.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.4_DBS_mm9_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.4_SBS_mm9.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.4_SBS_mm9_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3_DBS_mm9.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3_DBS_mm9_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3_SBS_mm9.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3_SBS_mm9_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v1_SBS_rn6.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v1_SBS_rn6_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v2_SBS_rn6.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v2_SBS_rn6_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.1_DBS_rn6.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.1_DBS_rn6_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.1_SBS_rn6.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.1_SBS_rn6_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.2_DBS_rn6.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.2_DBS_rn6_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.2_SBS_rn6.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.2_SBS_rn6_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.3_DBS_rn6.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.3_DBS_rn6_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.3_SBS_rn6.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.3_SBS_rn6_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.4_DBS_rn6.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.4_DBS_rn6_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.4_SBS_rn6.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.4_SBS_rn6_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3_DBS_rn6.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3_DBS_rn6_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3_SBS_rn6.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3_SBS_rn6_exome.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/SBS_signatures_genome_builds.xlsx +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Samples.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/csvexample.csv +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/sigProfiler_DBS_signatures.csv +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/sigProfiler_ID_signatures.csv +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/sigProfiler_SBS_signatures_2018_03_28.csv +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/cnv_input/all.breast.ascat.summary.sample.tsv +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/txt_input/CNV48_S3_Signatures.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/txt_input/DBS78_S3_Signatures.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/txt_input/ID83_S3_Signatures.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/txt_input/SBS96_S3_Signatures.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/txt_input/SV32_S3_Signatures.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/txt_input/sample_matrix_CNV48.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/txt_input/sample_matrix_DBS.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/txt_input/sample_matrix_ID.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/txt_input/sample_matrix_SBS.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/txt_input/sample_matrix_SV32.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/vcf_input/PD3851a.vcf +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/vcf_input/PD3890a.vcf +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/vcf_input/PD3904a.vcf +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/vcf_input/PD3945a.vcf +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/vcf_input/PD4005a.vcf +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/single_sample.py +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment.egg-info/dependency_links.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment.egg-info/not-zip-safe +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment.egg-info/requires.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment.egg-info/top_level.txt +0 -0
- {SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/setup.cfg +0 -0
{SigProfilerAssignment-0.1.5/SigProfilerAssignment.egg-info → SigProfilerAssignment-0.1.6}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: SigProfilerAssignment
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.6
|
|
4
4
|
Summary: Mutational signatures attribution and decomposition tool
|
|
5
5
|
Home-page: https://github.com/AlexandrovLab/SigProfilerAssignment.git
|
|
6
6
|
Author: Raviteja Vangara
|
|
@@ -79,6 +79,7 @@ Analyze.cosmic_fit(samples, output, input_type="matrix", context_type="96",
|
|
|
79
79
|
| make_plots | Boolean | Toggle on and off for making and saving plots. The default value is True. |
|
|
80
80
|
| sample_reconstruction_plots | String | Select the output format for sample reconstruction plots. Valid inputs are {'pdf', 'png', 'both', None}. The default value is None. |
|
|
81
81
|
| verbose | Boolean | Prints detailed statements. The default value is False. |
|
|
82
|
+
| volume | String | Path to SigProfilerAssignment volumes. Used for Docker/Singularity. Environmental variable "SIGPROFILERASSIGNMENT_VOLUME" takes precedence. Default value is None. |
|
|
82
83
|
|
|
83
84
|
|
|
84
85
|
|
|
@@ -68,6 +68,7 @@ Analyze.cosmic_fit(samples, output, input_type="matrix", context_type="96",
|
|
|
68
68
|
| make_plots | Boolean | Toggle on and off for making and saving plots. The default value is True. |
|
|
69
69
|
| sample_reconstruction_plots | String | Select the output format for sample reconstruction plots. Valid inputs are {'pdf', 'png', 'both', None}. The default value is None. |
|
|
70
70
|
| verbose | Boolean | Prints detailed statements. The default value is False. |
|
|
71
|
+
| volume | String | Path to SigProfilerAssignment volumes. Used for Docker/Singularity. Environmental variable "SIGPROFILERASSIGNMENT_VOLUME" takes precedence. Default value is None. |
|
|
71
72
|
|
|
72
73
|
|
|
73
74
|
|
{SigProfilerAssignment-0.1.5 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/Analyzer.py
RENAMED
|
@@ -23,6 +23,7 @@ def decompose_fit(
|
|
|
23
23
|
context_type="96",
|
|
24
24
|
export_probabilities=True,
|
|
25
25
|
export_probabilities_per_mutation=False,
|
|
26
|
+
volume=None,
|
|
26
27
|
):
|
|
27
28
|
decomp.spa_analyze(
|
|
28
29
|
samples=samples,
|
|
@@ -49,6 +50,7 @@ def decompose_fit(
|
|
|
49
50
|
context_type=context_type,
|
|
50
51
|
export_probabilities=export_probabilities,
|
|
51
52
|
export_probabilities_per_mutation=export_probabilities_per_mutation,
|
|
53
|
+
volume=volume,
|
|
52
54
|
)
|
|
53
55
|
|
|
54
56
|
|
|
@@ -73,6 +75,7 @@ def denovo_fit(
|
|
|
73
75
|
context_type="96",
|
|
74
76
|
export_probabilities=True,
|
|
75
77
|
export_probabilities_per_mutation=False,
|
|
78
|
+
volume=None,
|
|
76
79
|
):
|
|
77
80
|
decomp.spa_analyze(
|
|
78
81
|
samples=samples,
|
|
@@ -98,6 +101,7 @@ def denovo_fit(
|
|
|
98
101
|
context_type=context_type,
|
|
99
102
|
export_probabilities=export_probabilities,
|
|
100
103
|
export_probabilities_per_mutation=export_probabilities_per_mutation,
|
|
104
|
+
volume=volume,
|
|
101
105
|
)
|
|
102
106
|
|
|
103
107
|
|
|
@@ -123,6 +127,7 @@ def cosmic_fit(
|
|
|
123
127
|
export_probabilities=True,
|
|
124
128
|
export_probabilities_per_mutation=False,
|
|
125
129
|
sample_reconstruction_plots=False,
|
|
130
|
+
volume=None,
|
|
126
131
|
):
|
|
127
132
|
decomp.spa_analyze(
|
|
128
133
|
samples=samples,
|
|
@@ -149,4 +154,5 @@ def cosmic_fit(
|
|
|
149
154
|
export_probabilities=export_probabilities,
|
|
150
155
|
export_probabilities_per_mutation=export_probabilities_per_mutation,
|
|
151
156
|
sample_reconstruction_plots=sample_reconstruction_plots,
|
|
157
|
+
volume=volume,
|
|
152
158
|
)
|
|
@@ -22,7 +22,6 @@ import pandas as pd
|
|
|
22
22
|
import numpy as np
|
|
23
23
|
import scipy.stats
|
|
24
24
|
import sigProfilerPlotting as sigPlt
|
|
25
|
-
import shutil
|
|
26
25
|
import SigProfilerAssignment
|
|
27
26
|
import SigProfilerAssignment.DecompositionPlots
|
|
28
27
|
from SigProfilerAssignment.DecompositionPlots import SigProfilerPlottingMatrix as mPlt
|
|
@@ -71,25 +70,24 @@ DECOMPOSITION_PATH = SigProfilerAssignment.DecompositionPlots.__path__[0]
|
|
|
71
70
|
REFSIG_PATH = os.path.join(
|
|
72
71
|
SigProfilerAssignment.__path__[0], "data/Reference_Signatures"
|
|
73
72
|
)
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
# Remove templates so that they can be rebuilt
|
|
77
|
-
def remove_cosmic_templates():
|
|
78
|
-
if not os.path.exists(TEMPLATE_PATH):
|
|
79
|
-
print("No files are installed at: ", TEMPLATE_PATH)
|
|
80
|
-
try:
|
|
81
|
-
shutil.rmtree(TEMPLATE_PATH)
|
|
82
|
-
except OSError as e:
|
|
83
|
-
print("Error: %s : %s" % (TEMPLATE_PATH, e.strerror))
|
|
73
|
+
cosmic_template_path = os.path.join(DECOMPOSITION_PATH, "CosmicTemplates")
|
|
84
74
|
|
|
85
75
|
|
|
86
76
|
# Create a set of serialized JSON reference signature plots for fast loading
|
|
87
77
|
def install_cosmic_plots(
|
|
88
|
-
context_type="96",
|
|
78
|
+
context_type="96",
|
|
79
|
+
genome_build="GRCh37",
|
|
80
|
+
cosmic_version="3.4",
|
|
81
|
+
exome=False,
|
|
82
|
+
volume=None,
|
|
89
83
|
):
|
|
84
|
+
global cosmic_template_path
|
|
85
|
+
# Check if the volume is provided and set the template path
|
|
86
|
+
if volume is not None:
|
|
87
|
+
cosmic_template_path = os.path.join(volume, "CosmicTemplates")
|
|
90
88
|
|
|
91
|
-
if not os.path.exists(
|
|
92
|
-
os.mkdir(
|
|
89
|
+
if not os.path.exists(cosmic_template_path):
|
|
90
|
+
os.mkdir(cosmic_template_path)
|
|
93
91
|
|
|
94
92
|
# determine if context is from SBS, ID, DBS, CNV or SV
|
|
95
93
|
context_type_str = ""
|
|
@@ -160,7 +158,7 @@ def install_cosmic_plots(
|
|
|
160
158
|
exome_str = ""
|
|
161
159
|
|
|
162
160
|
# Load cosmic plots if they exist
|
|
163
|
-
filename = os.path.join(
|
|
161
|
+
filename = os.path.join(cosmic_template_path, json_file_name)
|
|
164
162
|
if os.path.exists(filename):
|
|
165
163
|
cosmic_buff_bytes = json.load(open(filename))
|
|
166
164
|
cosmic_buff_plots = {}
|
|
@@ -174,7 +172,7 @@ def install_cosmic_plots(
|
|
|
174
172
|
# Generate cosmic plots if they were not found
|
|
175
173
|
else:
|
|
176
174
|
cosmic_file_path = os.path.join(REFSIG_PATH, genome_build, cosmic_file_name)
|
|
177
|
-
json_file_path = os.path.join(
|
|
175
|
+
json_file_path = os.path.join(cosmic_template_path, json_file_name)
|
|
178
176
|
print(
|
|
179
177
|
"Generating plots for",
|
|
180
178
|
"COSMIC_v"
|
|
@@ -195,6 +193,7 @@ def install_cosmic_plots(
|
|
|
195
193
|
cosmic_mtype,
|
|
196
194
|
percentage=True,
|
|
197
195
|
savefig_format="PIL_Image",
|
|
196
|
+
volume=volume,
|
|
198
197
|
)
|
|
199
198
|
elif context_type_str == "DBS":
|
|
200
199
|
cosmic_mtx = pd.read_csv(cosmic_file_path, sep="\t")
|
|
@@ -205,6 +204,7 @@ def install_cosmic_plots(
|
|
|
205
204
|
cosmic_mtype,
|
|
206
205
|
percentage=True,
|
|
207
206
|
savefig_format="PIL_Image",
|
|
207
|
+
volume=volume,
|
|
208
208
|
)
|
|
209
209
|
elif context_type_str == "ID":
|
|
210
210
|
cosmic_buff_plots = sigPlt.plotID(
|
|
@@ -214,6 +214,7 @@ def install_cosmic_plots(
|
|
|
214
214
|
cosmic_mtype,
|
|
215
215
|
percentage=True,
|
|
216
216
|
savefig_format="PIL_Image",
|
|
217
|
+
volume=volume,
|
|
217
218
|
)
|
|
218
219
|
elif context_type_str == "CNV":
|
|
219
220
|
cosmic_buff_plots = sigPlt.plotCNV(
|
|
@@ -343,10 +344,13 @@ def calculate_similarities(denovo, denovo_name, est_denovo):
|
|
|
343
344
|
return similarities_dataframe
|
|
344
345
|
|
|
345
346
|
|
|
346
|
-
def genSBS_pngs(
|
|
347
|
+
def genSBS_pngs(
|
|
348
|
+
denovo_mtx, basis_mtx, output_path, project, mtype, ss_decomp=False, volume=None
|
|
349
|
+
):
|
|
347
350
|
denovo_plots = dict()
|
|
348
351
|
basis_plots = dict()
|
|
349
352
|
if mtype == "1536" or mtype == "288":
|
|
353
|
+
# this is a special case and we do not support volume here
|
|
350
354
|
denovo_plots = mPlt.plotSBS(
|
|
351
355
|
denovo_mtx, output_path, project, mtype, percentage=True
|
|
352
356
|
)
|
|
@@ -358,6 +362,7 @@ def genSBS_pngs(denovo_mtx, basis_mtx, output_path, project, mtype, ss_decomp=Fa
|
|
|
358
362
|
"96",
|
|
359
363
|
percentage=True,
|
|
360
364
|
savefig_format="PIL_Image",
|
|
365
|
+
volume=volume,
|
|
361
366
|
)
|
|
362
367
|
elif mtype == "96":
|
|
363
368
|
denovo_plots = sigPlt.plotSBS(
|
|
@@ -367,6 +372,7 @@ def genSBS_pngs(denovo_mtx, basis_mtx, output_path, project, mtype, ss_decomp=Fa
|
|
|
367
372
|
mtype,
|
|
368
373
|
percentage=(not ss_decomp),
|
|
369
374
|
savefig_format="PIL_Image",
|
|
375
|
+
volume=volume,
|
|
370
376
|
)
|
|
371
377
|
if basis_mtx is not None:
|
|
372
378
|
basis_plots = sigPlt.plotSBS(
|
|
@@ -376,11 +382,12 @@ def genSBS_pngs(denovo_mtx, basis_mtx, output_path, project, mtype, ss_decomp=Fa
|
|
|
376
382
|
mtype,
|
|
377
383
|
percentage=True,
|
|
378
384
|
savefig_format="PIL_Image",
|
|
385
|
+
volume=volume,
|
|
379
386
|
)
|
|
380
387
|
return denovo_plots, basis_plots
|
|
381
388
|
|
|
382
389
|
|
|
383
|
-
def genDBS_pngs(denovo_mtx, basis_mtx, output_path, project, mtype):
|
|
390
|
+
def genDBS_pngs(denovo_mtx, basis_mtx, output_path, project, mtype, volume=None):
|
|
384
391
|
denovo_plots = dict()
|
|
385
392
|
basis_plots = dict()
|
|
386
393
|
denovo_plots = sigPlt.plotDBS(
|
|
@@ -390,6 +397,7 @@ def genDBS_pngs(denovo_mtx, basis_mtx, output_path, project, mtype):
|
|
|
390
397
|
mtype,
|
|
391
398
|
percentage=True,
|
|
392
399
|
savefig_format="PIL_Image",
|
|
400
|
+
volume=volume,
|
|
393
401
|
)
|
|
394
402
|
if basis_mtx is not None:
|
|
395
403
|
basis_plots = sigPlt.plotDBS(
|
|
@@ -399,11 +407,12 @@ def genDBS_pngs(denovo_mtx, basis_mtx, output_path, project, mtype):
|
|
|
399
407
|
mtype,
|
|
400
408
|
percentage=True,
|
|
401
409
|
savefig_format="PIL_Image",
|
|
410
|
+
volume=volume,
|
|
402
411
|
)
|
|
403
412
|
return denovo_plots, basis_plots
|
|
404
413
|
|
|
405
414
|
|
|
406
|
-
def genID_pngs(denovo_mtx, basis_mtx, output_path, project, mtype):
|
|
415
|
+
def genID_pngs(denovo_mtx, basis_mtx, output_path, project, mtype, volume=None):
|
|
407
416
|
denovo_plots = dict()
|
|
408
417
|
basis_plots = dict()
|
|
409
418
|
denovo_plots = sigPlt.plotID(
|
|
@@ -413,6 +422,7 @@ def genID_pngs(denovo_mtx, basis_mtx, output_path, project, mtype):
|
|
|
413
422
|
mtype,
|
|
414
423
|
percentage=True,
|
|
415
424
|
savefig_format="PIL_Image",
|
|
425
|
+
volume=volume,
|
|
416
426
|
)
|
|
417
427
|
if basis_mtx is not None:
|
|
418
428
|
basis_plots = sigPlt.plotID(
|
|
@@ -422,6 +432,7 @@ def genID_pngs(denovo_mtx, basis_mtx, output_path, project, mtype):
|
|
|
422
432
|
mtype,
|
|
423
433
|
percentage=True,
|
|
424
434
|
savefig_format="PIL_Image",
|
|
435
|
+
volume=volume,
|
|
425
436
|
)
|
|
426
437
|
return denovo_plots, basis_plots
|
|
427
438
|
|
|
@@ -477,7 +488,9 @@ def genSV_pngs(denovo_mtx, basis_mtx, output_path, project, mtype):
|
|
|
477
488
|
|
|
478
489
|
|
|
479
490
|
# signames, weights
|
|
480
|
-
def gen_sub_plots(
|
|
491
|
+
def gen_sub_plots(
|
|
492
|
+
denovo_mtx, basis_mtx, output_path, project, mtype, ss_decomp, volume=None
|
|
493
|
+
):
|
|
481
494
|
|
|
482
495
|
# Make output directory
|
|
483
496
|
if not os.path.exists(output_path):
|
|
@@ -485,19 +498,19 @@ def gen_sub_plots(denovo_mtx, basis_mtx, output_path, project, mtype, ss_decomp)
|
|
|
485
498
|
|
|
486
499
|
if mtype in SBS_CONTEXTS:
|
|
487
500
|
denovo_plots, basis_plots = genSBS_pngs(
|
|
488
|
-
denovo_mtx, basis_mtx, output_path, project, mtype, ss_decomp
|
|
501
|
+
denovo_mtx, basis_mtx, output_path, project, mtype, ss_decomp, volume=volume
|
|
489
502
|
)
|
|
490
503
|
return denovo_plots, basis_plots
|
|
491
504
|
|
|
492
505
|
elif mtype in DBS_CONTEXTS:
|
|
493
506
|
denovo_plots, basis_plots = genDBS_pngs(
|
|
494
|
-
denovo_mtx, basis_mtx, output_path, project, mtype
|
|
507
|
+
denovo_mtx, basis_mtx, output_path, project, mtype, volume=volume
|
|
495
508
|
)
|
|
496
509
|
return denovo_plots, basis_plots
|
|
497
510
|
|
|
498
511
|
elif mtype in ID_CONTEXTS:
|
|
499
512
|
denovo_plots, basis_plots = genID_pngs(
|
|
500
|
-
denovo_mtx, basis_mtx, output_path, project, mtype
|
|
513
|
+
denovo_mtx, basis_mtx, output_path, project, mtype, volume=volume
|
|
501
514
|
)
|
|
502
515
|
return denovo_plots, basis_plots
|
|
503
516
|
|
|
@@ -518,7 +531,14 @@ def gen_sub_plots(denovo_mtx, basis_mtx, output_path, project, mtype, ss_decomp)
|
|
|
518
531
|
|
|
519
532
|
# generate the plot for the reconstruction
|
|
520
533
|
def gen_reconstructed_png_percent(
|
|
521
|
-
denovo_name,
|
|
534
|
+
denovo_name,
|
|
535
|
+
basis_mtx,
|
|
536
|
+
basis_names,
|
|
537
|
+
weights,
|
|
538
|
+
output_path,
|
|
539
|
+
project,
|
|
540
|
+
mtype,
|
|
541
|
+
volume=None,
|
|
522
542
|
):
|
|
523
543
|
reconstruction_plot = dict()
|
|
524
544
|
mut_col = basis_mtx.iloc[:, 0]
|
|
@@ -541,6 +561,7 @@ def gen_reconstructed_png_percent(
|
|
|
541
561
|
"96",
|
|
542
562
|
percentage=True,
|
|
543
563
|
savefig_format="PIL_Image",
|
|
564
|
+
volume=volume,
|
|
544
565
|
)
|
|
545
566
|
else:
|
|
546
567
|
reconstruction_plot = sigPlt.plotSBS(
|
|
@@ -550,6 +571,7 @@ def gen_reconstructed_png_percent(
|
|
|
550
571
|
mtype,
|
|
551
572
|
percentage=True,
|
|
552
573
|
savefig_format="PIL_Image",
|
|
574
|
+
volume=volume,
|
|
553
575
|
)
|
|
554
576
|
elif mtype in DBS_CONTEXTS:
|
|
555
577
|
reconstruction_plot = sigPlt.plotDBS(
|
|
@@ -559,6 +581,7 @@ def gen_reconstructed_png_percent(
|
|
|
559
581
|
mtype,
|
|
560
582
|
percentage=True,
|
|
561
583
|
savefig_format="PIL_Image",
|
|
584
|
+
volume=volume,
|
|
562
585
|
)
|
|
563
586
|
elif mtype in ID_CONTEXTS:
|
|
564
587
|
reconstruction_plot = sigPlt.plotID(
|
|
@@ -568,6 +591,7 @@ def gen_reconstructed_png_percent(
|
|
|
568
591
|
mtype,
|
|
569
592
|
percentage=True,
|
|
570
593
|
savefig_format="PIL_Image",
|
|
594
|
+
volume=volume,
|
|
571
595
|
)
|
|
572
596
|
elif mtype in CNV_CONTEXTS:
|
|
573
597
|
reconstruction_plot = sigPlt.plotCNV(
|
|
@@ -604,6 +628,7 @@ def gen_reconstructed_png_numerical(
|
|
|
604
628
|
output_path,
|
|
605
629
|
project,
|
|
606
630
|
mtype,
|
|
631
|
+
volume=None,
|
|
607
632
|
):
|
|
608
633
|
sample_tmb = denovo_mtx[denovo_name].sum()
|
|
609
634
|
reconstruction_plot = dict()
|
|
@@ -631,6 +656,7 @@ def gen_reconstructed_png_numerical(
|
|
|
631
656
|
"reconstruction_" + project,
|
|
632
657
|
"96",
|
|
633
658
|
percentage=False,
|
|
659
|
+
volume=volume,
|
|
634
660
|
)
|
|
635
661
|
else:
|
|
636
662
|
reconstruction_plot = sigPlt.plotSBS(
|
|
@@ -640,6 +666,7 @@ def gen_reconstructed_png_numerical(
|
|
|
640
666
|
mtype,
|
|
641
667
|
percentage=False,
|
|
642
668
|
savefig_format="PIL_Image",
|
|
669
|
+
volume=volume,
|
|
643
670
|
)
|
|
644
671
|
elif mtype in DBS_CONTEXTS:
|
|
645
672
|
reconstruction_plot = sigPlt.plotDBS(
|
|
@@ -649,6 +676,7 @@ def gen_reconstructed_png_numerical(
|
|
|
649
676
|
mtype,
|
|
650
677
|
percentage=False,
|
|
651
678
|
savefig_format="PIL_Image",
|
|
679
|
+
volume=volume,
|
|
652
680
|
)
|
|
653
681
|
elif mtype in ID_CONTEXTS:
|
|
654
682
|
reconstruction_plot = sigPlt.plotID(
|
|
@@ -658,6 +686,7 @@ def gen_reconstructed_png_numerical(
|
|
|
658
686
|
mtype,
|
|
659
687
|
percentage=False,
|
|
660
688
|
savefig_format="PIL_Image",
|
|
689
|
+
volume=volume,
|
|
661
690
|
)
|
|
662
691
|
elif mtype in CNV_CONTEXTS:
|
|
663
692
|
reconstruction_plot = sigPlt.plotCNV(
|
|
@@ -700,7 +729,6 @@ def gen_decomposition(
|
|
|
700
729
|
cosmic_version=None,
|
|
701
730
|
custom_text=None,
|
|
702
731
|
):
|
|
703
|
-
|
|
704
732
|
"""
|
|
705
733
|
Generate the correct plot based on mtype.
|
|
706
734
|
|
|
@@ -717,6 +745,9 @@ def gen_decomposition(
|
|
|
717
745
|
reconstruction_plot_dict (Dictionary) Signatures are keys, ByteIO plots are values
|
|
718
746
|
reconstruction: (Boolean) True to generate plot w/ reconstruction
|
|
719
747
|
statistics: (Pandas Dataframe) Output from calculate_similarities()
|
|
748
|
+
cosmic_version: (String) Version of COSMIC signatures
|
|
749
|
+
custom_text: (String) Custom text to display on plot
|
|
750
|
+
volume: (String) Path to volume where intermediary files are stored
|
|
720
751
|
"""
|
|
721
752
|
|
|
722
753
|
if mtype == "6":
|
|
@@ -865,6 +896,7 @@ def run_PlotDecomposition(
|
|
|
865
896
|
genome_build="GRCh37",
|
|
866
897
|
exome=False,
|
|
867
898
|
custom_text=None,
|
|
899
|
+
volume=None,
|
|
868
900
|
):
|
|
869
901
|
"""
|
|
870
902
|
Generates a decomposition plot of the denovo_mtx using the basis_mtx.
|
|
@@ -895,16 +927,34 @@ def run_PlotDecomposition(
|
|
|
895
927
|
|
|
896
928
|
custom_text: String. A custom message displayed on decomposition plot.
|
|
897
929
|
|
|
930
|
+
exome: Boolean. True if using exome COSMIC signatures, and False if not.
|
|
931
|
+
|
|
932
|
+
volume: String. The path to the volume where the cosmic templates are stored and where intermediate files are saved.
|
|
933
|
+
|
|
898
934
|
Returns:
|
|
899
935
|
-------
|
|
900
936
|
None.
|
|
901
937
|
"""
|
|
938
|
+
|
|
902
939
|
# Create the denovo plots and load basis plots
|
|
903
940
|
denovo_plots_dict, basis_plots_dict = gen_sub_plots(
|
|
904
|
-
denovo_mtx,
|
|
941
|
+
denovo_mtx,
|
|
942
|
+
basis_mtx,
|
|
943
|
+
output_path,
|
|
944
|
+
project,
|
|
945
|
+
mtype,
|
|
946
|
+
ss_decomp=False,
|
|
947
|
+
volume=volume,
|
|
905
948
|
)
|
|
906
949
|
reconstructed_mtx, reconstruction_plot_dict = gen_reconstructed_png_percent(
|
|
907
|
-
denovo_name,
|
|
950
|
+
denovo_name,
|
|
951
|
+
basis_mtx,
|
|
952
|
+
basis_names,
|
|
953
|
+
weights,
|
|
954
|
+
output_path,
|
|
955
|
+
project,
|
|
956
|
+
mtype,
|
|
957
|
+
volume=volume,
|
|
908
958
|
)
|
|
909
959
|
# Create a subset matrix with the present signatures
|
|
910
960
|
present_sigs = np.array(basis_mtx[basis_names])
|
|
@@ -917,6 +967,7 @@ def run_PlotDecomposition(
|
|
|
917
967
|
genome_build=genome_build,
|
|
918
968
|
cosmic_version=cosmic_version,
|
|
919
969
|
exome=exome,
|
|
970
|
+
volume=volume,
|
|
920
971
|
)
|
|
921
972
|
basis_plots_dict = {key: basis_plots_dict[key] for key in basis_names}
|
|
922
973
|
basis_plots_dict = convert_to_imgReaderDict(basis_plots_dict)
|
|
@@ -960,6 +1011,7 @@ def run_PlotSSDecomposition(
|
|
|
960
1011
|
cosmic_version="3.4",
|
|
961
1012
|
custom_text=None,
|
|
962
1013
|
exome=False,
|
|
1014
|
+
volume=None,
|
|
963
1015
|
):
|
|
964
1016
|
"""
|
|
965
1017
|
Generates a reconstruction of a sample given a set of signatures.
|
|
@@ -1005,7 +1057,13 @@ def run_PlotSSDecomposition(
|
|
|
1005
1057
|
|
|
1006
1058
|
# Create the denovo plots
|
|
1007
1059
|
denovo_plots_dict = gen_sub_plots(
|
|
1008
|
-
denovo_mtx,
|
|
1060
|
+
denovo_mtx,
|
|
1061
|
+
None,
|
|
1062
|
+
output_path,
|
|
1063
|
+
project,
|
|
1064
|
+
context_type,
|
|
1065
|
+
ss_decomp=True,
|
|
1066
|
+
volume=volume,
|
|
1009
1067
|
)
|
|
1010
1068
|
denovo_plots_dict = denovo_plots_dict[0]
|
|
1011
1069
|
# Load in the COSMIC plots
|
|
@@ -1014,6 +1072,7 @@ def run_PlotSSDecomposition(
|
|
|
1014
1072
|
genome_build=genome_build,
|
|
1015
1073
|
cosmic_version=cosmic_version,
|
|
1016
1074
|
exome=exome,
|
|
1075
|
+
volume=volume,
|
|
1017
1076
|
)
|
|
1018
1077
|
|
|
1019
1078
|
# Create reconstructed matrix and plot
|
|
@@ -1026,6 +1085,7 @@ def run_PlotSSDecomposition(
|
|
|
1026
1085
|
output_path,
|
|
1027
1086
|
project,
|
|
1028
1087
|
context_type,
|
|
1088
|
+
volume=volume,
|
|
1029
1089
|
)
|
|
1030
1090
|
|
|
1031
1091
|
denovo_plots_dict = convert_to_imgReaderDict(denovo_plots_dict)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
|
|
3
|
+
import sys
|
|
4
|
+
from SigProfilerAssignment.controllers import cli_controller
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def main_function():
|
|
8
|
+
commands = {
|
|
9
|
+
"decompose_fit": "Perform decomposition fitting on the input samples.",
|
|
10
|
+
"denovo_fit": "Perform de novo fitting on the input samples.",
|
|
11
|
+
"cosmic_fit": "Perform COSMIC fitting on the input samples.",
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
if len(sys.argv) < 2 or sys.argv[1].lower() not in commands:
|
|
15
|
+
print_usage(commands)
|
|
16
|
+
sys.exit(1)
|
|
17
|
+
|
|
18
|
+
command = sys.argv[1].lower()
|
|
19
|
+
args = sys.argv[2:]
|
|
20
|
+
|
|
21
|
+
controller = cli_controller.CliController()
|
|
22
|
+
|
|
23
|
+
if command == "decompose_fit":
|
|
24
|
+
controller.dispatch_decompose_fit(args)
|
|
25
|
+
elif command == "denovo_fit":
|
|
26
|
+
controller.dispatch_denovo_fit(args)
|
|
27
|
+
elif command == "cosmic_fit":
|
|
28
|
+
controller.dispatch_cosmic_fit(args)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def print_usage(commands):
|
|
32
|
+
"""Prints the usage message."""
|
|
33
|
+
print("Usage: SigProfilerAssignment <command> [<args>]\n")
|
|
34
|
+
print("Commands:")
|
|
35
|
+
for cmd, desc in commands.items():
|
|
36
|
+
print(f" {cmd}: {desc}")
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
if __name__ == "__main__":
|
|
40
|
+
main_function()
|