← Latest papers
💻 bioinformatics

pydreg: a fast Python package for identifying active cis-regulatory elements from nascent transcription

The paper introduces pydreg, a fast and maintainable Python reimplementation of the dREG algorithm for identifying active cis-regulatory elements from nascent transcription, which significantly reduces runtime and memory usage while preserving the original method's accuracy and compatibility with modern computing infrastructure.

Original authors: He, A. Y., Danko, C. G.

Published 2026-09-13
📖 4 min read☕ Coffee break read

Original authors: He, A. Y., Danko, C. G.

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). ⚕️ This is an AI-generated explanation of a preprint that has not been peer-reviewed. It is not medical advice. Do not make health decisions based on this content. Read full disclaimer

Inside every cell of the human body, a complex system of switches determines which genes are turned on and which are turned off. These switches, known as regulatory elements, act like the control panel for the cell's operations, deciding when to build a specific protein or when to stop. To understand how a cell functions, scientists must locate these active switches. One powerful way to find them is by listening to the cell's raw, unprocessed genetic messages. When a gene is being read, the cell produces a short-lived copy of RNA called nascent RNA. By sequencing this fresh RNA, researchers can see exactly where the cell is currently active, revealing the location of promoters and enhancers that drive biological processes.

For over a decade, a computer program called dREG has been the standard tool for finding these active regions. It works by scanning the patterns of RNA production across the genome, looking for the specific signature of a switch being flipped. However, the original version of this software was built on older technology that has become difficult to run and maintain. It relied on a complex mix of programming languages and specialized hardware support that is no longer easy to update. As a result, many scientists who wanted to use this powerful method found themselves blocked by technical hurdles, unable to run the analysis on their own computers or integrate it into modern research workflows.

To solve this problem, researchers Adam Y. He and Charles G. Danko have created a new version of the software called pydreg. They rewrote the entire program in Python, a language that is widely used and easier to maintain, while keeping the exact same mathematical logic that made the original tool so accurate. The goal was not to change how the science works, but to make the tool faster, lighter, and much easier for anyone to use. The new software preserves the original "brain" of the program—the pre-trained models that recognize the patterns of active genes—but replaces the heavy, outdated machinery underneath with modern, efficient tools.

When the team tested the new software against the old version, the results were nearly identical in terms of accuracy. The new program identified the same active regions with a level of agreement so high that the two sets of results are almost indistinguishable. In fact, when comparing the scores given to millions of potential locations, the new software matched the old one with a correlation so strong it is effectively perfect. This confirms that the new code did not lose any of the scientific precision of the original method. The difference lies entirely in how the work gets done. The new version runs about four and a half times faster than the old one. It also uses significantly less computer memory, requiring only a fraction of the resources needed by the previous version.

The speed and efficiency come from how the new software handles the heavy lifting of its calculations. The original program used a custom, older method to process data on graphics cards, which was designed for hardware from more than a decade ago. The new version uses modern libraries that take full advantage of current computer chips, allowing it to perform the same complex calculations with far less effort. It also streamlines the steps taken before and after the main calculation, reducing the time the computer spends waiting for data. For researchers, this means that an analysis that might have taken hours can now be finished in a fraction of the time, and it can be run on standard equipment rather than requiring specialized, hard-to-find setups.

Beyond just speed, the new software removes the barriers that kept many scientists from using this method at all. It is packaged as a simple tool that can be installed with a single command, and it works seamlessly with other modern tools used in genetic research. The developers have also made the underlying code and the pre-trained models freely available, ensuring that the method remains accessible and can be improved by the community in the future. By updating the infrastructure without changing the science, the researchers have extended the life of a critical tool, ensuring that the ability to map the active switches of the genome remains available to everyone who needs it.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →