Skip to content
Snippets Groups Projects
Commit 1df9b4d5 authored by nfontrod's avatar nfontrod
Browse files

src/nt_composition/__main__.py: add a new parameter to launcher function

parent d2eccc07
No related branches found
No related tags found
No related merge requests found
......@@ -10,16 +10,24 @@ nucleotide composition of co-localised exons
from .config import ConfigNt
from .make_nt_correlation import create_all_frequency_figures
from .get_projects_interaction import get_interactions_number
import lazyparser as lp
def launcher(logging_level: str = "DISABLE"):
@lp.parse(weight='weight > 0')
def launcher(weight: int = 1, global_weight: int = 0,
logging_level: str = "DISABLE"):
"""
Launch the creation of density file.
:param The weight of interaction to consider
:param global_weight: The global weight to consider. if \
the global weight is equal to 0 then then density figure are calculated \
by project, else all projet are merge together and the interaction \
seen in `global_weight` project are taken into account
:param logging_level: The level of data to display
"""
# get_interactions_number(logging_level)
create_all_frequency_figures(ConfigNt.cpu, logging_level)
get_interactions_number(weight, logging_level)
create_all_frequency_figures(ConfigNt.cpu, weight, global_weight,
logging_level)
launcher('DISABLE')
\ No newline at end of file
launcher()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment