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)
Metadata
Release files for repeatfinder 1.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| repeatfinder-1.10.tar.gz | 7.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| repeatfinder-1.10-cp38-cp38-macosx_10_14_x86_64.whl | CPython 3.8 | CPython 3.8 | macOS 10.14+ x86-64 | Details |
Total release size: 24.9 kB
Release files / repeatfinder-1.10.tar.gz
| Download URL | repeatfinder-1.10.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
81b9d8d18301a8d8d07ff0d4b8346405b0047c6a821c0b27314d777d9b24b55b
|
|
BLAKE2b-256 checksum How to use checksums |
8a7dca42feb41571952a3e9104077c7410a659e4f0ecaeb31c739cb1b812db6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / repeatfinder-1.10-cp38-cp38-macosx_10_14_x86_64.whl
| Download URL | repeatfinder-1.10-cp38-cp38-macosx_10_14_x86_64.whl |
|---|---|
| Size | 17.6 kB |
| Tags | CPython 3.8 macOS 10.14+ x86-64 |
|
SHA-256 checksum How to use checksums |
71146e893eaaa4182166faa9aac5ea6b3529701b94f6b4befa3e48aa13ce19d3
|
|
BLAKE2b-256 checksum How to use checksums |
b7dab83759c9f3a08b853b5c0b89a0b0c4cc065f6c9007bda09238e99ed09d14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|