Skip to content

Instantly share code, notes, and snippets.

@rchikhi
rchikhi / estimate-insert-sizes
Last active October 25, 2022 06:16
Quickly estimates insert sizes of read datasets, given some sequence(s) they can be mapped to. Requires BWA. Short usage: <reference> <*.fastq>
#!/usr/bin/env python
doc = """
Quickly estimates insert sizes of read datasets, given some sequence(s) they can be mapped to.
Author: Rayan Chikhi
short usage: <reference> <*.fastq>
example:
estimate-insert-sizes contigs.fa readsA_1.fq readsA_2.fq readsB_1.fq readsB_2.fq
@ajfisher
ajfisher / _Pebble controlled NeoPixels using ESP8266.md
Last active January 3, 2017 23:51
Using a pebble watch to control NeoPixel (WS2812 ) LEDs via an ESP8266 controller
@100ideas
100ideas / WLA_rs333_sequencing
Created June 15, 2015 19:08
Autodesk WetLabAccelerator omniprotocol testing - rs333 sequencing from buccal sample
{
"metadata": {
"id": "f9a628d3-8a70-4d0c-b564-ba408224c32a",
"date": "1434393769046",
"type": "protocol",
"author": {},
"tags": [
"sequence",
"snp",
"pcr",
@karpathy
karpathy / min-char-rnn.py
Last active July 29, 2024 00:13
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
@abhijeetchopra
abhijeetchopra / 0-README.md
Last active July 15, 2024 07:25
Creating automatic scheduled backup copies of your Google Sheets using Google Apps Script

How to "Schedule Automatic Backups" of your Google Sheets

This tutorial demonstrates how to use Google Apps Script to:

  • Create copies of the Google Sheet in the desired destination folder automatically at set intervals.

  • Append the time stamp with each backup file's name.

  • Adjust time trigger for backing up every day/hour/minute.

@mariusae
mariusae / assembly.rf
Created February 22, 2018 23:50
"Many files" example of Reflow (https://github.com/grailbio/reflow/issues/22)
// This is an example modules to demonstrate how to process large
// numbers of files in Reflow, as outlined here:
//
// https://github.com/grailbio/reflow/issues/22
// First, we define a number of parameters that provide the input
// and output data locations as well as the location of the reference
// we'd like to use.
param (
@kinoc
kinoc / jserv.py
Last active August 9, 2023 03:05
Simplest FastAPI endpoint for EleutherAI GPT-J-6B
# Near Simplest Language model API, with room to expand!
# runs GPT-J-6B on 3090 and TITAN and servers it using FastAPI
# change "seq" (which is the context size) to adjust footprint
#
# seq vram usage
# 512 14.7G
# 900 15.3G
# uses FastAPI, so install that
# https://fastapi.tiangolo.com/tutorial/