Skip to content

Instantly share code, notes, and snippets.

View alexpreynolds's full-sized avatar
👋
Hello

Alex Reynolds alexpreynolds

👋
Hello
  • Altius Institute for Biomedical Sciences
  • Seattle, WA USA
  • 13:07 (UTC -07:00)
View GitHub Profile
@alexpreynolds
alexpreynolds / chromCor2.Rscript
Created May 28, 2020 21:33
Compute the Pearson correlation of two BED files (raw text or archived/compressed)
#! /usr/bin/env Rscript
# -*- mode: R -*-
# Above tells emacs to go into R mode for editing (must be second line).
##
## chromCor:
##
## Compute correlation of two jarched bed files along a chromosome (default chr19).
##
## To run this script, turn the execute bit on and run just as any other script file. The Rscript
@alexpreynolds
alexpreynolds / test2.json
Created May 15, 2020 20:24
Categorical multivec example (epilogos-specific)
{
"editable" : false,
"zoomFixed" : false,
"trackSourceServers" : [
"/api/v1",
"http://higlass.io/api/v1"
],
"exportViewUrl" : "/api/v1/viewconfs/",
"views" : [
{
@alexpreynolds
alexpreynolds / test.json
Last active May 15, 2020 19:35
Categorical multivec viewconf
{
"editable": false,
"zoomFixed": false,
"trackSourceServers": [
"/api/v1",
"http://higlass.io/api/v1"
],
"exportViewUrl": "/api/v1/viewconfs/",
"views": [
{
@alexpreynolds
alexpreynolds / hidden.json
Created December 15, 2019 19:43
HiGlass test viewconfs for label rendering bug
{
"editable" : false,
"zoomFixed" : false,
"trackSourceServers" : [
"/api/v1",
"http://higlass.io/api/v1"
],
"exportViewUrl" : "/api/v1/viewconfs/",
"views" : [
{
{
"editable": false,
"zoomFixed": false,
"trackSourceServers": [
"/api/v1",
"http://higlass.io/api/v1"
],
"exportViewUrl": "/api/v1/viewconfs/",
"views": [
{
{
"editable": false,
"zoomFixed": false,
"trackSourceServers": [
"/api/v1",
"http://higlass.io/api/v1"
],
"exportViewUrl": "/api/v1/viewconfs/",
"views": [
{
@alexpreynolds
alexpreynolds / React THREE.js demo
Created March 5, 2019 23:20
Demonstration of possible cubemaker revision basis
import ReactDOM from 'react-dom'
import * as THREE from 'three/src/Three'
import React, { useState, useRef, useMemo } from 'react'
// A THREE.js React renderer, see: https://github.com/drcmda/react-three-fiber
import { Canvas, useRender } from 'react-three-fiber'
// A React animation lib, see: https://github.com/react-spring/react-spring
import { useSpring, animated } from 'react-spring/three'
import './styles.css'
@alexpreynolds
alexpreynolds / localPhantomJSTest.js
Created February 18, 2019 08:45
PhantomJS binding SVG export test
"use strict";
var url = "http://explorer.altius.org/app/?config=SUFTOi4wT5S79NgyLKPTcg&chr=chr3&start=181500000&stop=181800000";
//var url = 'http://higlass.io/app';
var page = require('webpage').create();
page.viewportSize = {
width: 1024,
height: 1280
@alexpreynolds
alexpreynolds / reference_bedmap_make_overlap_figures.Rscript
Created December 22, 2018 07:44
Make figures for BEDOPS `bedmap` documentation
#!/usr/bin/env Rscript
args <- commandArgs(TRUE)
if (length(args) != 3) {
cat("Usage: reference_bedmap_make_overlap_figure.Rscript map.bed ref.bed figure.pdf\n")
q(status=-1)
}
mapFn <- args[1]
refFn <- args[2]
@alexpreynolds
alexpreynolds / localSeleniumTestPNG.py
Created October 5, 2018 21:00
Selenium Python binding PNG export test
#!/usr/bin/env python
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.common.exceptions import TimeoutException
import sys
import time
import base64