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/perl -w | |
use strict; | |
# Utility to help format my notes, progress, results etc in atomic chunks, | |
# so they can be organized by project, data, technology, "todo" lists, etc. | |
if (@ARGV < 1) { | |
die " Usage: $0 <new | parse> \n"; | |
# Hidden optional arguments, not tested lately: [tag-list or +/-days]\n"; | |
} |
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
p.todo { color:red; margin:0; padding:0; font-size:0.8em; } | |
p.done { color:green; margin:0; padding:0; font-size:0.7em; } | |
p.info { color:gray; margin:0; padding:0; font-size:0.8em; } | |
p.tags { color:gray; margin:0; padding:0; font-size:0.7em; } | |
p.cwd{ color:gray; margin:0; padding:0; font-size:0.8em; } | |
p.src { color:gray; margin:0; padding:0; font-size:0.8em; } | |
p.subject { color:black; margin:0; padding:0; font-size:1.5em; font-weight:bolder; } | |
.novel { color:green; font-weight:bolder; } | |
.xfac { color:#B80000; font-weight:bolder; } | |
.jaspar { color:#3399FF; font-weight:bolder; } |
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
weblocal /home/areynolds/public_html | |
webroot /~areynolds | |
blogdir blog |
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 | |
import gzip | |
ASSEMBLY = "hg38" | |
chromosome_sizes = { "hg38" : | |
[ | |
{ | |
"name": 1, | |
"size": 248956422 |
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 | |
import sys | |
import math | |
import pandas as pd | |
import numpy as np | |
from scipy import stats | |
import json | |
from json import JSONEncoder | |
import zipfile |
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 | |
import subprocess | |
import sys | |
from os import listdir | |
from os.path import isfile, join | |
import time | |
# image, crop dimensions | |
img_dir = sys.argv[1] |
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 | |
import re | |
import os | |
import pandas as pd | |
in_fn = "../data/dhs_bed.bed" | |
column_index_to_split_on = 8 | |
out_dir = "../results/split" |
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 | |
import numpy as np | |
from numpy.core.fromnumeric import compress | |
import umap | |
import h5py | |
import string | |
import random | |
''' |
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
>42_comp5_1000_0 | |
GAAATGGAATATTGGGTGGTAAAAGCCTGTGGTTCCCGTAGTTTAGGAGGCACAGATGGC | |
CTCATTACAGCCTTCAGATTCAGTACCTCAAAGAAATTTTTTTTTTTTTTGAGACAGGGT | |
TTCAGTTGGGAGCCACGATTGCCTAGCAAAACCACAGCACTCCATCCTGCAGGACATAGT | |
GAAACTGTTCTCTGAAAATA | |
>42_comp5_1000_1 | |
CAGAAGTGTGGTTAGGTGGGTCATGCGTTCTATGACCTGTGCAACCAGGAAGTGAATGAC | |
GGTTCAGAGTGGAGACGTTCTAGAAAAATGGTACTGGCTGCTGAAGCAGGTCAGTATAAA | |
CATTTCAGCTACTTTGAGTGTTTCAGGAGGTGTGAAAATGACAACAGAAACTAGCTAGAG | |
GTGCTCAAAGATTTGGAGAA |
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
install.packages("quantmod") | |
library("quantmod") | |
x <- seq(0, 2*pi, 0.1) | |
y <- sin(x) | |
y[findPeaks(y)] | |
# [1] 0.9916648 | |
y[findPeaks(-y)] | |
# [1] -0.9961646 |