added reverse complement

This commit is contained in:
Heng Li
2018-02-20 09:41:25 -05:00
parent f434653432
commit 7dc7097208
4 changed files with 28 additions and 2 deletions

View File

@@ -139,8 +139,8 @@ the following format:
It is effectively the PAF format without the QueryName and QueryLength columns
(the first two columns in PAF).
Function mappy.fastx_read
~~~~~~~~~~~~~~~~~~~~~~~~~
Miscellaneous Functions
~~~~~~~~~~~~~~~~~~~~~~~
.. code:: python
@@ -149,3 +149,11 @@ Function mappy.fastx_read
This generator function opens a FASTA/FASTQ file and *yields* a
:code:`(name,seq,qual)` tuple for each sequence entry. The input file may be
optionally gzip'd.
.. code:: python
mappy.revcomp(seq)
Return the reverse complement of DNA string :code:`seq`. This function
recognizes IUB code and preserves the letter cases. Uracil :code:`U` is
complemented to :code:`A`.