Skip to content

Commit 6f353c2

Browse files
committed
patch errors in docs
1 parent c34478f commit 6f353c2

7 files changed

+9
-9
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
- Read UMI deduplication ([`HUMID`](https://humid.readthedocs.io/en/latest/usage.html))
3535
- Low complexity and quality filtering ([`bbduk`](https://jgi.doe.gov/data-and-tools/software-tools/bbtools/), [`prinseq++`](https://github.com/Adrian-Cantu/PRINSEQ-plus-plus))
3636
- Host-read removal ([`BowTie2`](http://bowtie-bio.sourceforge.net/bowtie2/))
37-
3. Metagenomic diveristy mapping
37+
3. Metagenomic diversity mapping
3838
- Performs taxonomic classification and/or profiling using one or more of:
3939
- [`Kraken2`](https://ccb.jhu.edu/software/kraken2/)
4040
- [`Bracken`](https://ccb.jhu.edu/software/bracken/)(optional)

bin/custom_mpileup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def shannon_entropy(nucleotides: NDArray, total_coverage: NDArray) -> NDArray:
9595
shannon = np.nan_to_num(shannon)
9696

9797
# Replace -0.0 with 0.0
98-
shannon = np.where(shannon == -0.0, 0.0, shannon)
98+
shannon = np.where(shannon == -0.0, 0.0, np.round(shannon, 3))
9999

100100
return shannon
101101

@@ -104,7 +104,7 @@ def corrected_shannon(shannon: NDArray, total_coverage: NDArray, k: int) -> NDAr
104104
Correct the Shannon entropy by multiplying it with N/(N+k)
105105
"""
106106
correction = total_coverage / (total_coverage + k)
107-
return shannon * correction
107+
return np.round(shannon * correction, 3)
108108

109109

110110
def write_csv(matrix: NDArray, prefix: str) -> None:

docs/output.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ Variant files are visualized in the MultiQC report.
661661

662662
The consensus sequences are generated by [`BCFTools`](http://samtools.github.io/bcftools/bcftools.html) or [`iVar`](https://andersen-lab.github.io/ivar/html/manualpage.html). The consensus sequences are stored in the directory `consensus/` or in the iterations directory `assembly/polishing/iterations/it#/consensus`.
663663

664-
`BCFtools` will use the filtered variants file whereas, `iVar` will redetermine the variants to collapse in the consensus using their own workflow, read more about their differences in the [consensus calling section](./workflow/variant_and_refinement.md#consensus-calling).
664+
`BCFtools` will use the filtered variants file whereas, `iVar` will redetermine the variants to collapse in the consensus using their own workflow, read more about their differences in the [consensus calling section](./workflow/variant_and_refinement.md#4-consensus-calling).
665665

666666
???- abstract "Output files - iterations & variants"
667667

docs/parameters.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Options related to the trimming, low complexity and host removal steps of the re
5151
| `host_k2_library` | Kraken2 library(s) required to remove host and contamination <details><summary>Help</summary><small>Only used when no host kraken2 database is specified.</small></details>| human |
5252
| `skip_host_fastqc` | Skip the fastqc step after host & contaminants were removed | |
5353

54-
## Metagenomic diveristy
54+
## Metagenomic diversity
5555

5656
Parameters used to determine the metagenomic diversity of the sample
5757

docs/usage.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ An example samplesheet file consisting of both single- and paired-end data may l
9090
Viralgenie can in addition to constructing de novo consensus genomes map the sample reads to a series of references. These references are provided through the parameter `--mapping_constraints`.
9191

9292
An example mapping constraint samplesheet file consisting of 5 references, may look something like the one below.
93-
> This is for 5 references, 2 of them being a multi-fasta file, only one of the multi-fasta needs to undergo [reference selection](./workflow/variant_and_refinement.md#selection-of-reference).
93+
> This is for 5 references, 2 of them being a multi-fasta file, only one of the multi-fasta needs to undergo [reference selection](./workflow/variant_and_refinement.md#1a-selection-of-reference).
9494
9595

9696
=== "TSV"

docs/workflow/metagenomic_diversity.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Viralgenie offers two main tools for the classification of reads and a summary v
1313

1414
Feel free to reach out and suggest more classifiers. However, if the main goal of your project is to establish the presence of a virus within a sample and are therefore only focused on metagenomic diversity, have a look at [taxprofiler](https://nf-co.re/taxprofiler/)
1515

16-
> The read classification can be skipped with the argument `--skip_read_classification`, classifiers should be specified with the parameter `--read_classifiers 'kaiju,kraken2'` (no spaces, no caps). See the [parameters classification section](../parameters.md#read-classification) for all relevant arguments to control the classification steps.
16+
> The read classification can be skipped with the argument `--skip_read_classification`, classifiers should be specified with the parameter `--read_classifiers 'kaiju,kraken2'` (no spaces, no caps). See the [parameters classification section](../parameters.md#metagenomic-diversity) for all relevant arguments to control the classification steps.
1717
1818
## Kaiju
1919

nextflow_schema.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
},
204204
"fa_icon": "fas fa-bahai"
205205
},
206-
"metagenomic_diveristy": {
206+
"metagenomic_diversity": {
207207
"title": "Metagenomic diversity",
208208
"type": "object",
209209
"description": "Parameters used to determine the metagenomic diversity of the sample",
@@ -903,7 +903,7 @@
903903
"$ref": "#/$defs/preprocessing_options"
904904
},
905905
{
906-
"$ref": "#/$defs/metagenomic_diveristy"
906+
"$ref": "#/$defs/metagenomic_diversity"
907907
},
908908
{
909909
"$ref": "#/$defs/assembly"

0 commit comments

Comments
 (0)