This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make your imports | |
import matplotlib.pyplot as plt | |
import matplotlib | |
import numpy as np | |
# Based on this image | |
# https://www.google.com/imgres?imgurl=https%3A%2F%2Fqph.fs.quoracdn.net%2Fmain-qimg-88f77484a87d55f1cd615eb2ca2a8441&imgrefurl=https%3A%2F%2Fwww.quora.com%2FWhat-makes-some-amino-acids-polar-and-nonpolar&tbnid=I9Lczh2TViC1rM&vet=12ahUKEwi1qfv8x_fzAhUIr6QKHfN-A0cQMygDegUIARC4AQ..i&docid=Kf-tNnUawtUyBM&w=624&h=769&q=polar%20and%20non%20polar%20amino%20acids&client=firefox-b-d&ved=2ahUKEwi1qfv8x_fzAhUIr6QKHfN-A0cQMygDegUIARC4AQ | |
NEGATIVE_AA = "DE" | |
HYDROPHILIC_AA = "AVILMFYW" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import pandas as pd | |
import statsmodels.api as sm | |
from bokeh.application import Application | |
from bokeh.application.handlers import FunctionHandler | |
from bokeh.io import output_notebook, show | |
from bokeh.layouts import gridplot | |
from bokeh.models import ( | |
ColumnDataSource, CustomJS, HoverTool, LinearAxis, Select | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
from distutils.core import setup | |
from distutils.dir_util import copy_tree | |
from py2exe.build_exe import py2exe | |
import glob | |
import zlib | |
import shutil |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Hi all, | |
# this is the Python code I used to make the visualization "Temperature circle" | |
# (https://twitter.com/anttilip/status/892318734244884480). | |
# Please be aware that originally I wrote this for my tests only so the | |
# code was not ment to be published and is a mess and has no comments. | |
# Feel free to improve, modify, do whatever you want with it. If you decide | |
# to use the code, make an improved version of it, or it is useful for you | |
# in some another way I would be happy to know about it. You can contact me | |
# for example in Twitter (@anttilip). Unchecked demo data (no quarantees) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import matplotlib as mpl | |
import seaborn as sns | |
from itertools import combinations, cycle, product | |
mpl_palette=['r', 'g', 'b', 'c', 'm','y'] | |
cblind_palette=[(230,159,0),(86,180,233),(0,158,115),(240,228,66),(0,114,178),(213,94,0),(204,121,167)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""strip outputs from an IPython Notebook | |
Opens a notebook, strips its output, and writes the outputless version to the original file. | |
Useful mainly as a git filter or pre-commit hook for users who don't want to track output in VCS. | |
This does mostly the same thing as the `Clear All Output` command in the notebook UI. | |
LICENSE: Public Domain |