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

src/find_interaction_cluster/clip_figures/clip_compo_analyser.py: fix...

src/find_interaction_cluster/clip_figures/clip_compo_analyser.py: fix create_figure_4_clip_table function
parent ef79642f
No related branches found
No related tags found
No related merge requests found
......@@ -385,13 +385,14 @@ def create_figure_4_clip_table(clip_table_file: Path, feature: str,
:param df_id_ctrl: A dataframe indicating control exons
:param write_comp_table: True to save comp table, false else
"""
logging.info(f"Working on {clip_table_file.name} - {cpnt} ({cpnt_type})")
df_group = get_interest_groups(clip_table_file, feature,
threshold_feature, default_groups)
if df_group is None:
return None
if feature == "gene":
df_group["id_gene"] = df_group["id_gene"].astype(int)
df_comp["id_gene"] = df_comp["id_gene"].astype(int)
if df_group is None:
return None
df_group = pd.concat([df_group, df_id_ctrl], ignore_index=True)
if len(np.unique(df_group[f"id_{feature}"].values)) != df_group.shape[0]:
......
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