Skip to content

Instantly share code, notes, and snippets.

View everestial's full-sized avatar
💭
Happy !

Kiran N' Bishwa everestial

💭
Happy !
  • Greensboro, NC
View GitHub Profile
@avrilcoghlan
avrilcoghlan / find_lca_of_go_terms.py
Created January 31, 2014 17:03
Python script to find last common ancestors of GO terms
import sys
import os
from collections import defaultdict
import calc_dists_to_top_of_GO
import calc_dists_to_top_of_GO_using_bfs
class Error (Exception): pass
#====================================================================#
@davfre
davfre / bamfilter_oneliners.md
Last active February 24, 2024 01:23
SAM and BAM filtering oneliners
@stevenpetryk
stevenpetryk / punnet_square.rb
Created March 31, 2013 04:48
This is just a nifty little script I wrote that will solve a Punnett square. I plan to make it into a full-featured gem that will be used a future project.
module Geneticist
# The syntax is easy here. If you know how to set up a Punnett Square in real life,
# it's pretty self explanatory.
#
# # Checking for green eyes
# square = Geneticist::PunnettSquare.new('Gg', 'gg')
# square.result
# #=> {"Gg"=>2, "gg"=>2}
#
# # Checking a cross between a spider ball python and a pastel ball python
@jamescasbon
jamescasbon / vcf.ipynb
Last active February 26, 2018 02:03
VCF pandas demo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mattratleph
mattratleph / vimdiff.md
Last active May 9, 2024 03:11 — forked from roothybrid7/vimdiff_cheet.md
vimdiff cheat sheet

vimdiff cheat sheet

##git mergetool

In the middle file (future merged file), you can navigate between conflicts with ]c and [c.

Choose which version you want to keep with :diffget //2 or :diffget //3 (the //2 and //3 are unique identifiers for the target/master copy and the merge/branch copy file names).

:diffupdate (to remove leftover spacing issues)

:only (once you’re done reviewing all conflicts, this shows only the middle/merged file)

@snapbug
snapbug / markov.py
Created July 29, 2011 05:16
Python Text Generator Using Markov Chain
#!/usr/bin/env python
from collections import defaultdict
from random import choice, randint
from re import findall
# Make sure that this will run in python 2 as well as 3
try:
input = raw_input
except NameError:
pass