diff --git a/src/nt_composition/__main__.py b/src/nt_composition/__main__.py index 8ebfcd86097db8e59fa582c96479b1a1e7b40748..5f4859a4691bd9213c4c43aa3013f8216035e0b3 100644 --- a/src/nt_composition/__main__.py +++ b/src/nt_composition/__main__.py @@ -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