This file contains 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 argparse | |
import os | |
import fasttext | |
from sklearn.base import BaseEstimator | |
from sklearn.metrics import f1_score | |
from sklearn.model_selection import cross_val_score, StratifiedKFold | |
def read_data(data_dir): |
This file contains 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
gem install puma -- --with-cppflags=-I/usr/local/opt/openssl/include --with-ldflags=-L/usr/local/opt/openssl/lib |
This file contains 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
<?php | |
if (isset($_GET['pmid'])) { | |
$json = file_get_contents('http://www.ncbi.nlm.nih.gov/myncbi/comments/?' . http_build_query(array( | |
'p$rq' => 'CommL.CommServer:com', | |
'cmd' => 'get', | |
'recid' => $_GET['pmid'], | |
))); | |
$data = json_decode($json, true); |
This file contains 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
# Loading MapInfo .mid files | |
library(rgdal) # rgdal library | |
drvs <- ogrDrivers() # ogr capabilities | |
drvs[grep("Inf", drvs$name),] # test MapInfo reading capability of gdal | |
f <- "folder/filename.mid" # filename | |
l <- ogrListLayers(f) # layer name | |
sp_object <- readOGR(f, layer = l[[1]]) # load! |
This file contains 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
library(ggplot2) | |
ggplot(data.df, aes(x=factor(time), y=value)) + | |
geom_boxplot(aes(fill=measure)) + | |
xlab("Time (time units)") + ylab("Value (value units)") + | |
scale_fill_discrete(name = "Measure") |
This file contains 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
PREFIX category: <http://dbpedia.org/resource/Category:> | |
PREFIX dcterms: <http://purl.org/dc/terms/> | |
PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> | |
PREFIX dbpedia-owl: <http://dbpedia.org/ontology/> | |
PREFIX dbpedia: <http://dbpedia.org/resource/> | |
SELECT ?college ?lat ?long | |
WHERE { | |
{ |
This file contains 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
#!/bin/bash | |
# | |
# Author: Sean Davis <seandavi@gmail.com> | |
# | |
# Uses named pipes (FIFO) to reduce storage needs | |
# to call varscan somatic | |
# Some details may need to be edited to meet particular needs | |
# call with the following parameters | |
# 1) The FASTA file containing the reference genome | |
# 2) The Normal bam file |