strainy
strainy copied to clipboard
Don't use wildcard imports + parameters naming
Don't use wildcard imports like from metaphase.XX import *
. This makes the code difficult to read and prone to errors.
Instead, either use import metaphase.XX as YY
m and then use YY.funcionZ()
, or import specific functions as from metaphase.XX impot functionZ
.
This in particular important for the parameters in params.py
- I suggest to either use module import and then do params.PARAM_NAME
or have a single dictionary with all parameters that you can import.
In addition, parameters should be given informative names (e.g. strong_cluster_min_reads
, but not I
or R
.