From 1ed80af155e51155270c596be38d9d77c897d539 Mon Sep 17 00:00:00 2001 From: Matt Shirley Date: Tue, 3 Mar 2015 12:25:56 -0500 Subject: [PATCH] Bump version number and add documentation for #54. --- README.rst | 19 +++++++++++++++++++ pyfaidx/__init__.py | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index f2d7a74..4535f11 100644 --- a/README.rst +++ b/README.rst @@ -168,6 +168,25 @@ You can also perform line-based iteration, receiving the sequence lines as they CGATGCCGGATAATCGGCAGCCGAGGAACCGGCAGCCGAGGATCCGCTCCGGGAACGAGCCTCGTTCCGC ... +Sequence names are truncated on any whitespace. This is a limitation of the indexing strategy. However, full names can be recovered: + +.. code:: python + + # new in v0.3.7 + >>> from pyfaidx import Fasta + >>> genes = Fasta('tests/data/genes.fasta') + >>> for record in genes: + ... print(record.name) + ... print(record.long_name) + ... + gi|563317589|dbj|AB821309.1| + gi|563317589|dbj|AB821309.1| Homo sapiens FGFR2-AHCYL1 mRNA for FGFR2-AHCYL1 fusion kinase protein, complete cds + gi|557361099|gb|KF435150.1| + gi|557361099|gb|KF435150.1| Homo sapiens MDM4 protein variant Y (MDM4) mRNA, complete cds, alternatively spliced + gi|557361097|gb|KF435149.1| + gi|557361097|gb|KF435149.1| Homo sapiens MDM4 protein variant G (MDM4) mRNA, complete cds + ... + .. role:: red If you want to modify the contents of your FASTA file in-place, you can use the `mutable` argument. diff --git a/pyfaidx/__init__.py b/pyfaidx/__init__.py index db7e01e..6c3abca 100644 --- a/pyfaidx/__init__.py +++ b/pyfaidx/__init__.py @@ -21,7 +21,7 @@ dna_bases = re.compile(r'([ACTGNactgnYRWSKMDVHBXyrwskmdvhbx]+)') -__version__ = '0.3.6' +__version__ = '0.3.7' class FastaIndexingError(Exception):