Skip to content

Commit d32c37e

Browse files
authored
Merge pull request #192 from AlexandrovLab/cosmic-v3.5
v1.1.0: Support for COSMIC v3.5 signatures and updated Tobacco_signat…
2 parents d9e051d + f1357d0 commit d32c37e

21 files changed

Lines changed: 1077 additions & 21 deletions

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9+
## [1.1.0] - 2026-01-05
10+
### Added
11+
- Support for COSMIC v3.5 mutational signatures as the default reference signature version.
12+
- Added COSMIC v3.5 signature files for all supported genome builds (GRCh37, GRCh38, mm9, mm10, rn6).
13+
14+
### Changed
15+
- Updated default `cosmic_version` parameter from 3.4 to 3.5 across all functions and CLI.
16+
- Updated `Tobacco_signatures` subgroup to include new signatures SBS100 and SBS109.
17+
- Updated README.md to reflect COSMIC v3.5 as the default version and include 3.5 in valid version options.
18+
919
## [1.0.4] - 2026-01-05
1020
### Added
1121
- Support for `decompose_fit` in higher mutation contexts (288 and 1536) without collapsing to 96 when `collapse_to_SBS96=False`.

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ If you plan to use `sample_reconstruction_plots='png'` or `'both'`, the external
4242

4343
## <a name="running"></a> Running
4444

45-
Assignment of known mutational signatures to individual samples is performed using the `cosmic_fit` function. Input samples are provided using the `samples` parameter in the form of mutation calling files (VCFs, MAFs, or simple text files), segmentation files or mutational matrices. COSMIC mutational signatures v3.4 are used as the default reference signatures, although previous COSMIC versions and custom signature databases are also supported using the `cosmic_version` and `signature_database` parameters. Results will be found in the folder specified in the `output` parameter.
45+
Assignment of known mutational signatures to individual samples is performed using the `cosmic_fit` function. Input samples are provided using the `samples` parameter in the form of mutation calling files (VCFs, MAFs, or simple text files), segmentation files or mutational matrices. COSMIC mutational signatures v3.5 are used as the default reference signatures, although previous COSMIC versions and custom signature databases are also supported using the `cosmic_version` and `signature_database` parameters. Results will be found in the folder specified in the `output` parameter.
4646

4747
```python
4848
from SigProfilerAssignment import Analyzer as Analyze
4949
Analyze.cosmic_fit(samples, output, input_type="matrix", context_type="96",
50-
collapse_to_SBS96=True, cosmic_version=3.4, exome=False,
50+
collapse_to_SBS96=True, cosmic_version=3.5, exome=False,
5151
genome_build="GRCh37", signature_database=None,
5252
exclude_signature_subgroups=None, export_probabilities=False,
5353
export_probabilities_per_mutation=False, make_plots=False,
@@ -64,7 +64,7 @@ Analyze.cosmic_fit(samples, output, input_type="matrix", context_type="96",
6464
| output | String | Path to the output folder. |
6565
| input_type | String | Three accepted input types:<ul><li> "vcf": if using mutation calling file/s (VCF, MAF, simple text file) as input</li><li>"seg:TYPE": if using a segmentation file as input. Please check the required format at https://github.com/AlexandrovLab/SigProfilerMatrixGenerator#copy-number-matrix-generation. The accepted callers for TYPE are the following {"ASCAT", "ASCAT_NGS", "SEQUENZA", "ABSOLUTE", "BATTENBERG", "FACETS", "PURPLE", "TCGA"}. For example:"seg:BATTENBERG"</li><li>"matrix": if using a mutational matrix as input</li></ul>The default value is "matrix". |
6666
| context_type | String | Required context type if `input_type` is "vcf". `context_type` takes which context type of the input data is considered for assignment. Valid options include "96", "288", "1536", "DINUC", and "ID". The default value is "96". |
67-
| cosmic_version | Float | Defines the version of the COSMIC reference signatures. Takes a positive float among 1, 2, 3, 3.1, 3.2, 3.3, and 3.4. The default value is 3.4. |
67+
| cosmic_version | Float | Defines the version of the COSMIC reference signatures. Takes a positive float among 1, 2, 3, 3.1, 3.2, 3.3, 3.4, and 3.5. The default value is 3.5. |
6868
| exome | Boolean | Defines if the exome renormalized COSMIC signatures will be used. The default value is False. |
6969
| genome_build | String | The reference genome build, used for select the appropriate version of the COSMIC reference signatures, as well as processing the mutation calling file/s. Supported genomes include "GRCh37", "GRCh38", "mm9", "mm10" and "rn6". The default value is "GRCh37". If the selected genome is not in the supported list, the default genome will be used. |
7070
| signature_database | String | Path to the input set of known mutational signatures (only in case that COSMIC reference signatures are not used), a tab delimited file that contains the signature matrix where the rows are mutation types and columns are signature IDs. |
@@ -113,7 +113,7 @@ The full list of signature subgroups is included in the following table:
113113
|Immunosuppressants_signatures| 32| -| -|
114114
|Treatment_signatures| 11, 25, 31, 32, 35, 86, 87, 90, 99| 5| -|
115115
|APOBEC_signatures| 2, 13| -| -|
116-
|Tobacco_signatures | 4, 29, 92| 2| 3|
116+
|Tobacco_signatures | 4, 29, 92, 100, 109| 2| 3|
117117
|UV_signatures| 7a, 7b, 7c, 7d, 38| 1| 13|
118118
|AA_signatures| 22a, 22b| 20| 23|
119119
|Colibactin_signatures| 88| -| 18|
@@ -135,7 +135,7 @@ Analyze.cosmic_fit(samples=spa.__path__[0]+"/data/tests/vcf_input",
135135
input_type="vcf",
136136
context_type="96",
137137
genome_build="GRCh37",
138-
cosmic_version=3.4)
138+
cosmic_version=3.5)
139139
```
140140

