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

src/find_interaction_cluster/clip_figures/__main__.py: add a parameter cell line

parent 387d5650
Branches
No related tags found
No related merge requests found
...@@ -16,6 +16,7 @@ from .clip_analyser import clip_folder_analysis ...@@ -16,6 +16,7 @@ from .clip_analyser import clip_folder_analysis
def clip_analysis(clip_folder: str, weight: int = -1, def clip_analysis(clip_folder: str, weight: int = -1,
global_weight: int = -1, same_gene: bool = True, global_weight: int = -1, same_gene: bool = True,
inflation: float = 1.5, inflation: float = 1.5,
cell_line: str = "ALL",
feature: str = "exon", feature: str = "exon",
project: str = "GSM1018963_GSM1018964", project: str = "GSM1018963_GSM1018964",
test_type: str = "permutation", iteration: int = 10000, test_type: str = "permutation", iteration: int = 10000,
...@@ -34,6 +35,8 @@ def clip_analysis(clip_folder: str, weight: int = -1, ...@@ -34,6 +35,8 @@ def clip_analysis(clip_folder: str, weight: int = -1,
:param same_gene: Say if we consider as co-localised, exons within the \ :param same_gene: Say if we consider as co-localised, exons within the \
same gene (True) or not (False) (default False) same gene (True) or not (False) (default False)
:param inflation: The inflation parameter (default 1.5) :param inflation: The inflation parameter (default 1.5)
:param cell_line: Interactions are only selected from projects made on \
a specific cell line (ALL to disable this filter). (default ALL)
:param feature: The feature we want to analyse (default 'exon') :param feature: The feature we want to analyse (default 'exon')
:param clip_folder: A folder containing clip file :param clip_folder: A folder containing clip file
:param test_type: The kind of test to perform for frequency analysis. \ :param test_type: The kind of test to perform for frequency analysis. \
...@@ -59,8 +62,8 @@ def clip_analysis(clip_folder: str, weight: int = -1, ...@@ -59,8 +62,8 @@ def clip_analysis(clip_folder: str, weight: int = -1,
if not clip_folder.is_dir(): if not clip_folder.is_dir():
raise NotADirectoryError(f"{clip_folder} is not an existing directory") raise NotADirectoryError(f"{clip_folder} is not an existing directory")
clip_folder_analysis(clip_folder, project, weight, global_weight, clip_folder_analysis(clip_folder, project, weight, global_weight,
same_gene, inflation, feature, test_type, iteration, same_gene, inflation, cell_line, feature, test_type,
display_size, community_file, sl_reg, ps, iteration, display_size, community_file, sl_reg, ps,
logging_level) logging_level)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment