Quadruplex generator is python script used to generate artificial guanine quadruplex sequences.
Quadruplex generator was built with Python 3.7+.
To run quadruplex generator run
poetry install
To generate G-quadruplexes withou artificial noise run.
if __name__ == "__main__":
generator = QuadruplexGenerator()
generator.run(limit_per_regex=10)
print(generator.quadruplexes)
If artificial noise is needed run
if __name__ == "__main__":
generator = QuadruplexGenerator()
generator.run(
limit_per_regex=10,
place_random_noise=True,
minimum_number_of_noise=1,
maximum_number_of_noise=3,
)
print(generator.quadruplexes)
All generated quadruplexes are stored in class variable quadruplexes
.
print(generator.quadruplexes)
> [
'GGGGGAGAGTGCCGGGGGATAACGGG',
'GGGACCAACAGGGGCGGGATACTTGGGG',
'GAGGAGGGGCACCAGGGGGTTCCAAAGGGGG',
'GGTGCGGGTTAGGGGCATTTAGGGG',
...
]
- exrex = "^0.10.5"
- Patrik Kaura - Main developer - patrikkaura
This project is licensed under the MIT License - see the LICENSE file for details.