Skip to content

Commit

Permalink
Add usage doc
Browse files Browse the repository at this point in the history
  • Loading branch information
maxibor committed Apr 27, 2020
1 parent 5e09cfc commit 708a589
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 3 deletions.
5 changes: 5 additions & 0 deletions docs/source/API.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
API
===

.. automodule:: pydamage.main
:members:
32 changes: 32 additions & 0 deletions docs/source/CLI.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# CLI

Command Line Interface

```bash
$ pydamage --help
Usage: pydamage [OPTIONS] BAM

PyDamage: Damage parameter estimation for ancient DNA
Author: Maxime Borry
Contact: <borry[at]shh.mpg.de>
Homepage & Documentation: github.com/maxibor/pydamage

BAM: path to BAM/SAM/CRAM alignment file

Options:
--version Show the version and exit.
-w, --wlen INTEGER Window length for damage modeling [default: 20]
-p, --process INTEGER Number of processes [default: 2]
-m, --mini INTEGER Minimum reads aligned to consider reference
[default: 2000]

-c, --cov FLOAT Minimum coverage to consider reference [default:
0.5]

-s, --show_al Show alignments representations
-pl, --plot Make the damage plots
--verbose Verbose mode
-o, --outdir PATH Output directory [default: pydamage_results]
--force Force overwriting of results directory
--help Show this message and exit.
```
6 changes: 3 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
import os
import sys
sys.path.insert(0, os.path.abspath('../..'))

source_parsers = {
'.md': 'recommonmark.parser.CommonMarkParser',
Expand Down
3 changes: 3 additions & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ __ homepage_
:maxdepth: 2
:caption: Contents:

API
CLI



Indices and tables
Expand Down

0 comments on commit 708a589

Please sign in to comment.