Calculate the rNMP coverage of restriction enzyme (RE) and generate optimized RE sets and RE combinations used for ribose-seq and the other rNMP capture techniques.
The following packages are required by RESCOT:
- numpy
- tqdm
The rNMP coverage is the ratio of rNMP captured region in genome. It can be calculated using reference genome and RE set.
Command:
resimulation.py [res] [fasta]Positional parameter:
- res: A text file with RE set information. This file should have 3 columns separated by tab and NO header. The first column is RE name. The second column is the RE pattern, degenerated bases are supported. The third column is the cut position of pattern. Each row represent one RE. There is a sample file named res.txt in the examples.
- fasta: Reference genome sequence in FASTA format
Optional parameter:
- -o O: Output file base name, default = FASTA filename
- -l l: Minimum suitable genome sequence length, default = 81
- -L L: Maximum suitable genome sequence length, default = 481
- --circular CIRCULAR [CIRCULAR ...]: Circular chromosome/plasmids, default = chrM
Output:
rNMP coverage, RE cut sites, and rNMP missing part.
Generate optimized RE set using a RE candidate pool and reference genome.
Command:
optimize_RE_set.py [REpool] [fasta]Positional parameter:
- REpool: RE information file for all RE candidates. Should have the same format as res.txt in the examples.
- fasta: Reference genome sequence in FASTA format
Optional parameter:
- -o O: Output file base name, default = FASTA filename
- -l l: Minimum suitable genome sequence length, default = 81
- -L L: Maximum suitable genome sequence length, default = 481
- -i I: Number of iterations, default = 100
- -n N: Minimum number of RE in a set, default = 1
- -N N: Maximum number of RE in a set, default = 4
- --circular CIRCULAR [CIRCULAR ...]: Circular chromosome/plasmids, default = chrM
- --start N,N,N......: Index of REs in candidate pool to start optimization with, zero-started index should separated by comma, example:(0,1,3,5)
Output: RE list, rNMP coverage, RE cut sites, and rNMP missing part for optimized RE set. And the optimization history
Generate optimized RE combination using a RE candidate pool and reference genome.
Command:
optimize_RE_combination.py [REpool] [fasta]Positional parameter:
- REpool: RE information file for all RE candidates. Should have the same format as res.txt in the examples.
- fasta: Reference genome sequence in FASTA format
Optional parameter:
- -o O: Output file base name, default = FASTA filename
- -l l: Minimum suitable genome sequence length, default = 81
- -L L: Maximum suitable genome sequence length, default = 481
- -n N: Minimum number of RE in a set, default = 1
- -N N: Maximum number of RE in a set, default = 4
- -m M: Number of RE sets in the combination, default=2
- -i I: Number of random RE sets generated, default = 100
- -c C: Number of iterations for combination, default=200000
- --circular CIRCULAR [CIRCULAR ...]: Circular chromosome/plasmids, default = chrM
- --start N,N,N......: Index of REs in candidate pool to start optimization with, zero-started index should separated by comma, example:(0,1,3,5)
Output: Random RE sets and optimization history. The optimized RE combination can be found in the optimization history
This software is under GNU GPL v3.0 license
If you have any question, please contact me at pxu64@gatech.edu.