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 | |
from keras import backend as K | |
from keras.legacy import interfaces | |
import keras | |
from keras.layers import Layer, InputLayer, Input | |
import tensorflow as tf | |
from keras.engine.topology import Node | |
from keras.utils import conv_utils | |
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 | |
""" | |
Guide users through installing the installation dependencies | |
""" | |
# Unfortunately, we can't rely on setuptools' install_requires | |
# keyword, because matplotlib doesn't properly install its dependencies | |
from subprocess import check_call, CalledProcessError | |
import sys | |
import os |
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
{ | |
"metadata": { | |
"name": "ExampleSeqFigure" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
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
nbowlers = 5 | |
nscores = 3 | |
team_score = 0 | |
for bowlernum in range(nbowlers): | |
bowler_scores = [] | |
for game_num in range(nscore): | |
prompt_string = “Please enter Bowler %i’s game score in game %i: \n” % (bowlernum+1, game_num+1) #because counting starts at zero | |
score = int(raw_input(prompt_string)) | |
bowler_scores.append(score) #keep track of this bowler |
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
function dydt=FBmodel(t,y) | |
%global y2 | |
% Model file to be initiated by FBstart.m | |
% extract variable from y-vector | |
X=y(1); | |
S=y(2); | |
V=y(3); |
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
from math import log, exp | |
from mpmath import loggamma | |
def logchoose(ni, ki): | |
try: | |
lgn1 = loggamma(ni+1) | |
lgk1 = loggamma(ki+1) | |
lgnk1 = loggamma(ni-ki+1) | |
except ValueError: | |
#print ni,ki |
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
""" | |
PWMSearch | |
Searches through a fasta sequence for the relevant Position Weight Matrices | |
from the Jaspar Database. | |
""" | |
from __future__ import division | |
from optparse import OptionParser |
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
from paver.easy import * | |
import os.path, os | |
import csv | |
import ruffus | |
from collections import defaultdict | |
from types import GeneratorType, DictType | |
from itertools import ifilter | |
options( |
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 time, re, logging | |
from optparse import OptionParser | |
import os.path | |
import subprocess | |
from mechanize import Browser | |
from mechanize._form import ControlNotFoundError | |
USER_NAME = '' | |
PASSWORD = '' | |