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

src/figures_utils/exons_interactions.py: modification of...

src/figures_utils/exons_interactions.py: modification of get_every_events_4_a_sl to recover both up and down exons
parent 1476593a
No related branches found
No related tags found
No related merge requests found
......@@ -171,13 +171,19 @@ def get_every_events_4_a_sl(cnx: sqlite3.Connection, sf_name: str,
exons_list += ase_event
washed_exon_list = washing_events(exons_list)
reg_exon_list = []
for exon in washed_exon_list:
if exon[0] == regulation:
reg_exon_list.append(exon[2] + "_" + exon[3])
sf_reg = dict()
sf_reg[sf_name + "_" + regulation] = reg_exon_list
if regulation in ["up", "down"]:
reg_exon_list = [
exon[2] + "_" + exon[3]
for exon in washed_exon_list
if exon[0] == regulation
]
else:
reg_exon_list = [
exon[2] + "_" + exon[3]
for exon in washed_exon_list
]
sf_reg = {sf_name + "_" + regulation: reg_exon_list}
number_exons = sf_name + "_" + regulation + "_" + str(len(reg_exon_list))
return sf_reg, number_exons
......
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