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 details)

Uploaded Source

Built Distribution

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

Uploaded CPython 3.8 macOS 10.14+ x86-64

File details

Details for the file repeatfinder-1.10.tar.gz.

File metadata

  • Download URL: repeatfinder-1.10.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.2

File hashes

Hashes for repeatfinder-1.10.tar.gz
Algorithm Hash digest
SHA256 81b9d8d18301a8d8d07ff0d4b8346405b0047c6a821c0b27314d777d9b24b55b
MD5 d4ab0a6bb2d801257270c201b1326b9f
BLAKE2b-256 8a7dca42feb41571952a3e9104077c7410a659e4f0ecaeb31c739cb1b812db6d

See more details on using hashes here.

File details

Details for the file repeatfinder-1.10-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: repeatfinder-1.10-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.2

File hashes

Hashes for repeatfinder-1.10-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 71146e893eaaa4182166faa9aac5ea6b3529701b94f6b4befa3e48aa13ce19d3
MD5 4b7faf0d6cb42053b1884f4f1484241e
BLAKE2b-256 b7dab83759c9f3a08b853b5c0b89a0b0c4cc065f6c9007bda09238e99ed09d14

See more details on using hashes here.

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