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
|**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. |
125
125
|**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"|
126
127
|**signatures**| String | Path to a tab delimited file that contains the signature table where the rows are mutation types and colunms are signature IDs. |
127
128
|**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. |
128
129
|**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. |
129
130
|**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. |
130
131
|**make_plots**| Boolean | Toggle on and off for making and saving all plots. Default value is True. |
131
-
|**signature_subgroups**| List | Removes the signatures corresponding to specific subtypes for better fitting. The usage is given above. Default value is None. |
132
+
|**exclude_signature_subgroups**| List | Removes the signatures corresponding to specific subtypes for better fitting. The usage is given above. Default value is None. |
132
133
|**exome**| Boolean | Defines if the exome renormalized signatures will be used. The default value is False. |
133
-
|**vcf_opts**|Dict with keys 'project_name' and 'vcf_context'| Reqd options if vcf files are provided as input. 'project_name' key takes a string of the cohort of VCF samples and 'vcf_context' 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'|
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'|
134
135
|**verbose**| Boolean | Prints statements. Default value is False. |
135
136
136
137
137
138
138
139
139
-
#### SPA analysis Example
140
+
#### SPA analysis Example for a matrix
140
141
141
142
142
143
```python
@@ -161,7 +162,39 @@ Analyze.cosmic_fit( samples,
161
162
verbose=False,
162
163
collapse_to_SBS96=False,
163
164
make_plots=True,
164
-
signature_subgroups=None,
165
+
exclude_signature_subgroups=None,
166
+
exome=False)
167
+
168
+
```
169
+
170
+
#### SPA analysis Example for input vcf files
171
+
172
+
173
+
```python
174
+
#import modules
175
+
import SigProfilerAssignment as spa
176
+
from SigProfilerAssignment import Analyzer as Analyze
177
+
178
+
#set directories and paths to signatures and samples
179
+
dir_inp = spa.__path__[0]+'/data/Examples/'
180
+
samples = spa.__path__[0]+'/data/vcftest/'#directory of vcf files
0 commit comments