141141

@@ -148,7 +148,7 @@ from SigProfilerAssignment import Analyzer as Analyze
148148
Analyze.cosmic_fit(samples=spa.__path__[0]+"/data/tests/cnv_input/all.breast.ascat.summary.sample.tsv",
149149
output="example_sf",
150150
input_type="seg:ASCAT_NGS",
151-
cosmic_version=3.4,
151+
cosmic_version=3.5,
152152
collapse_to_SBS96=False)
153153
```
154154

@@ -162,7 +162,7 @@ Analyze.cosmic_fit(samples=spa.__path__[0]+"/data/tests/txt_input/sample_matrix_
162162
output="example_mm",
163163
input_type="matrix",
164164
genome_build="GRCh37",
165-
cosmic_version=3.4)
165+
cosmic_version=3.5)
166166
```
167167

168168
## <a name="denovo"></a> _De novo_ extraction of mutational signatures downstream analysis

SigProfilerAssignment/Analyzer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def decompose_fit(
1010
nnls_remove_penalty=0.01,
1111
initial_remove_penalty=0.05,
1212
genome_build="GRCh37",
13-
cosmic_version=3.4,
13+
cosmic_version=3.5,
1414
make_plots=True,
1515
collapse_to_SBS96=True,
1616
connected_sigs=True,
@@ -67,7 +67,7 @@ def denovo_fit(
6767
nnls_remove_penalty=0.01,
6868
initial_remove_penalty=0.05,
6969
genome_build="GRCh37",
70-
cosmic_version=3.4,
70+
cosmic_version=3.5,
7171
make_plots=True,
7272
collapse_to_SBS96=True,
7373
connected_sigs=True,
@@ -122,7 +122,7 @@ def cosmic_fit(
122122
nnls_remove_penalty=0.01,
123123
initial_remove_penalty=0.05,
124124
genome_build="GRCh37",
125-
cosmic_version=3.4,
125+
cosmic_version=3.5,
126126
make_plots=True,
127127
collapse_to_SBS96=True,
128128
connected_sigs=True,

SigProfilerAssignment/DecompositionPlots/PlotDecomposition.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
def install_cosmic_plots(
7878
context_type="96",
7979
genome_build="GRCh37",
80-
cosmic_version="3.4",
80+
cosmic_version="3.5",
8181
exome=False,
8282
volume=None,
8383
):
@@ -898,7 +898,7 @@ def run_PlotDecomposition(
898898
output_path,
899899
project,
900900
mtype,
901-
cosmic_version="3.4",
901+
cosmic_version="3.5",
902902
genome_build="GRCh37",
903903
exome=False,
904904
custom_text=None,
@@ -1042,7 +1042,7 @@ def run_PlotSSDecomposition(
10421042
project,
10431043
context_type,
10441044
genome_build="GRCh37",
1045-
cosmic_version="3.4",
1045+
cosmic_version="3.5",
10461046
custom_text=None,
10471047
exome=False,
10481048
volume=None,

SigProfilerAssignment/controllers/cli_controller.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ def parse_arguments_common(args: List[str], description: str) -> argparse.Namesp
5050
parser.add_argument(
5151
"--cosmic_version",
5252
type=float,
53-
default=3.4,
54-
help="COSMIC version (default: 3.4). Valid options: {1, 2, 3, 3.1, 3.2, 3.3, 3.4}.",
53+
default=3.5,
54+
help="COSMIC version (default: 3.5). Valid options: {1, 2, 3, 3.1, 3.2, 3.3, 3.4, 3.5}.",
5555
)
5656
parser.add_argument(
5757
"--make_plots",

0 commit comments

Comments
 (0)