Skip to content
Snippets Groups Projects
Commit 7ae73520 authored by nfontrod's avatar nfontrod
Browse files

src/find_interaction_cluster/clip_figures/clip_compo_launcher.py: add a parameter expression_file

parent a824f6dc
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ import multiprocessing as mp
def launcher(clip_result_folder: str, feature: str,
threshold_feature: int, default_groups: int,
cpnt_type: str, region: str = "gene",
ps: int = 1, display_size: bool=False,
ps: int = 1, display_size: bool=False, expression_file: str = "",
logging_level: str = "DISABLE") -> None:
"""
Create multiple composition figures from a result clip folder.
......@@ -38,6 +38,9 @@ def launcher(clip_result_folder: str, feature: str,
:param ps: The number of processes to create (default 1)
:param display_size: True to display the size of the community. \
False to display nothing. (default False)
:param expression_file: A file containing the expression values of \
genes (default ''). If this file is provided, then the weakly expressed \
genes are filtered out from the analysis.
:param logging_level: The level of data to display (default 'DISABLE')
"""
clip_result_folder = Path(clip_result_folder)
......@@ -45,7 +48,7 @@ def launcher(clip_result_folder: str, feature: str,
raise NotADirectoryError(f"Directory {clip_result_folder} don't exist")
create_multiple_figures(clip_result_folder, feature, threshold_feature,
default_groups, cpnt_type, region, ps,
display_size, logging_level)
display_size, expression_file, logging_level)
if __name__ == "__main__":
......
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