Skip to content

Instantly share code, notes, and snippets.

View elipapa's full-sized avatar

Eliseo Papa elipapa

View GitHub Profile
@elipapa
elipapa / .bashrc
Last active November 28, 2017 15:47
# Sensible Bash - An attempt at saner Bash defaults
# Repository: https://github.com/mrzool/bash-sensible
## GENERAL OPTIONS ##
set -o noclobber
shopt -s checkwinsize
PROMPT_DIRTRIM=2
bind Space:magic-space
shopt -s globstar 2> /dev/null
shopt -s nocaseglob;
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: apiproxy-eu
spec:
replicas: 1
template:
metadata:
labels:
name: apiproxy-eu
apiVersion: v1
kind: Service
metadata:
name: apiproxysvc-node
labels:
name: apiproxysvc-node
spec:
type: NodePort
ports:
- name: http
@elipapa
elipapa / ensemblmysql2JSON.py
Created May 8, 2018 15:56
Build a JSON lookup table for all genes in ensembl
'''
standalone script to create a genes JSON object.
'''
#!/usr/bin/env python3
import os
import time
import pandas as pd
from sqlalchemy import create_engine
@elipapa
elipapa / get_efo_labels.py
Created August 6, 2018 13:00
create a EFO code <=> labels mapping file
# pip install ontoma
from ontoma.interface import OnToma
ot = OnToma()
# the following will download the latest EFO OBO file from github
# and output a tab separated files of labels <=> codes to a file
for k,v in ot.efo_to_name.items():
print(k,v,file=open('efolabel.txt','a'),sep="\t")
@elipapa
elipapa / recsys intro resources.md
Created April 17, 2019 12:45
recsys intro resources
{
"basics": {
"name": "Eliseo Papa",
"label": "Director AI Engineering at AstraZeneca",
"picture": "",
"email": "[email protected]",
"phone": "",
"website": "",
"summary": "I trained as a biomedical engineer and then as a clinician. Now I use my background to connect the dots between medicine and engineering. I work on building AI and data science product that can speed up the drug development process and bring medicines in the hands of patients faster.",
"location": {