Skip to content

Commit dfe3628

Browse files
committed
v0.1.6: Add support for volume parameter and SIGPROFILERASSIGNMENT_VOLUME environment variable.
1 parent a2aa918 commit dfe3628

File tree

7 files changed

+157
-30
lines changed

7 files changed

+157
-30
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ Analyze.cosmic_fit(samples, output, input_type="matrix", context_type="96",
6868
| make_plots | Boolean | Toggle on and off for making and saving plots. The default value is True. |
6969
| sample_reconstruction_plots | String | Select the output format for sample reconstruction plots. Valid inputs are {'pdf', 'png', 'both', None}. The default value is None. |
7070
| 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. |
7172

7273

7374

SigProfilerAssignment/Analyzer.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def decompose_fit(
2323
context_type="96",
2424
export_probabilities=True,
2525
export_probabilities_per_mutation=False,
26+
volume=None,
2627
):
2728
decomp.spa_analyze(
2829
samples=samples,
@@ -49,6 +50,7 @@ def decompose_fit(
4950
context_type=context_type,
5051
export_probabilities=export_probabilities,
5152
export_probabilities_per_mutation=export_probabilities_per_mutation,
53+
volume=volume,
5254
)
5355

5456

@@ -73,6 +75,7 @@ def denovo_fit(
7375
context_type="96",
7476
export_probabilities=True,
7577
export_probabilities_per_mutation=False,
78+
volume=None,
7679
):
7780
decomp.spa_analyze(
7881
samples=samples,
@@ -98,6 +101,7 @@ def denovo_fit(
98101
context_type=context_type,
99102
export_probabilities=export_probabilities,
100103
export_probabilities_per_mutation=export_probabilities_per_mutation,
104+
volume=volume,
101105
)
102106

103107

@@ -123,6 +127,7 @@ def cosmic_fit(
123127
export_probabilities=True,
124128
export_probabilities_per_mutation=False,
125129
sample_reconstruction_plots=False,
130+
volume=None,
126131
):
127132
decomp.spa_analyze(
128133
samples=samples,
@@ -149,4 +154,5 @@ def cosmic_fit(
149154
export_probabilities=export_probabilities,
150155
export_probabilities_per_mutation=export_probabilities_per_mutation,
151156
sample_reconstruction_plots=sample_reconstruction_plots,
157+
volume=volume,
152158
)

0 commit comments

Comments
 (0)