Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Beatrice Tan
CNAprioritization
Commits
a6e291a4
Commit
a6e291a4
authored
Jan 30, 2018
by
Beatrice Tan
Browse files
Updated venn diagram.
parent
9eede366
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/Reports.py
View file @
a6e291a4
...
...
@@ -195,10 +195,20 @@ class ReportTools:
plt
.
savefig
(
plot_file
,
dpi
=
300
)
plt
.
close
()
def
venn_overlap
(
self
,
gene_lists
,
out_venn
):
def
venn_overlap
(
self
,
gene_lists
,
out_venn
):
#maybe add known genes?
"""Compare the genes detected by GISTIC and those by RUBIC."""
venn2
([
set
(
gene_lists
[
0
]),
set
(
gene_lists
[
1
])],
set_labels
=
(
'GISTIC2'
,
'RUBIC'
))
plt
.
savefig
(
out_venn
)
plt
.
subplots
(
figsize
=
(
7
,
7
))
c
=
venn2
([
set
(
gene_lists
[
0
]),
set
(
gene_lists
[
1
])],
set_labels
=
(
'GISTIC2'
,
'RUBIC'
))
c
.
get_patch_by_id
(
'10'
).
set_color
(
'#5975A4'
)
c
.
get_patch_by_id
(
'01'
).
set_color
(
'#5F9E6E'
)
c
.
get_patch_by_id
(
'10'
).
set_edgecolor
(
'#4c4c4c'
)
c
.
get_patch_by_id
(
'01'
).
set_edgecolor
(
'#4c4c4c'
)
c
.
get_patch_by_id
(
'10'
).
set_alpha
(
1
)
c
.
get_patch_by_id
(
'01'
).
set_alpha
(
1
)
c
.
get_patch_by_id
(
'11'
).
set_color
(
'#857AAA'
)
c
.
get_patch_by_id
(
'11'
).
set_edgecolor
(
'none'
)
c
.
get_patch_by_id
(
'11'
).
set_alpha
(
1
)
plt
.
savefig
(
out_venn
,
dpi
=
300
)
plt
.
close
()
def
compare_overlapping_regions
(
self
,
parsed_results
,
biomart_file
,
overlap_file
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment