Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rokroskar
rokroskar / NA12878_2.bam
Last active November 14, 2019 14:27
htsget as a git filter
# htsget pointer file
url: http://htsnexus.rnd.dnanex.us/v1/reads/BroadHiSeqX_b37/NA12878
reference_name: 2
start: 1000
end: 200000
with import <nixpkgs> { system = "x86_64-linux"; };
let ubuntu = pkgs.dockerTools.pullImage {
imageName = "ubuntu";
finalImageTag = "focal";
imageDigest = "sha256:9d6a8699fb5c9c39cf08a0871bd6219f0400981c570894cd8cbea30d3424a31f";
sha256 = "1yv17hm2y82kdg4cypkvw3xi2hh22l1kkvvbqgmhf8wxvbs4bya1";
};
in
pkgs.dockerTools.buildImage {
name = "jupyter";
@rokroskar
rokroskar / User-pod-stats.json
Created December 15, 2021 16:48
Renku grafana dashboards
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
digraph G {
compound = true;
rankdir=LR
user -> analyst[label="provide question\n & data"]
analyst -> QC[lhead=cluster_0];
subgraph cluster_0 {
style=filled;
color=lightgrey;
@rokroskar
rokroskar / main.py
Created February 28, 2024 22:53
ToF 8x8 sensor data over USB
#
# This code goes on the Pico. See https://learn.pimoroni.com/article/micropython-and-vl53l5cx for
# information on how to get the VL53LCX sensor set up.
#
import micropython
import sys
import ustruct
import breakout_vl53l5cx