Skip to content

Instantly share code, notes, and snippets.

View carolinecunningham's full-sized avatar

Caroline Cunningham carolinecunningham

  • Massachusetts Institute of Technology
View GitHub Profile
@carolinecunningham
carolinecunningham / boxplots.py
Last active September 19, 2020 04:28
create graphs for motifs
####warning: only can be run locally & may depend on external code. this is just a place to store this
############### boxplot 1: APOBEC ####################
apobec_ints = {}
apobec = ["BLAC_apobec", "stomach_apobec", "breast_apobec", "cervix_apobec", "colonfin_apobec", "pancreas_apobec",
"glioblast_apobec", "HNCarcinoma_apobec", "pancreatic_apobec", "liver_apobec", "lung_apobec", "glioma_apobec",
"prostate_apobec", "skin_apobec", "thyroid_apobec"]
@carolinecunningham
carolinecunningham / Motif Logo
Created October 30, 2018 23:48
makes logo of DNA given original and mutated DNA sequence
from itertools import cycle
from flask import *
import multiprocessing
import json
import requests
import urllib
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
def mp_ensembl_worker(raw_mutations_chunk):
@carolinecunningham
carolinecunningham / test_motif_sig_api.py
Created August 9, 2018 21:41
API for motifs and signatures
import requests
import json
import csv
import glob
# MUTAGENE_URL = "https://www.ncbi.nlm.nih.gov/research/mutagene"
#MUTAGENE_URL = "https://dev.ncbi.nlm.nih.gov/research/mutagene"
MUTAGENE_URL_M = "http://mwebdev2/research/mutagene"
# MUTAGENE_URL = "http://localhost:5000"
MUTAGENE_URL = "https://www.ncbi.nlm.nih.gov/research/mutagene"