Skip to content

Instantly share code, notes, and snippets.

View joemphilips's full-sized avatar
🚀

Joe Miyamoto joemphilips

🚀
View GitHub Profile
@joemphilips
joemphilips / Aether.fs
Created May 27, 2019 03:36
CustomAether
module CustomAether
type Lens<'a, 'b> =
('a -> 'b) * ('b -> 'a -> 'a)
type Prism<'a, 'b> =
('a -> 'b option) * ('b -> 'a -> 'a)
/// --- Morphisms ---

Keybase proof

I hereby claim:

  • I am joemphilips on github.
  • I am joemphilips (https://keybase.io/joemphilips) on keybase.
  • I have a public key ASD4bsHuGge2dTtDAGotskz0hiF6jPEcIFiObEoHXap_sQo

To claim this, I am signing this object:

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joemphilips
joemphilips / select_by_position.py
Last active July 8, 2017 15:13
select row from vcf file by mutational position
#!usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
parser = argparse.ArgumentParser(description="""print vcf entry from secific positions""")
parser.add_argument("--version", action='version', version='1.0')
parser.add_argument('v', help='input vcf file')
parser.add_argument('p', help="""position you want to extract
no X or Y or MT chromosomes
Examples:
>>> "12:234534-0879854"
use strict;
use warnings;
use autodie;
use Path::Class;
use Array::Utils qw(unique);
=head1 SYNOPSIS
discard_erroneous_gtf.pl --gtf <gtffile>