Skip to content

Instantly share code, notes, and snippets.

Karthik Raman karthikraman

Block or report user

Report or block karthikraman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View pdfjoin.sh
#!/bin/bash
if [[ $# -eq 0 ]]
then
echo "Usage: `basename $0` <output file> <input files>"
exit 1
fi
ofile=$1
if [[ -f $ofile ]]
then
@karthikraman
karthikraman / parseBLAST_eval.py
Created Jun 8, 2015
Parse BLAST XML output, with an e-value cutoff
View parseBLAST_eval.py
#!/usr/bin/python
import sys
from optparse import OptionParser
usage="Usage: %prog -f <filename> -p <positives> -l <length>"
parser = OptionParser(usage)
parser.add_option("-f", "--file", dest="filename", help="write report to FILE")
parser.add_option("-p", "--positives", type="float", dest="pos", help="% positives")
parser.add_option("-l", "--length", type="float", dest="len", help="% length")
import re
@karthikraman
karthikraman / bubbleplot.m
Created Jun 8, 2015
BubblePlot for MATLAB
View bubbleplot.m
function h=bubbleplot(varargin)
%BUBBLEPLOT Bubble plot, using MATLAB's scatter
%
% x, y -- data
%
x=varargin{1}(:);
y=varargin{2}(:);
data=sortrows([x y]);
You can’t perform that action at this time.