Commit a6e291a4 authored by Beatrice Tan's avatar Beatrice Tan
Browse files

Updated venn diagram.

parent 9eede366
......@@ -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):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment