SigProfilerAssignment 0.1.4__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.
Files changed (191) hide show
  1. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/MANIFEST.in +1 -0
  2. {SigProfilerAssignment-0.1.4/SigProfilerAssignment.egg-info → SigProfilerAssignment-0.1.6}/PKG-INFO +3 -2
  3. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/README.md +2 -1
  4. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/Analyzer.py +6 -0
  5. SigProfilerAssignment-0.1.6/SigProfilerAssignment/DecompositionPlots/.DS_Store +0 -0
  6. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/DecompositionPlots/PlotDecomposition.py +88 -28
  7. SigProfilerAssignment-0.1.6/SigProfilerAssignment/SigProfilerAssignment_CLI.py +40 -0
  8. SigProfilerAssignment-0.1.6/SigProfilerAssignment/controllers/cli_controller.py +199 -0
  9. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/decompose_subroutines.py +13 -0
  10. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/decomposition.py +44 -0
  11. SigProfilerAssignment-0.1.6/SigProfilerAssignment/version.py +8 -0
  12. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6/SigProfilerAssignment.egg-info}/PKG-INFO +3 -2
  13. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment.egg-info/SOURCES.txt +4 -0
  14. SigProfilerAssignment-0.1.6/SigProfilerAssignment.egg-info/entry_points.txt +2 -0
  15. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment.egg-info/requires.txt +1 -1
  16. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/setup.py +8 -3
  17. SigProfilerAssignment-0.1.4/SigProfilerAssignment/version.py +0 -8
  18. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/LICENSE.txt +0 -0
  19. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/DecompositionPlots/PlotDecomposition_CNV48.py +0 -0
  20. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/DecompositionPlots/PlotDecomposition_DBS78.py +0 -0
  21. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/DecompositionPlots/PlotDecomposition_ID83.py +0 -0
  22. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/DecompositionPlots/PlotDecomposition_SBS1536.py +0 -0
  23. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/DecompositionPlots/PlotDecomposition_SBS288.py +0 -0
  24. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/DecompositionPlots/PlotDecomposition_SBS96.py +0 -0
  25. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/DecompositionPlots/PlotDecomposition_SV32.py +0 -0
  26. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/DecompositionPlots/ReferenceFiles/Accolade_fermante.png +0 -0
  27. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/DecompositionPlots/ReferenceFiles/CREDIT.md +0 -0
  28. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/DecompositionPlots/ReferenceFiles/Fonts/Arial Bold.ttf +0 -0
  29. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/DecompositionPlots/SigProfilerPlottingMatrix.py +0 -0
  30. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/__init__.py +0 -0
  31. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/21_breast_WGS_substitutions.mat +0 -0
  32. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/CNV_features.tsv +0 -0
  33. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/CNV_signatures.txt +0 -0
  34. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/CN_classes_dictionary.txt +0 -0
  35. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/DBS_signatures_genome_builds.xlsx +0 -0
  36. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v1_SBS_GRCh37.txt +0 -0
  37. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v1_SBS_GRCh37_exome.txt +0 -0
  38. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v2_SBS_GRCh37.txt +0 -0
  39. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v2_SBS_GRCh37_exome.txt +0 -0
  40. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.1_DBS_GRCh37.txt +0 -0
  41. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.1_DBS_GRCh37_exome.txt +0 -0
  42. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.1_ID_GRCh37.txt +0 -0
  43. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.1_SBS_GRCh37.txt +0 -0
  44. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.1_SBS_GRCh37_exome.txt +0 -0
  45. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.2_DBS_GRCh37.txt +0 -0
  46. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.2_DBS_GRCh37_exome.txt +0 -0
  47. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.2_ID_GRCh37.txt +0 -0
  48. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.2_SBS288_GRCh37.txt +0 -0
  49. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.2_SBS_GRCh37.txt +0 -0
  50. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.2_SBS_GRCh37_exome.txt +0 -0
  51. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.3_CN_GRCh37.txt +0 -0
  52. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.3_DBS_GRCh37.txt +0 -0
  53. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.3_DBS_GRCh37_exome.txt +0 -0
  54. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.3_ID_GRCh37.txt +0 -0
  55. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.3_SBS_GRCh37.txt +0 -0
  56. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.3_SBS_GRCh37_exome.txt +0 -0
  57. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.4_CN_GRCh37.txt +0 -0
  58. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.4_DBS_GRCh37.txt +0 -0
  59. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.4_DBS_GRCh37_exome.txt +0 -0
  60. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.4_ID_GRCh37.txt +0 -0
  61. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.4_SBS_GRCh37.txt +0 -0
  62. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3.4_SBS_GRCh37_exome.txt +0 -0
  63. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3_DBS_GRCh37.txt +0 -0
  64. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3_DBS_GRCh37_exome.txt +0 -0
  65. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3_ID_GRCh37.txt +0 -0
  66. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3_SBS_GRCh37.txt +0 -0
  67. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh37/COSMIC_v3_SBS_GRCh37_exome.txt +0 -0
  68. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v1_SBS_GRCh38.txt +0 -0
  69. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v1_SBS_GRCh38_exome.txt +0 -0
  70. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v2_SBS_GRCh38.txt +0 -0
  71. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v2_SBS_GRCh38_exome.txt +0 -0
  72. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.1_DBS_GRCh38.txt +0 -0
  73. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.1_DBS_GRCh38_exome.txt +0 -0
  74. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.1_SBS_GRCh38.txt +0 -0
  75. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.1_SBS_GRCh38_exome.txt +0 -0
  76. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.2_DBS_GRCh38.txt +0 -0
  77. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.2_DBS_GRCh38_exome.txt +0 -0
  78. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.2_SBS_GRCh38.txt +0 -0
  79. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.2_SBS_GRCh38_exome.txt +0 -0
  80. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.3_DBS_GRCh38.txt +0 -0
  81. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.3_DBS_GRCh38_exome.txt +0 -0
  82. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.3_SBS_GRCh38.txt +0 -0
  83. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.3_SBS_GRCh38_exome.txt +0 -0
  84. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.4_DBS_GRCh38.txt +0 -0
  85. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.4_DBS_GRCh38_exome.txt +0 -0
  86. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.4_SBS_GRCh38.txt +0 -0
  87. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.4_SBS_GRCh38_exome.txt +0 -0
  88. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3.4_SV_GRCh38.txt +0 -0
  89. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3_DBS_GRCh38.txt +0 -0
  90. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3_DBS_GRCh38_exome.txt +0 -0
  91. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3_SBS_GRCh38.txt +0 -0
  92. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/GRCh38/COSMIC_v3_SBS_GRCh38_exome.txt +0 -0
  93. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v1_SBS_mm10.txt +0 -0
  94. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v1_SBS_mm10_exome.txt +0 -0
  95. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v2_SBS_mm10.txt +0 -0
  96. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v2_SBS_mm10_exome.txt +0 -0
  97. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.1_DBS_mm10.txt +0 -0
  98. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.1_DBS_mm10_exome.txt +0 -0
  99. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.1_SBS_mm10.txt +0 -0
  100. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.1_SBS_mm10_exome.txt +0 -0
  101. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.2_DBS_mm10.txt +0 -0
  102. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.2_DBS_mm10_exome.txt +0 -0
  103. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.2_SBS_mm10.txt +0 -0
  104. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.2_SBS_mm10_exome.txt +0 -0
  105. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.3_DBS_mm10.txt +0 -0
  106. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.3_DBS_mm10_exome.txt +0 -0
  107. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.3_SBS_mm10.txt +0 -0
  108. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.3_SBS_mm10_exome.txt +0 -0
  109. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.4_DBS_mm10.txt +0 -0
  110. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.4_DBS_mm10_exome.txt +0 -0
  111. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.4_SBS_mm10.txt +0 -0
  112. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3.4_SBS_mm10_exome.txt +0 -0
  113. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3_DBS_mm10.txt +0 -0
  114. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3_DBS_mm10_exome.txt +0 -0
  115. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3_SBS_mm10.txt +0 -0
  116. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm10/COSMIC_v3_SBS_mm10_exome.txt +0 -0
  117. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v1_SBS_mm9.txt +0 -0
  118. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v1_SBS_mm9_exome.txt +0 -0
  119. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v2_SBS_mm9.txt +0 -0
  120. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v2_SBS_mm9_exome.txt +0 -0
  121. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.1_DBS_mm9.txt +0 -0
  122. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.1_DBS_mm9_exome.txt +0 -0
  123. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.1_SBS_mm9.txt +0 -0
  124. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.1_SBS_mm9_exome.txt +0 -0
  125. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.2_DBS_mm9.txt +0 -0
  126. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.2_DBS_mm9_exome.txt +0 -0
  127. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.2_SBS_mm9.txt +0 -0
  128. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.2_SBS_mm9_exome.txt +0 -0
  129. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.3_DBS_mm9.txt +0 -0
  130. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.3_DBS_mm9_exome.txt +0 -0
  131. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.3_SBS_mm9.txt +0 -0
  132. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.3_SBS_mm9_exome.txt +0 -0
  133. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.4_DBS_mm9.txt +0 -0
  134. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.4_DBS_mm9_exome.txt +0 -0
  135. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.4_SBS_mm9.txt +0 -0
  136. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3.4_SBS_mm9_exome.txt +0 -0
  137. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3_DBS_mm9.txt +0 -0
  138. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3_DBS_mm9_exome.txt +0 -0
  139. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3_SBS_mm9.txt +0 -0
  140. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/mm9/COSMIC_v3_SBS_mm9_exome.txt +0 -0
  141. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v1_SBS_rn6.txt +0 -0
  142. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v1_SBS_rn6_exome.txt +0 -0
  143. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v2_SBS_rn6.txt +0 -0
  144. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v2_SBS_rn6_exome.txt +0 -0
  145. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.1_DBS_rn6.txt +0 -0
  146. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.1_DBS_rn6_exome.txt +0 -0
  147. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.1_SBS_rn6.txt +0 -0
  148. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.1_SBS_rn6_exome.txt +0 -0
  149. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.2_DBS_rn6.txt +0 -0
  150. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.2_DBS_rn6_exome.txt +0 -0
  151. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.2_SBS_rn6.txt +0 -0
  152. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.2_SBS_rn6_exome.txt +0 -0
  153. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.3_DBS_rn6.txt +0 -0
  154. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.3_DBS_rn6_exome.txt +0 -0
  155. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.3_SBS_rn6.txt +0 -0
  156. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.3_SBS_rn6_exome.txt +0 -0
  157. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.4_DBS_rn6.txt +0 -0
  158. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.4_DBS_rn6_exome.txt +0 -0
  159. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.4_SBS_rn6.txt +0 -0
  160. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3.4_SBS_rn6_exome.txt +0 -0
  161. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3_DBS_rn6.txt +0 -0
  162. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3_DBS_rn6_exome.txt +0 -0
  163. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3_SBS_rn6.txt +0 -0
  164. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Reference_Signatures/rn6/COSMIC_v3_SBS_rn6_exome.txt +0 -0
  165. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/SBS_signatures_genome_builds.xlsx +0 -0
  166. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/Samples.txt +0 -0
  167. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/csvexample.csv +0 -0
  168. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/sigProfiler_DBS_signatures.csv +0 -0
  169. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/sigProfiler_ID_signatures.csv +0 -0
  170. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/sigProfiler_SBS_signatures_2018_03_28.csv +0 -0
  171. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/cnv_input/all.breast.ascat.summary.sample.tsv +0 -0
  172. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/txt_input/CNV48_S3_Signatures.txt +0 -0
  173. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/txt_input/DBS78_S3_Signatures.txt +0 -0
  174. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/txt_input/ID83_S3_Signatures.txt +0 -0
  175. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/txt_input/SBS96_S3_Signatures.txt +0 -0
  176. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/txt_input/SV32_S3_Signatures.txt +0 -0
  177. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/txt_input/sample_matrix_CNV48.txt +0 -0
  178. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/txt_input/sample_matrix_DBS.txt +0 -0
  179. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/txt_input/sample_matrix_ID.txt +0 -0
  180. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/txt_input/sample_matrix_SBS.txt +0 -0
  181. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/txt_input/sample_matrix_SV32.txt +0 -0
  182. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/vcf_input/PD3851a.vcf +0 -0
  183. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/vcf_input/PD3890a.vcf +0 -0
  184. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/vcf_input/PD3904a.vcf +0 -0
  185. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/vcf_input/PD3945a.vcf +0 -0
  186. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/data/tests/vcf_input/PD4005a.vcf +0 -0
  187. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment/single_sample.py +0 -0
  188. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment.egg-info/dependency_links.txt +0 -0
  189. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment.egg-info/not-zip-safe +0 -0
  190. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/SigProfilerAssignment.egg-info/top_level.txt +0 -0
  191. {SigProfilerAssignment-0.1.4 → SigProfilerAssignment-0.1.6}/setup.cfg +0 -0
