Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Commit 08611e2

Browse files
committed
Update README and config
1 parent 63f57b9 commit 08611e2

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ cd path/to/repo/
2121
git clone --recurse-submodules https://github.com/CVUA-RRW/BAnalyzer.git
2222
```
2323

24-
Set up a conda environment containing snakemake, python and the pandas library and activate it:
25-
24+
Set up a conda environment containing snakemake (version 6 not supported), python and the pandas library and activate it:
2625
```bash
27-
conda create --name snakemake -c bioconda -c anaconda snakemake pandas
26+
conda create --name snakemake -c bioconda -c anaconda "snakemake>=5.10,<6.0" pandas
2827
conda activate snakemake
2928
```
3029

@@ -37,9 +36,11 @@ to know how to format it.
3736
If you want to extract barcodes from a database of reference genomes you can check out
3837
our [RRW-PrimerBLAST](https://github.com/CVUA-RRW/RRW-PrimerBLAST) pipeline.
3938

40-
You will also need to provide the [taxdb](https://ftp.ncbi.nlm.nih.gov/blast/db/taxdb.tar.gz)
39+
You will also need to provide the [taxdb](https://ftp.ncbi.nlm.nih.gov/blast/db/taxdb.tar.gz) and
40+
[taxdump](https://ftp.ncbi.nlm.nih.gov/pub/taxonomy/new_taxdump/new_taxdump.tar.gz)
4141
files available from the NCBI server.
4242

43+
4344
### Running BAnalyzer
4445

4546
BAnalyzer should be run using the snakemake command-line application.
@@ -63,6 +64,8 @@ The configuration file contains the following parameters:
6364
workdir: # Path to output directory
6465
blast_db: # Path to BLAST-formated database
6566
taxdb: # Path to the folder containing the taxdb files
67+
rankedlineage_dmp: # Path to rankedlineage.dmp
68+
nodes_dmp: # Path to nodes.dmp
6669
6770
# Modify the parameters below:
6871
trim_primers: False # True to trim primers from sequences

Snakefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,8 @@ rule get_consensus_level:
318318
message:
319319
"Determining consensus ranks"
320320
params:
321-
lineage = config["taxonomy"]["rankedlineage_dmp"],
322-
nodes = config["taxonomy"]["nodes_dmp"],
321+
lineage = config["rankedlineage_dmp"],
322+
nodes = config["nodes_dmp"],
323323
script:
324324
"../scripts/consensus_levels.py"
325325

@@ -332,8 +332,8 @@ rule write_report:
332332
derep = "reports/dereplication.tsv",
333333
nderep = "reports/derep_number.txt",
334334
nNfilt = "reports/high_N.txt",
335-
clusterSize = "reports/cluster_size.tsv"
336-
consensus = "reports/consensus.tsv"
335+
clusterSize = "reports/cluster_size.tsv",
336+
consensus = "reports/consensus.tsv",
337337
output:
338338
"reports/report.html"
339339
params:

config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
workdir: # Path to output directory
33
blast_db: # Path to BLAST-formated database
44
taxdb: # Path to the folder containing the taxdb files
5+
rankedlineage_dmp: # Path to rankedlineage.dmp
6+
nodes_dmp: # Path to nodes.dmp
57

68
# Modify the parameters below:
79
trim_primers: False # True to trim primers from sequences

0 commit comments

Comments
 (0)