[ Launch: tributary-transition ] 6106999 by jandot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'open-uri' | |
require 'json' | |
require 'mongo' | |
class FriendFeed | |
attr_accessor :user, :database, :collection | |
def initialize(user, database, collection) | |
@user = user | |
@database = XGen::Mongo::Driver::Mongo.new.db(database) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require '/nfs/team29/ruby-ensembl-api/lib/ensembl' | |
codon_table = Bio::CodonTable[1] | |
include Ensembl::Core | |
DBConnection.connect('homo_sapiens', 52) | |
STDIN.each do |line| | |
gene_name, transcript_acc, chr, pos, ref, alleles = line.chomp.split(/\t/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Suppose we have a collection "my_coll" with documents that look like this (we're talking about things that have positions on chromosomes): | |
// { _id: "1_123", | |
// chr: "1", | |
// pos: 123, | |
// accession_in_external_db: "an_id" | |
// }, | |
// { _id: "1_456", | |
// chr: "1", | |
// pos: 456 | |
// }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Based on http://www.furmanek.net/39/unix-prompt-for-usage-with-git/ | |
green = "\033[0;32m" | |
reset = "\033[0m" | |
red = "\033[0;31m" | |
current_branch = `git branch 2>/dev/null`.grep(/^\*/).first | |
if current_branch | |
branch_name = current_branch.gsub(/^\*\s*/,'').strip | |
status_lines = `git status`.split(/\n/) | |
status = ( status_lines.length == 2 ) ? 'clean' : 'dirty' |
[ Launch: sv-graph ] 6114799 by jandot
[ Launch: stacked-barchart ] 6145480 by jandot
[ Launch: drag ] 6165060 by jandot
[ Launch: dnart3d ] 6167136 by jandot
[ Launch: Tributary inlet ] 6171849 by jandot
OlderNewer