Skip to content

Instantly share code, notes, and snippets.

View pb-cdunn's full-sized avatar

Christopher Dunn pb-cdunn

  • Pacific Biosciences
  • Menlo Park, CA
View GitHub Profile
#[****************************************************************
* Arturo
*
* Programming Language + Interpreter
* (c) 2019 Yanis Zafirópulos (aka Dr.Kameleon)
*
* @file: compiler.nim
*****************************************************************]#
import algorithm, math, os, parseutils, sequtils, strutils, tables
PacBio::BAM::DataSet input;
std::vector<std::string> result;
for (const auto& bamFile : input.BamFiles())
{
std::string outFn = "...";
PacBio::BAM::SubreadSet s{bamFile};
s.Filters(input.Filters());
s.Save(outFn);
@pb-cdunn
pb-cdunn / myfile.txt
Created July 12, 2017 13:30
sample to test gist
This is my file.
@pb-cdunn
pb-cdunn / scan.nim
Created March 22, 2017 15:36
Nimlang free memory rising
# vim: sw=2 ts=2 sts=2 tw=80 et:
from strutils import repeat, `%`
proc log*(msgs: varargs[string]) =
for s in msgs:
write(stderr, s)
write(stderr, '\L')
return
proc scan_i() =
const N = 31
import multiprocessing as M
import Queue
import time, sys
def go(x):
print 'hi-%s'%repr(x)
i = 0
while True:
q.put('Q'*(1<<20))
#q.put('put-%s-%d' %(x, i))
project := pbdagcon
sha := 70b4ecfa5b0ded0b0d2454c1d46895f618c82a02
github_root_uri := https://github.com/Pacificbiosciences
src_clone_uri := ${github_root_uri}/${project}.git
build: | project-clone
cd project-clone; ${MAKE} project
project-clone:
git checkout --depth=0 ${src_clone_uri} $@