Skip to content

Instantly share code, notes, and snippets.

View willgdjones's full-sized avatar
🎯
Focusing

William Jones willgdjones

🎯
Focusing
  • Sano Genetics
  • Cambridge
View GitHub Profile
@app.route('/geneplaza/login', methods=['GET', 'POST'])
@login_required
def geneplaza_login():
scopes = app.config['DEFAULT_SCOPES']
redirect_uri = app.BASE_CLIENT_URL + 'geneplaza/auth'
client_id = app.config['GENEPLAZA_CLIENT_ID']
submit_url = f"https://www.geneplaza.com/api/auth?response_type=code&client_id={client_id}&redirect_uri={redirect_uri}&scope=dataset"
return redirect(submit_url)
@willgdjones
willgdjones / plotly_bug.py
Created June 6, 2018 14:17
A small, reproducible example that demonstrates the behaviour described in: https://community.plot.ly/t/multiple-callbacks-executed-by-a-single-input-change/10673
import numpy as np
import pandas as pd
from datetime import datetime as dt
import pytz
import dash
import dash_core_components as dcc
import dash_html_components as html
import plotly.graph_objs as go
from plotly import tools
@willgdjones
willgdjones / plotly_bug.py
Created June 6, 2018 14:17
A small, reproducible example that demonstrates the behaviour described in: https://community.plot.ly/t/multiple-callbacks-executed-by-a-single-input-change/10673
import numpy as np
import pandas as pd
from datetime import datetime as dt
import pytz
import dash
import dash_core_components as dcc
import dash_html_components as html
import plotly.graph_objs as go
from plotly import tools
"""Socket test"""
whatR version 3.4.1 (2017-06-30)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu precise (12.04.5 LTS)
Matrix products: default
BLAS: /usr/lib/atlas-base/libf77blas.so.3gf.0
LAPACK: /usr/lib/atlas-base/atlas/liblapack.so.3gf.0
locale:
[1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C
function (package = NULL)
{
z <- list()
z$R.version <- R.Version()
z$platform <- z$R.version$platform
if (nzchar(.Platform$r_arch))
z$platform <- paste(z$platform, .Platform$r_arch, sep = "/")
z$platform <- paste0(z$platform, " (", 8 * .Machine$sizeof.pointer,
"-bit)")
z$locale <- Sys.getlocale()
### Keybase proof
I hereby claim:
* I am willgdjones on github.
* I am willgdjones (https://keybase.io/willgdjones) on keybase.
* I have a public key ASCbDvDv8s1rCDU6-1nNW9MKMAiob6syw-ERaXSLA17_XQo
To claim this, I am signing this object:
./vg construct -r /lustre/scratch113/projects/graphs/yeast/data/SGD_2010.fasta \
-v /lustre/scratch113/projects/graphs/yeast/data/SGRP2-cerevisiae-freebayes-snps-Q30-GQ30.vcf.gz \
-m 1000 -a > output/yeastgraph.vg\
./vg mod -pl 16 -e 3 output/yeastgraph.vg \
| ./vg mod -S -l 32 - \
| ./vg kmers -gB -k 16 -F -H 1000000000 -T 1000000001 - \
> output/yeastgraph.graph /
@willgdjones
willgdjones / gist:7232151
Created October 30, 2013 12:51
Logs from running vantage up app
➜ ybm-vagrant git:(master) ✗ vagrant up app
Bringing machine 'app' up with 'virtualbox' provider...
[app] Importing base box 'grahammc-omnibus-precise64'...
[app] Matching MAC address for NAT networking...
[app] Setting the name of the VM...
[app] Clearing any previously set forwarded ports...
Pruning invalid NFS exports. Administrator privileges will be required...
Password:
[app] Creating shared folders metadata...
[app] Clearing any previously set network interfaces...