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
Copy file name to clipboardExpand all lines: README.md
+45-1Lines changed: 45 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ pip install --user .
47
47
## Using sierra-local
48
48
49
49
### Command-line interface (CLI)
50
-
Before running, we recommend using the `sierralocal/updater.py` script to update the data files associated with this repository to the most updated versions available from [hivfacts](https://github.com/hivdb/hivfacts/tree/main/data). Please note that you do need the requests package stated above for the following command to run. More information regarding this script is detailed below.
50
+
Before running, we recommend using the `sierralocal/updater.py` script to update the data files associated with this repository to the most updated versions available from [hivfacts](https://github.com/hivdb/hivfacts/tree/main/data). Please note that you do need the requests package stated above for the following command to run. More information regarding this script is detailed below. An alternative to running this script through the main function is also provided below.
@@ -160,6 +160,50 @@ Writing JSON to file RT_results.json
160
160
Time elapsed: 9.3442 seconds (10.751 it/s)
161
161
```
162
162
163
+
To specify other files for detecting the parameters, `isApobecMutation`, `isUnusual`, `isSDRM`, `primaryType`, you can use the following arguments: `-apobec_csv`, `-unusual_csv`, `-sdrms_csv`, `-mutation_csv`, respectively
Using mutation type file: mutation-type-pairs_hiv1.csv
172
+
Using APOBEC file: apobecs.csv
173
+
Aligning using post-align
174
+
Aligned RT.fa
175
+
100 sequences found in file RT.fa.
176
+
Writing JSON to file RT_results.json
177
+
Time elapsed: 9.5917 seconds (10.481 it/s)
178
+
```
179
+
180
+
To update these files while running the script, and subsequently specify an output directory, you can use the args `-forceupdate` followed by `-output_dir` and the new file path. Please note, if you run with `-forceupdate`, you must rerun the installation steps to apply the changes. If you do choose to a different output directory, you must always specifiy the new file locations for these files, otherwise they will default to the ones found in the `sierralocal/data` folder.
Downloading the latest file to determine is unusual
190
+
Updated is unusual file to ./rx-all_subtype-all.csv
191
+
Downloading the latest file to determine SDRM mutations
192
+
Updated SDRM mutations file to ./sdrms_hiv1.csv
193
+
Downloading the latest file to determine mutation type
194
+
Updated mutation type file to ./mutation-type-pairs_hiv1.csv
195
+
HIVdb version 9.8
196
+
Using unusual file: /Users/will/miniconda3/envs/sierra/lib/python3.9/site-packages/sierralocal/data/rx-all_subtype-all.csv
197
+
Using SDRM mutations file: /Users/will/miniconda3/envs/sierra/lib/python3.9/site-packages/sierralocal/data/sdrms_hiv1.csv
198
+
Using mutation type file: /Users/will/miniconda3/envs/sierra/lib/python3.9/site-packages/sierralocal/data/mutation-type-pairs_hiv1.csv
199
+
Using APOBEC file: /Users/will/miniconda3/envs/sierra/lib/python3.9/site-packages/sierralocal/data/apobecs.csv
200
+
Aligning using post-align
201
+
Aligned RT.fa
202
+
100 sequences found in file RT.fa.
203
+
Writing JSON to file RT_results.json
204
+
Time elapsed: 9.9952 seconds (10.846 it/s)
205
+
```
206
+
163
207
### As a Python module
164
208
If you have downloaded the package source to your computer, you can also run *sierra-local* as a Python module from the root directory of the package. In the following example, we are calling the main function of *sierra-local* from an interactive Python session:
0 commit comments