-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #687 from nextstrain/update-api-docs
Update API docs
- Loading branch information
Showing
16 changed files
with
148 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
augur.import module | ||
=================== | ||
|
||
.. automodule:: augur.import | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
augur.index module | ||
================== | ||
|
||
.. automodule:: augur.index | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
augur.util\_support.color\_parser module | ||
======================================== | ||
|
||
.. automodule:: augur.util_support.color_parser | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
augur.util\_support.color\_parser\_line module | ||
============================================== | ||
|
||
.. automodule:: augur.util_support.color_parser_line | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
augur.util\_support.date\_disambiguator module | ||
============================================== | ||
|
||
.. automodule:: augur.util_support.date_disambiguator | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
augur.util\_support.metadata\_file module | ||
========================================= | ||
|
||
.. automodule:: augur.util_support.metadata_file | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
augur.util\_support.node\_data module | ||
===================================== | ||
|
||
.. automodule:: augur.util_support.node_data | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
augur.util\_support.node\_data\_file module | ||
=========================================== | ||
|
||
.. automodule:: augur.util_support.node_data_file | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
augur.util\_support.node\_data\_reader module | ||
============================================= | ||
|
||
.. automodule:: augur.util_support.node_data_reader | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
augur.util\_support package | ||
=========================== | ||
|
||
.. automodule:: augur.util_support | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Submodules | ||
---------- | ||
|
||
.. toctree:: | ||
|
||
augur.util_support.color_parser | ||
augur.util_support.color_parser_line | ||
augur.util_support.date_disambiguator | ||
augur.util_support.metadata_file | ||
augur.util_support.node_data | ||
augur.util_support.node_data_file | ||
augur.util_support.node_data_reader | ||
augur.util_support.shell_command_runner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
augur.util\_support.shell\_command\_runner module | ||
================================================= | ||
|
||
.. automodule:: augur.util_support.shell_command_runner | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
============ | ||
augur index | ||
============ | ||
|
||
.. argparse:: | ||
:module: augur | ||
:func: make_parser | ||
:prog: augur | ||
:path: index | ||
|
||
Speed up filtering with a sequence index | ||
======================================== | ||
|
||
As we describe in :doc:`the zika tutorial <docs.nextstrain.org:tutorials/zika>`, augur index precalculates the composition of the sequences (e.g., numbers of nucleotides, gaps, invalid characters, and total sequence length) prior to filtering. | ||
The resulting sequence index speeds up subsequent filter steps especially in more complex workflows. | ||
|
||
.. code-block:: bash | ||
mkdir -p results/ | ||
augur index \ | ||
--sequences data/sequences.fasta \ | ||
--output results/sequence_index.tsv | ||
The first lines in the sequence index look like this. | ||
|
||
.. code-block:: bash | ||
strain length A C G T N other_IUPAC - ? invalid_nucleotides | ||
PAN/CDC_259359_V1_V3/2015 10771 2952 2379 3142 2298 0 0 0 0 0 | ||
COL/FLR_00024/2015 10659 2921 2344 3113 2281 0 0 0 0 0 | ||
PRVABC59 10675 2923 2351 3115 2286 0 0 0 0 0 | ||
COL/FLR_00008/2015 10659 2924 2344 3110 2281 0 0 0 0 0 | ||
We then provide the sequence index as an input to augur filter commands to speed up filtering on sequence-specific attributes. | ||
|
||
.. code-block:: bash | ||
augur filter \ | ||
--sequences data/sequences.fasta \ | ||
--sequence-index results/sequence_index.tsv \ | ||
--metadata data/metadata.tsv \ | ||
--exclude config/dropped_strains.txt \ | ||
--output results/filtered.fasta \ | ||
--group-by country year month \ | ||
--sequences-per-group 20 \ | ||
--min-date 2012 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters