Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion docs/cli-docs/deRIP_cmd_line.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ For aligned sequences in 'mintest.fa':

- Any column with >= 70% gap positions will not be corrected and a gap inserted in corrected sequence.
- Bases in column must be >= 80% C/T or G/A
- At least 50% bases in a column must be in RIP dinucleotide context (C/T as CpA / TpA) for correction.
- At least 50% bases in a column must be in RIP dinucleotide context (C/T as CpA or TpA) for correction.
- Default: Inherit all remaining uncorrected positions from the least RIP'd sequence.
- Mask all substrate and product motifs from corrected columns as ambiguous bases (i.e. CpA to TpA --> YpA)

### Basic usage with masking

```bash
derip2 -i tests/data/mintest.fa \
--threads 1 \
--max-gaps 0.7 \
--max-snp-noise 0.2 \
--min-rip-like 0.5 \
Expand All @@ -34,6 +35,7 @@ The `--plot` option will create a visualization of the alignment with RIP markup

```bash
derip2 -i tests/data/mintest.fa \
--threads 1 \
--max-gaps 0.7 \
--max-snp-noise 0.2 \
--min-rip-like 0.5 \
Expand All @@ -57,6 +59,7 @@ By default uncorrected positions in the output sequence are filled from the sequ

```bash
derip2 -i tests/data/mintest.fa \
--threads 1 \
--max-gaps 0.7 \
--max-snp-noise 0.2 \
--min-rip-like 0.5 \
Expand All @@ -76,6 +79,7 @@ Non-RIP deamination events are also highlighted.

```bash
derip2 -i tests/data/mintest.fa \
--threads 1 \
--max-gaps 0.7 \
--reaminate \
-d results \
Expand All @@ -97,6 +101,8 @@ derip2 -i tests/data/mintest.fa \
```code
--version Show the version and exit.
-i, --input TEXT Multiple sequence alignment. [required]
-t, --threads INTEGER Number of threads to use for processing.
Default: 1. [default: 1]
-g, --max-gaps FLOAT Maximum proportion of gapped positions in
column to be tolerated before forcing a gap
in final deRIP sequence. [default: 0.7]
Expand Down
5 changes: 4 additions & 1 deletion docs/tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -600,8 +600,11 @@
"import os\n",
"from derip2.derip import DeRIP\n",
"\n",
"# Check number of CPU cores\n",
"num_cores = os.cpu_count()\n",
"\n",
"# Load the alignment from gzipped file\n",
"sahana = DeRIP(gzipped_alignment_file)\n",
"sahana = DeRIP(gzipped_alignment_file, num_threads=num_cores)\n",
"\n",
"# Inspect alignment stats\n",
"print(\n",
Expand Down
Loading