Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lmdu/pytrf
a python package for finding tandem repeats from genomic sequences
https://github.com/lmdu/pytrf
microsatellite minisatellite repeats ssr str tandem vntr
Last synced: about 1 month ago
JSON representation
a python package for finding tandem repeats from genomic sequences
- Host: GitHub
- URL: https://github.com/lmdu/pytrf
- Owner: lmdu
- License: mit
- Created: 2020-07-21T01:41:16.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-03-19T11:29:40.000Z (10 months ago)
- Last Synced: 2024-05-20T03:44:06.958Z (8 months ago)
- Topics: microsatellite, minisatellite, repeats, ssr, str, tandem, vntr
- Language: C
- Homepage: https://pytrf.readthedocs.io
- Size: 1.48 MB
- Stars: 6
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Pytrf
#####.. image:: https://github.com/lmdu/pytrf/actions/workflows/wheel.yml/badge.svg
:target: https://github.com/lmdu/pytrf/actions/workflows/wheel.yml
:alt: Github Action.. image:: https://readthedocs.org/projects/pytrf/badge/?version=latest
:target: https://pytrf.readthedocs.io/en/latest/?badge=latest
:alt: Readthedocs.. image:: https://img.shields.io/pypi/v/pytrf.svg
:target: https://pypi.org/project/pytrf
:alt: PyPI.. image:: https://img.shields.io/pypi/pyversions/pytrf
:target: https://pypi.org/project/pytrf
:alt: PyPI.. image:: https://app.codacy.com/project/badge/Grade/bbe59e55f686465ca5824c69583e9718
:target: https://app.codacy.com/gh/lmdu/pytrf/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade*a fast Python package for finding tandem repeat sequences*
Introduction
============A Tandem repeat (TR) in genomic sequence is a set of adjacent short DNA
sequence repeated consecutively. The pytrf is a lightweight Python C extension for identification of tandem repeats. The pytrf enables to fastly identify both exact
or perfect SSRs. It also can find generic tandem repeats with any size of motif,
such as with maximum motif length of 100 bp. Additionally, it has capability of finding approximate or imperfect tandem repeats. Furthermore, the pytrf not only can be used as Python package but also provides command line interface for users to facilitate the identification of tandem repeats.Note: pytrf is not a Python binding to common used tool `TRF `_.
Usage
=====The pytrf can be used as Python package. It requires `pyfastx `_ to parse FASTA or FASTQ file.
.. code:: python
>>> import pytrf
>>> import pyfastx
>>> fa = pyfastx.Fastx('test.fa', uppercase=True):
>>> for name, seq in fa:
>>> for ssr in STRFinder(name, seq):
>>> print(ssr.as_string())Command line
============The pytrf also provides command line tools for you to find tandem repeats from given FASTA or FASTQ file.
.. code:: sh
pytrf -h
usage: pytrf command [options] fastx
a python package for finding tandem repeats from genomic sequences
options:
-h, --help show this help message and exit
-v, --version show program's version number and exitcommands:
findstr find exact or perfect short tandem repeats
findgtr find exact or perfect generic tandem repeats
findatr find approximate or imperfect tandem repeats
extract get tandem repeat sequence and flanking sequenceFor example:
.. code:: sh
pytrf findstr test.fa
Documentation
=============For more detailed usage, see our manual: `https://pytrf.readthedocs.io `_