Skip to main content

seqrecord-expanded

.. list-table:: :stub-columns: 1

* - tests
  - | |travis| |requires| |coveralls|
    | |quantified-code|
* - package
  - |version| |wheel| |supported-versions| |supported-implementations|

.. |travis| image:: https://travis-ci.org/carlosp420/seqrecord-expanded.svg?branch=master :alt: Travis-CI Build Status :target: https://travis-ci.org/carlosp420/seqrecord-expanded

.. |requires| image:: https://requires.io/github/carlosp420/seqrecord-expanded/requirements.svg?branch=master :alt: Requirements Status :target: https://requires.io/github/carlosp420/seqrecord-expanded/requirements/?branch=master

.. |coveralls| image:: https://coveralls.io/repos/carlosp420/seqrecord-expanded/badge.svg?branch=master&service=github :alt: Coverage Status :target: https://coveralls.io/r/carlosp420/seqrecord-expanded

.. |version| image:: https://img.shields.io/pypi/v/seqrecord-expanded.svg?style=flat :alt: PyPI Package latest release :target: https://pypi.python.org/pypi/seqrecord-expanded

.. |wheel| image:: https://img.shields.io/pypi/wheel/seqrecord-expanded.svg?style=flat :alt: PyPI Wheel :target: https://pypi.python.org/pypi/seqrecord-expanded

.. |supported-versions| image:: https://img.shields.io/pypi/pyversions/seqrecord-expanded.svg?style=flat :alt: Supported versions :target: https://pypi.python.org/pypi/seqrecord-expanded

.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/seqrecord-expanded.svg?style=flat :alt: Supported implementations :target: https://pypi.python.org/pypi/seqrecord-expanded

.. |quantified-code| image:: https://www.quantifiedcode.com/api/v1/project/b0bf8d6e31704c11abeb0b9043c11891/badge.svg :alt: Code issues :target: https://www.quantifiedcode.com/app/project/b0bf8d6e31704c11abeb0b9043c11891

Another SeqRecord class with methods: degenerate seqs, codon positions based on reading frames, etc.

Usage

By default it assumes a DNA sequence with ambiguous characters.

.. code:: python

>>> from seqrecord_expanded import SeqRecordExpanded
>>> seq_record = SeqRecordExpanded('TCTGAATGGAAGACAAAGCGTCCA',
...                                voucher_code='CP100-09',
...                                taxonomy={'genus': 'Melitaea',
...                                          'species': 'phoebe',
...                                         },
...                                gene_code='EF1a',
...                                reading_frame=1,
...                                table=1,  # translation table
...                                )
>>> # Degenerate sequence standard genetic code
>>> seq_record.degenerate()
'TCNGARTGGAARACNAARMGNCCN'
>>>
>>> # Degenerate sequence S method
>>> seq_record.degenerate(method='S')
'AGYGARTGGAARACNAARMGNCCN'
>>>
>>> # Degenerate sequence Z method
>>> seq_record.degenerate(method='Z')
'TCNGARTGGAARACNAARMGNCCN'
>>>
>>> # Degenerate sequence SZ method
>>> seq_record.degenerate(method='SZ')
'NNNGARTGGAARACNAARMGNCCN'
>>>
>>> # get first codon positions
>>> seq_record.first_codon_position()
'TGTAAACC'
>>>
>>> # get second codon positions
>>> seq_record.second_codon_position()
'CAGACAGC'
>>>
>>> # get third codon positions
>>> seq_record.third_codon_position()
'TAGGAGTA'
>>>
>>> # get first and second positions
>>> seq_record.first_and_second_positions()
'TCGATGAAACAACGCC'
>>>
>>> # translate to aminoacid sequence
>>> seq_record.translate()
'SEWKTKRP'
>>> # translate to aminoacid sequence
>>> seq_record.translate(table=1)
'SEWKTKRP'

Installation

.. code-block:: shell

pip install seqrecord-expanded

Requirements ^^^^^^^^^^^^

.. code-block:: shell

pip install -r requirements.txt

Compatibility

Supported Python versions: 2.6, 2.7, 3.3, 3.4, 3.5, 3.11, pypy.

Licence

BSD.

Authors

seqrecord-expanded was written by Carlos Peña <mycalesis@gmail.com>_.

Metadata

Release files for seqrecord-expanded 0.2.16

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for seqrecord-expanded 0.2.16
File Size Uploaded Provenance
seqrecord_expanded-0.2.16.tar.gz 15.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for seqrecord-expanded 0.2.16
File Interpreter ABI Platform
seqrecord_expanded-0.2.16-py3-none-any.whl Python 3 none any Details

Total release size: 21.7 kB

Release files / seqrecord_expanded-0.2.16.tar.gz

Download URL seqrecord_expanded-0.2.16.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3b0911a0b490e05ff6cf4e926c2c1735a35689d975e3ff169967497b22d657dc
BLAKE2b-256 checksum
How to use checksums
5c1d55e3db59a6cf4c9c52409908739821267ea827013c9f75894f81eb0a7e0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / seqrecord_expanded-0.2.16-py3-none-any.whl

Download URL seqrecord_expanded-0.2.16-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
25b1261d57e787e80d70933dd33c902fce4423f22a4b4f3653b80c5360566c9e
BLAKE2b-256 checksum
How to use checksums
680e04f628e9620c8d0447c2b7b59029c8cd0ad39424fdef67a978da863e738c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for seqrecord-expanded 0.2.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page