Skip to content

Commit b585a5b

Browse files
committed
Updated the README to discuss relative and absolute pathing for the file_list.txt for pathing on vcfs for DITTO; Updated README to discuss the use of Mamba for NextFlow
1 parent 3122d20 commit b585a5b

File tree

2 files changed

+47
-10
lines changed

2 files changed

+47
-10
lines changed

README.md

Lines changed: 46 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,18 @@ cd DITTO
9191
> Cheaha (UAB HPC) because of resource limitations to download datasets from OpenCRAVAT.
9292
> Docker versions may need to be explored later to make it useable in Mac and Windows.
9393
94+
#### NextFlow Conda Vs. Mamba Setup
95+
96+
***NOTE:*** If the user has conda running with Mamba instead of Conda, NextFlow can be configured to use Mamba instead
97+
by modifying the `configs/nextflow/local.config` file and updating the **useMamba** parameter to reflect the user's
98+
environment:
99+
100+
```yaml
101+
# This parameter is defaulted to false, change to true if using Mamba
102+
103+
useMamba = true
104+
```
105+
94106
#### Setup Steps
95107

96108
- ***Setup OpenCravat (only one-time installation)***
@@ -110,15 +122,26 @@ cd DITTO
110122

111123
- ***Sample Sheet***
112124

113-
Please make a samplesheet `.test_data/file_list.txt` with VCF files (incl. path).
125+
Please make a samplesheet `.test_data/file_list.txt` with VCF files (incl. path). One can supply either relative paths
126+
or absolute paths to files for the vcf.gz files. Relative paths need to be relative to the work directory that DITTO
127+
was executed from.
128+
129+
Example `file_list.txt` with relative paths:
130+
131+
```bash
132+
.test_data/oc_test_data.vcf.gz
133+
.test_data/testing_variants_hg38.vcf.gz
134+
135+
# Example, will become: /Users/<username>/Workspace/DITTO/.test_data/oc_test_data.vcf.gz
136+
```
114137

115-
Example `file_list.txt`:
138+
Or absolute paths
116139

117140
```bash
118-
# Example is using MacOS home folder
141+
/Users/<username>/Desktop/test_data/oc_test_data.vcf.gz
142+
/Users/<username>/Desktop/test_data/testing_variants_hg38.vcf.gz
119143

120-
/Users/<username>/Workspace/DITTO/.test_data/oc_test_data.vcf.gz
121-
/Users/<username>/Workspace/DITTO/.test_data/testing_variants_hg38.vcf.gz
144+
# Example is using MacOS Desktop folder with test_data directory
122145
```
123146

124147
This will run DITTO prediction for both vcf files in the `file_list.txt`.
@@ -148,13 +171,26 @@ To run on UAB cheaha, see the [installation](#installation) step to clone the DI
148171
from, **note** the directory where the `pipeline.nf` file is)
149172
- See the example input file [.test_data/file_list.txt](.test_data/file_list.txt) (lists 2 testing example input VCFs)
150173
for reference or as an input file for testing (default behavior of `model.job`)
174+
- One can supply either relative paths or absolute paths to files for the vcf.gz files. Relative paths need to be
175+
relative to the work directory that DITTO was executed from.
151176

152-
Example input file content:
177+
Example `file_list.txt` with relative paths:
153178

154-
```bash
155-
/home/<username>/Workspace/DITTO/.test_data/oc_test_data.vcf.gz
156-
/home/<username>/Workspace/DITTO/.test_data/testing_variants_hg38.vcf.gz
157-
```
179+
```bash
180+
.test_data/oc_test_data.vcf.gz
181+
.test_data/testing_variants_hg38.vcf.gz
182+
183+
# Example, will become: /home/<username>/Workspace/DITTO/.test_data/oc_test_data.vcf.gz
184+
```
185+
186+
Or absolute paths
187+
188+
```bash
189+
/home/<username>/test_data/oc_test_data.vcf.gz
190+
/home/<username>/test_data/testing_variants_hg38.vcf.gz
191+
192+
# Example is using Linux home directory with a test_data directory
193+
```
158194

159195
- Update `model.job` (change the `--sample_sheet` option to your input file with VCF path(s) and
160196
`--outdir` to the desired output location of DITTO predictions)

configs/nextflow/local.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
conda {
22
enabled = true
3+
useMamba = false
34
}
45

56
env {

0 commit comments

Comments
 (0)