Cluster DNA Sequences based on orthology
Project description
REPORTH
List of Contents
- Installation
- Introduction
- Using this tool
- Example Dataset
- Input Format
- Output Format
- Python packages used
Installation
The tool can be installed with the command:
pip install reporth
Note: makeblastn and blastn tools should be installed and in your $PATH
Introduction
repin_clusterer is a tool developed for the clustering of REPIN sequences based on their position in the genome. REPIN Sequences that are present in orthologous regions will be placed in the same cluster. The orthology is determined based on the similarity of the nucleotide sequence that flanks either side of the REPIN.
See also: rarefan.evolbio.mpg.de
Using this tool
The tool can be run with the command:
reporth --repin all_repins.txt --genomes genomes/ --out output_dir --reptypes 1,2
| Tag | Function | Default |
|---|---|---|
| repin | path to the text file containing REPIN sequences or RAREFAN Dir | None |
| genomes | path to the directory containing all the genome sequences | None |
| out | path to where the output file should be stored | ./cluster_output_[date]_[run-id]/ |
| reptypes | Mention the specific repin types to accept from rarefan output | None |
| win | begin flanking region after. This means that if the REPIN starts at 'x' and ends at 'y', the flanking region will begin at 'x-250' and from 'y+250' | 250 |
| fsize | length of the flanking region to consider | 1000 |
| pident | percentage sequence similarity that needs to be met | 90(%) |
| coverage | minimum length of sequence that has to align/match | 90(%) |
**Note**: 1. Each tag in the command begins with two '-' dash characters followed by a space and then the argument (see example above) 2. For --reptypes, the numbers should be written separated by a comma without a space between the values
Example Dataset
We have created an example dataset for you to understand how to use the software and for a demonstration.
Download the sample input dataset from the link below.
Install reporth and run using the command as mentioned above.
The output will be stored in the cluster_output_[date]_[run-id] directory in the format as mentioned below.
Download Test Dataset
Input Format
RAREFAN Output
When a RAREFAN output directory is provided as input REPORTH will go through the RAREFAN output folder and find all genomes directories ([genome]_[x]/) where x is any digit signifying the type of REP. Using the ‘--reptype' tag, the range of x can be specified. Within these folders the locations listed in the files [genome]_[x].ss are parsed.
reporth --repin rarefan_output_dir --genomes genomes --reptypes 0,1,2
List of REPINs as input
The input files that are required are by software:
- List of REPIN Sequences with position
- List of all genomes whose REPINs are provided.
- If there are REPINs whose genome sequence files are not provided, those REPINs will be dropped from the analysis
- The file containing REPIN sequences should be formatted such that each line contains (only) the following information:
genome_name repin_start repin_end repin_type repin_sequence
Ex: `TAMOak81 1008421 1008530 type0
Pb-St2 1008000 1008123 type0` - It is preferrable to provide the genome sequences in fasta format.
Output Format
The primary output file clusters_[date].txt is very similar to the input file with the addition of a number at the beginning of the link representing the cluster number.
num genome_name repin_start repin_end repin_type
0 chlTAMOak81 1008421 1008530 type0
Implying that this particular REPIN belongs to cluster number 0 and so on.
| Output File | Description of contents |
|---|---|
| clusters_[date].txt | Listing all repetitive elements with unique cluster ID |
| meta_cluster_[date].txt | Lists the sequence similarity of the flanking sequences of a REPIN with the flanking sequences of each other REPIN in a cluster (in the order they are present in the cluster file) |
| lhs_hits.p/rhs_hits.p | Pickle(python package) file storing the BLAST results of all flanking sequences |
| store_nearby_repins.p | Pickle(python package) file storing the flanking sequences and their corresponding BLAST hits and the presence of REPINs near these flanking sequences |
| flanking_pairwise_dists.p | Stores the pairwise distances between all flanking sequences from the BLAST hits |
| path_making_[date].txt | File listing whether a REPIN was merged into a cluster because of left flanking sequence/right flanking sequence or both |
Python packages used
Biopython
Cock, P. J., Antao, T., Chang, J. T., Chapman, B. A., Cox, C. J., Dalke, A., … others. (2009). Biopython: freely available Python tools for computational molecular biology and bioinformatics. Bioinformatics, 25(11), 1422–1423.
Pickle
Van Rossum, G. (2020). The Python Library Reference, release 3.8.2. Python Software Foundation.
Networkx
Hagberg, A., Swart, P., & S Chult, D. (2008). Exploring network structure, dynamics, and function using NetworkX.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file reporth-2.4.1.tar.gz.
File metadata
- Download URL: reporth-2.4.1.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c79fe96d2fe506856669ebe600922ea2b6bdd9b7eca39c661b44e0441155ec54
|
|
| MD5 |
07a619e96322d163d40c719e546ed574
|
|
| BLAKE2b-256 |
0945ab8c923586a44257e2461546ae013e9b25861b389f32c443687fcebdb785
|
File details
Details for the file reporth-2.4.1-py3-none-any.whl.
File metadata
- Download URL: reporth-2.4.1-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54aa02de381d68a9bb1b9385c2097a8ae112d2835b2f292b40f5f72fd16e1efb
|
|
| MD5 |
3f5e588985298404e66e3dab90ae2c7a
|
|
| BLAKE2b-256 |
e610cd0e49f55455309ba44b95ab4ad1899fa97fb9b4cec80b7f53da400dee04
|