You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Parameter | Variable Type | Parameter Description |
123
126
| --------------------- | -------- |-------- |
124
-
|**samples**| String | Path to a tab delimilted file that contains the samples table where the rows are mutation types and colunms are sample IDs. or Path to VCF files directory if input files are VCF Files. |
127
+
|**samples**| String | Path to input file for `input_type`:<ul><li>"matrix"</li><li>"seg:TYPE"</li></ul> Path to input folder for `input_type`:<ul><li>"vcf"</li></ul>|
125
128
|**output**| String | Path to the output folder. |
126
-
|**input_type**| String | The type of input:<br><ul><li>"vcf": used for vcf format inputs.</li><li>"matrix": used for table format inputs using a tab seperated file.</li></ul> Default value is "matrix"|
129
+
|**input_type**| String | The type of input:<br><ul><li>"matrix": used for table format inputs using a tab-separated file where the rows are mutation types and the columns are sample IDs.</li><li>"vcf": used for mutation calling file inputs (VCFs, MAFs or simple text files).</li><li>"seg:TYPE": used for a multi-sample segmentation file for copy number analysis. The accepted callers for TYPE are the following {"ASCAT", "ASCAT_NGS", "SEQUENZA", "ABSOLUTE", "BATTENBERG", "FACETS", "PURPLE", "TCGA"}. For example, when using segmentation file from BATTENBERG then set input_type to "seg:BATTENBERG".</li></ul> The default value is "matrix".|
130
+
|**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 "INDEL". The default value is "96".|
127
131
|**signatures**| String | Path to a tab delimited file that contains the signature table where the rows are mutation types and colunms are signature IDs. |
128
132
|**genome_build**| String | The reference genome build. List of supported genomes: "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. |
129
133
|**cosmic_version**| Float | Takes a positive float among 1, 2, 3, 3.1, 3.2 and 3.3. Defines the version of the COSMIC reference signatures. The default value is 3.3. |
130
134
|**new_signature_thresh_hold**| Float | Parameter in cosine similarity to declare a new signature. Applicable for decompose_fit only. The default value is 0.8. |
131
135
|**make_plots**| Boolean | Toggle on and off for making and saving all plots. Default value is True. |
132
136
|**exclude_signature_subgroups**| List | Removes the signatures corresponding to specific subtypes for better fitting. The usage is given above. Default value is None. |
133
137
|**exome**| Boolean | Defines if the exome renormalized signatures will be used. The default value is False. |
134
-
|**context_type**| String| Reqd context type if "input_type" is "vcf". 'context_type' takes what context type of the mutation matrix to be considered for assignment. Valid options include '96', '6', '24', '4608', '288', '18','6144', '384', '1536', 'DINUC'. Default Value is '96'|
135
138
|**verbose**| Boolean | Prints statements. Default value is False. |
136
139
137
140
138
141
139
142
140
-
#### SPA analysis Example for a matrix
143
+
## Examples
144
+
145
+
### SPA analysis - Example for a matrix
141
146
142
147
143
148
```python
@@ -167,7 +172,7 @@ Analyze.cosmic_fit( samples,
167
172
168
173
```
169
174
170
-
####SPA analysis Example for input vcf files
175
+
### SPA analysis - Example for input vcf files
171
176
172
177
173
178
```python
@@ -198,6 +203,36 @@ Analyze.cosmic_fit( samples,
198
203
exome=False)
199
204
200
205
```
206
+
207
+
### SPA analysis - Example for an input multi-sample segmentation file
208
+
209
+
210
+
```python
211
+
#import modules
212
+
import SigProfilerAssignment as spa
213
+
from SigProfilerAssignment import Analyzer as Analyze
214
+
215
+
#set directories and paths to signatures and samples
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.
0 commit comments