Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add summary docs
Browse files Browse the repository at this point in the history
olliecheng committed Dec 17, 2024
1 parent 815b96a commit 08c7a56
Showing 7 changed files with 65 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -5,8 +5,8 @@

# Commands

- [nailpolish index](./generate-index.md)
- [nailpolish summary](./summarize.md)
- [nailpolish call](./call.md)
- [nailpolish index](commands/generate-index.md)
- [nailpolish summary](commands/summarize.md)
- [nailpolish call](commands/call.md)

# Reference
1 change: 0 additions & 1 deletion src/call.md

This file was deleted.

34 changes: 34 additions & 0 deletions src/commands/call.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# nailpolish call

Consensus call duplicated reads
The reads must first have been [indexed](./generate-index.md).

## Usage

```shell
$ nailpolish call --help
Generate a consensus-called 'cleaned up' file

Usage: nailpolish call [OPTIONS] --index <INDEX> --input <INPUT>

Options:
--index <INDEX> the index file
--input <INPUT> the input .fastq
--output <OUTPUT> the output .fasta; note that quality values are not preserved
-t, --threads <THREADS> the number of threads to use [default: 4]
-d, --duplicates-only only show the duplicated reads, not the single ones
-r, --report-original-reads for each duplicate group of reads, report the original reads along with the consensus
-h, --help Print help
```

## Output format

TODO

## Options

- `--duplicates-only`: By default, _nailpolish_ will consensus call all duplicated reads and also produces each
non-duplicated read intact. With this flag, only the duplicated reads will be produced, and all non-duplicated reads
will be skipped.
- `--report-original-reads`: By default, when reads are consensus called, only the consensus read is produced.
With this flag, each of the original reads will be produced as well.
File renamed without changes.
24 changes: 24 additions & 0 deletions src/commands/summarize.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# nailpolish summary

Quickly review the quality and duplicate rate of the dataset.
The reads must first have been [indexed](./generate-index.md).

## Usage

```shell
$ nailpolish summary --help
Generate a summary of duplicate statistics from an index file

Usage: nailpolish summary [OPTIONS] --index <INDEX>

Options:
--index <INDEX> the index file
--output <OUTPUT> output file [default: summary.html]
-h, --help Print help
```

## Output

[See an example summary output file.](../assets/summary.html)

<iframe src="../assets/summary.html" style="width: 100%; height: 60vh; min-height: 500px;"></iframe>
8 changes: 4 additions & 4 deletions src/quickstart.md
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ wget https://github.com/DavidsonGroup/nailpolish/releases/download/sample-fastq-

## Indexation

_For more information, see [nailpolish index](./generate-index.md)._
_For more information, see [nailpolish index](commands/generate-index.md)._

By default, nailpolish expects the barcode and UMI to be in the `@BC_UMI` format at the start of the header.
Alternative barcode and UMI formats can be provided through either a preset (one of `bc-umi`, `umi-tools`, `illumina`)
@@ -40,7 +40,7 @@ nailpolish index --index index.tsv scmixology2_sample.fastq

## Summary of duplicate count

_For more information, see [nailpolish summary](./summarize.md)._
_For more information, see [nailpolish summary](commands/summarize.md)._

A .html file can be generated to summarise some key statistics about the input reads.
The output file is written to `summary.html` by default.
@@ -53,7 +53,7 @@ nailpolish summary index.tsv

## Consensus call duplicates

_For more information, see [nailpolish call](./call.md)._
_For more information, see [nailpolish call](commands/call.md)._

By consensus calling duplicates, only one read is returned per UMI group.
For singleton reads, there is no change
@@ -68,4 +68,4 @@ nailpolish call \
```

There are alternative parameters which can be passed to configure the output.
See the _[nailpolish call](./call.md)_ documentation for more.
See the _[nailpolish call](commands/call.md)_ documentation for more.
1 change: 0 additions & 1 deletion src/summarize.md

This file was deleted.

0 comments on commit 08c7a56

Please sign in to comment.