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

src/find_interaction_cluster/clip_figures/__main__.py: add a parameter permutation

parent fece3a1d
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ def clip_analysis(clip_folder: str, weight: int,
global_weight: int, same_gene: bool = True,
feature: str = "exon",
project: str = "GSM1018963_GSM1018964",
test_type: str = "permutation",
test_type: str = "permutation", iteration: int = 10000,
logging_level: str = "DEBUG") -> None:
"""
Create the final figure
......@@ -33,14 +33,18 @@ def clip_analysis(clip_folder: str, weight: int,
:param clip_folder: A folder containing clip file
:param test_type: The kind of test to perform for frequency analysis. \
(default 'lm') (choose from 'lm', 'permutation')
:param iteration: The number of iteration
:param logging_level: The level of data to display (default 'DISABLE')
:return: The final dataframe that can be used to create clip figures
"""
clip_folder = Path(clip_folder)
if test_type == "lm":
raise NotImplementedError("test_type for lm is not implemented !")
if not clip_folder.is_dir():
raise NotADirectoryError(f"{clip_folder} is not an existing directory")
clip_folder_analysis(clip_folder, project, weight, global_weight,
same_gene, feature, test_type, logging_level)
same_gene, feature, test_type, iteration,
logging_level)
clip_analysis()
\ 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