Skip to content

Commit 93da8d1

Browse files
committed
default to consensus mode
1 parent 290d64f commit 93da8d1

File tree

5 files changed

+13
-14
lines changed

5 files changed

+13
-14
lines changed

docs/cli-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Use `--help` for common options or `--help-all` for the full list.
1616
| `-o, --output` | Output file prefix | derived from reads filename |
1717
| `-t, --threads` | Number of threads | `1` |
1818
| `-a, --aligner` | `minimap2` or `bwa` | `minimap2` |
19-
| `--stop` | Stop after: `index`, `place`, `align`, `genotype`, `consensus` | `place` |
19+
| `--stop` | Stop after: `index`, `place`, `align`, `genotype`, `consensus` | `consensus` |
2020
| `--meta` | Enable metagenomic mode | off |
2121
| `-v, --verbose` | Verbose output | off |
2222
| `-q, --quiet` | Errors only | off |

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ panmap takes sequencing reads and a pangenome in [PanMAN](https://github.com/Tur
1010
# Install
1111
conda install -c bioconda panmap
1212

13-
# Place and genotype paired-end reads
14-
panmap ref.panman reads_R1.fq reads_R2.fq --stop genotype -t 8 -o sample
13+
# Place, genotype, and build consensus
14+
panmap ref.panman reads_R1.fq reads_R2.fq -t 8 -o sample
1515

1616
# Metagenomic abundance estimation
1717
panmap ref.panman reads.fq --meta --index ref.idx -t 8 -o sample

docs/quickstart.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ panmap <panman> [reads1.fq] [reads2.fq] [options]
88

99
## Pipeline
1010

11-
panmap runs five stages in sequence. By default it stops after **placement**. Use `--stop` to run further.
11+
panmap runs five stages in sequence. By default it runs through **consensus**. Use `--stop` to stop earlier.
1212

1313
```
1414
index --> place --> align --> genotype --> consensus
@@ -20,8 +20,7 @@ index --> place --> align --> genotype --> consensus
2020
Place reads onto the pangenome, align to the closest reference, call variants, and generate a consensus:
2121

2222
```bash
23-
panmap ref.panman reads_R1.fq reads_R2.fq \
24-
--stop consensus -t 8 -o sample
23+
panmap ref.panman reads_R1.fq reads_R2.fq -t 8 -o sample
2524
```
2625

2726
This produces `sample.bam`, `sample.vcf`, and `sample.consensus.fa`.

docs/single-sample.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,24 @@ The default mode. Places reads from one sample onto the pangenome tree, aligns t
55
## Basic usage
66

77
```bash
8-
# Place reads (default -- stops after placement)
8+
# Run full pipeline (default -- through consensus)
99
panmap ref.panman reads_R1.fq reads_R2.fq -t 8 -o sample
1010

11-
# Run through genotyping
12-
panmap ref.panman reads_R1.fq reads_R2.fq --stop consensus -t 8 -o sample
11+
# Stop at an earlier stage
12+
panmap ref.panman reads_R1.fq reads_R2.fq --stop genotype -t 8 -o sample
1313
```
1414

1515
## Pipeline stages
1616

17-
By default, panmap stops after **placement**. Use `--stop` to control how far the pipeline runs.
17+
By default, panmap runs through **consensus**. Use `--stop` to stop at an earlier stage.
1818

1919
| Stage | `--stop` value | Output | Description |
2020
|-------|---------------|--------|-------------|
2121
| Index | `index` | `<prefix>.idx` | Builds seed index from the PanMAN |
22-
| Place | `place` (default) | `<prefix>.placement.tsv` | Places reads onto the pangenome tree |
22+
| Place | `place` | `<prefix>.placement.tsv` | Places reads onto the pangenome tree |
2323
| Align | `align` | `<prefix>.bam` | Aligns reads to closest reference |
2424
| Genotype | `genotype` | `<prefix>.vcf` | Calls variants from alignments |
25-
| Consensus | `consensus` | `<prefix>.consensus.fa` | Generates consensus FASTA from variants |
25+
| Consensus | `consensus` (default) | `<prefix>.consensus.fa` | Generates consensus FASTA from variants |
2626

2727
!!! note
2828
When `--stop genotype` is used, `--force-leaf` is enabled automatically.
@@ -74,7 +74,7 @@ panmap examples/data/sars_20000_twilight_dipper.panman \
7474
| `-o, --output` | Output file prefix | derived from reads filename |
7575
| `-t, --threads` | Number of threads | `1` |
7676
| `-a, --aligner` | `minimap2` or `bwa` | `minimap2` |
77-
| `--stop` | Stop after: `index`, `place`, `align`, `genotype` | `place` |
77+
| `--stop` | Stop after: `index`, `place`, `align`, `genotype`, `consensus` | `consensus` |
7878
| `--force-leaf` | Restrict placement to leaf nodes | off (auto-enabled with `--stop genotype`) |
7979
| `--refine` | Alignment-based refinement of top candidates | off |
8080

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1708,7 +1708,7 @@ int main(int argc, char** argv) {
17081708
("version,V", "Show version")
17091709
("output,o", po::value<std::string>(&cfg.output), "Output prefix")
17101710
("threads,t", po::value<int>(&cfg.threads)->default_value(1), "Threads")
1711-
("stop", po::value<std::string>()->default_value("place"), "Stop after: index|place|align|genotype|consensus")
1711+
("stop", po::value<std::string>()->default_value("consensus"), "Stop after: index|place|align|genotype|consensus")
17121712
("meta", po::bool_switch(&cfg.metagenomic), "Metagenomic mode (for more options, see --help-all)")
17131713
("aligner,a", po::value<std::string>(&cfg.aligner)->default_value("minimap2"), "Aligner: minimap2|bwa")
17141714
("verbose,v", po::bool_switch(&cfg.verbose), "Verbose output")

0 commit comments

Comments
 (0)