Skip to content

Commit

Permalink
Added one other family of protein (ABC)
Browse files Browse the repository at this point in the history
  • Loading branch information
odannis committed Apr 23, 2022
1 parent d556e32 commit 30f616d
Show file tree
Hide file tree
Showing 224 changed files with 14,688 additions and 370,028 deletions.
580 changes: 284 additions & 296 deletions 21_states/.ipynb_checkpoints/Plot_cluster_contact-checkpoint.ipynb

Large diffs are not rendered by default.

737 changes: 476 additions & 261 deletions 21_states/.ipynb_checkpoints/Plot_cluster_partners-checkpoint.ipynb

Large diffs are not rendered by default.

35 changes: 21 additions & 14 deletions 21_states/.ipynb_checkpoints/utility-checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import matplotlib.pyplot as plt


def set_size(width, fraction=1, subplots=(1, 1), scale_height = 1):
def set_size(width, fraction = 1, subplots = (1, 1), scale_height = 1, width_inch = None):
"""Set figure dimensions to avoid scaling in LaTeX.
Parameters
Expand All @@ -20,26 +20,33 @@ def set_size(width, fraction=1, subplots=(1, 1), scale_height = 1):
fig_dim: tuple
Dimensions of figure in inches
"""
if width == 'thesis':
width_pt = 426.79135
elif width == 'beamer':
width_pt = 307.28987
elif width == "article":
width_pt = 430.00462
if width_inch is None:
if width == 'thesis':
width_pt = 426.79135
elif width == 'beamer':
width_pt = 307.28987
elif width == "article":
width_pt = 430.00462
else:
width_pt = width

# Width of figure (in pts)
fig_width_pt = width_pt * fraction
# Convert from pt to inches
inches_per_pt = 1 / 72.27
# Figure width in inches
fig_width_in = fig_width_pt * inches_per_pt

else:
width_pt = width
fig_width_in = width_inch


# Width of figure (in pts)
fig_width_pt = width_pt * fraction
# Convert from pt to inches
inches_per_pt = 1 / 72.27

# Golden ratio to set aesthetic figure height
# https://disq.us/p/2940ij3
golden_ratio = (5**.5 - 1) / 2

# Figure width in inches
fig_width_in = fig_width_pt * inches_per_pt

# Figure height in inches
fig_height_in = fig_width_in * golden_ratio * (subplots[0] / subplots[1]) * scale_height

Expand Down

Large diffs are not rendered by default.

Binary file not shown.
Empty file.
6,851 changes: 0 additions & 6,851 deletions 21_states/Code_for_cluster/Extract_contact_pdb_HK-RR/3DGE.pdb

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

6,056 changes: 3,098 additions & 2,958 deletions 21_states/Code_for_cluster/Extract_contact_pdb_HK-RR/Contact.ipynb

Large diffs are not rendered by default.

Binary file not shown.
Loading

0 comments on commit 30f616d

Please sign in to comment.