Skip to main content

A package for finding repeats in a DNA sequence

Project description

RepeatFinder

A python package to quickly find repeats in a DNA sequence

Installing

To get, you can either install via pip with the command:

pip install repeatfinder

or you can fetch the source, compile, theninstall the module:

git clone https://github.com/deprekate/RepeatFinder
cd RepeatFinder
python3 setup.py install

Usage

Import and use the module as normal

import repeatfinder as rf
my_reps = rf.get_repeats('GGGGGGGGGGGGcAAAAAAAAAAAAgctacgatggagctgacGGGGGGGGGGGGtAAAAAAAAAAAAt')

You can even allow for gaps in the repeats by using the keyword gap

my_reps = rf.get_repeats('GGGGGGGGGGGGcAAAAAAAAAAAAgctacgatggagctgacGGGGGGGGGGGGtAAAAAAAAAAAAt', gap = 1)

The return values are an iterable list containing four-tuples, where the first and second tuple correspond to the coordinates of one of the repeat pairs, and the third and fourth correspond to the other repeat. The list is sorted with the higher scoring repeat pairs coming first.

To run the example script:

python3 test.py

and the output would be the following

non gapped repeats
(1, 12, 43, 54)
(1, 11, 44, 54)
(2, 12, 43, 53)
(14, 25, 56, 67)
(14, 24, 57, 67)
(15, 25, 56, 66)
gapped repeats
(1, 25, 43, 67)
(1, 11, 44, 54)
(2, 12, 43, 53)
(14, 24, 57, 67)
(15, 25, 56, 66)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

repeatfinder-1.10.tar.gz (7.4 kB view hashes)

Uploaded Source

Built Distribution

repeatfinder-1.10-cp38-cp38-macosx_10_14_x86_64.whl (17.6 kB view hashes)

Uploaded CPython 3.8 macOS 10.14+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page