@@ -1,4 +1,5 @@
1
1
  include README.md
2
+ include SigProfilerAssignment/controllers/*
2
3
  include SigProfilerAssignment/data/*
3
4
  include SigProfilerAssignment/data/Reference_Signatures/GRCh37/*
4
5
  include SigProfilerAssignment/data/Reference_Signatures/GRCh38/*
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: SigProfilerAssignment
3
- Version: 0.1.4
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
 
@@ -172,7 +173,7 @@ Additional functionalities for downstream analysis of _de novo_ extraction of mu
172
173
 
173
174
  ## <a name="citation"></a> Citation
174
175
 
175
- Díaz-Gay, M., Vangara, R., Barnes, M., ... & Alexandrov, L. B. (2023). Assigning mutational signatures to individual samples and individual somatic mutations with SigProfilerAssignment, bioRxiv, 2023-07. doi: https://doi.org/10.1101/2023.07.10.548264
176
+ Díaz-Gay, M., Vangara, R., Barnes, M., ... & Alexandrov, L. B. (2023). Assigning mutational signatures to individual samples and individual somatic mutations with SigProfilerAssignment, Bioinformatics, 2023-07. doi: [https://doi.org/10.1093/bioinformatics/btad756](https://doi.org/10.1093/bioinformatics/btad756)
176
177
 
177
178
  ## <a name="copyright"></a> Copyright
178
179
  This software and its documentation are copyright 2022 as a part of the SigProfiler project. The SigProfilerAssignment framework is free software and is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
@@ -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
 
@@ -161,7 +162,7 @@ Additional functionalities for downstream analysis of _de novo_ extraction of mu
161
162
 
162
163
  ## <a name="citation"></a> Citation
163
164
 
164
- Díaz-Gay, M., Vangara, R., Barnes, M., ... & Alexandrov, L. B. (2023). Assigning mutational signatures to individual samples and individual somatic mutations with SigProfilerAssignment, bioRxiv, 2023-07. doi: https://doi.org/10.1101/2023.07.10.548264
165
+ Díaz-Gay, M., Vangara, R., Barnes, M., ... & Alexandrov, L. B. (2023). Assigning mutational signatures to individual samples and individual somatic mutations with SigProfilerAssignment, Bioinformatics, 2023-07. doi: [https://doi.org/10.1093/bioinformatics/btad756](https://doi.org/10.1093/bioinformatics/btad756)
165
166
 
166
167
  ## <a name="copyright"></a> Copyright
167
168
  This software and its documentation are copyright 2022 as a part of the SigProfiler project. The SigProfilerAssignment framework is free software and is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
@@ -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
- TEMPLATE_PATH = os.path.join(DECOMPOSITION_PATH, "CosmicTemplates")
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", genome_build="GRCh37", cosmic_version="3.4", exome=False
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(TEMPLATE_PATH):
92
- os.mkdir(TEMPLATE_PATH)
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(TEMPLATE_PATH, json_file_name)
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(TEMPLATE_PATH, json_file_name)
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(denovo_mtx, basis_mtx, output_path, project, mtype, ss_decomp=False):
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(denovo_mtx, basis_mtx, output_path, project, mtype, ss_decomp):
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, basis_mtx, basis_names, weights, output_path, project, mtype
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, basis_mtx, output_path, project, mtype, ss_decomp=False
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, basis_mtx, basis_names, weights, output_path, project, mtype
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, None, output_path, project, context_type, ss_decomp=True
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()