How to Design Powerful Scripts in Genetics
https://towardsdatascience.com/how-to-design-powerful-scripts-in-genetics-3a81907d3321
The design of a script should have the user in mind. Often, when we write a script which solves a particular problem, the chances are it could solve a problem for someone else too. With this in mind, we should consider how easy our program is to use by other people. Following the general theme of my tutorials, the examples will be genetic based, but the ideas in this article can be applied more broadly to any program design.
Consider the following scenario. I want to search a DNA sequence and determine whether two restriction enzyme sites are present above a specified threshold. For example, are the restriction enzymes sequences for EcoRI and HindIII present in a DNA sequence more than 5, 10, or 15 times?