This file contains hidden or 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
| This is Illumina's Quality scores in ascending order: | |
| B - The Worst | |
| C | |
| D | |
| E | |
| F | |
| G | |
| H | |
| I |
This file contains hidden or 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
| while($line = <DATA>) | |
| { | |
| if($line =~ /^>/) | |
| { | |
| $go = 0; | |
| chomp $line; | |
| chop $line; | |
| $line =~ s/^>//; | |
| if (exists $heads{"$line"}) { | |
| print OUT ">$line\n"; |
This file contains hidden or 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
| # use 24-hour time format! | |
| import time, os, sys | |
| wh, wm = [ int(i) for i in sys.argv[1].split(':') ] | |
| while True: | |
| hour, minute = list(time.localtime())[3:5] | |
| if hour >= wh and minute >= wm: | |
| break # Snap! |
This file contains hidden or 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
| from googlevoice import Voice | |
| from googlevoice.util import input | |
| voice = Voice() | |
| voice.login(email='[email protected]', passwd='yourpasswrd') | |
| voice.send_sms('123-456-7890', 'DONE!') |
This file contains hidden or 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
| class matrix(list): | |
| """ A cute little matrix object """ | |
| def __init__(self, x, y): | |
| """ initialize """ | |
| [ self.append([0]*x) for i in range(y) ] | |
| def __repr__(self): | |
| """ niceprint """ | |
| return '\n'.join([ ' '.join([str(j) for j in i]) for i in self ]) |
This file contains hidden or 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
| def nw(a, b): | |
| """ Returns Levenstein distance of two strings using NW """ | |
| a = ' ' + a | |
| b = ' ' + b | |
| class matrix(list): | |
| """ A cute little matrix object """ | |
| def __init__(self, x, y): | |
| """ initialize """ | |
| [ self.append([0]*x) for i in range(y) ] | |
This file contains hidden or 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
| >sp|P16250|HIS4_STRCO Phosphoribosyl isomerase A OS=Streptomyces coelicolor GN=priA PE=1 SV=1 | |
| MSKLELLPAVDVRDGQAVRLVHGESGTETSYGSPLEAALAWQRSGAEWLHLVDLDAAFGT | |
| GDNRALIAEVAQAMDIKVELSGGIRDDDTLAAALATGCTRVNLGTAALETPEWVAKVIAE | |
| HGDKIAVGLDVRGTTLRGRGWTRDGGDLYETLDRLNKEGCARYVVTDIAKDGTLQGPNLE | |
| LLKNVCAATDRPVVASGGVSSLDDLRAIAGLVPAGVEGAIVGKALYAKAFTLEEALEATS | |
| >sp|Q9WYG7|PYRF_THEMA Orotidine 5'-phosphate decarboxylase OS=Thermotoga maritima GN=pyrF PE=1 SV=1 | |
| MTPVLSLDMEDPIRFIDENGSFEVVKVGHNLAIHGKKIFDELAKRNLKIILDLKFCDIPS | |
| TVERSIKSWDHPAIIGFTVHSCAGYESVERALSATDKHVFVVVKLTSMEGSLEDYMDRIE | |
| KLNKLGCDFVLPGPWAKALREKIKGKILVPGIRMEVKADDQKDVVTLEEMKGIANFAVLG | |
| REIYLSENPREKIKRIKEMRL |
This file contains hidden or 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
| #!/bin/sh | |
| #$ -N velvet | |
| #$ -m e | |
| #$ -e sge_velvet.err | |
| #$ -o sge_velvet.out | |
| #$ -M [email protected] | |
| #$ -q all.q | |
| #$ -l mem_free=4G |
This file contains hidden or 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
| import sys | |
| import math | |
| class Vector(object): | |
| " A vector " | |
| def __init__(self, *args): | |
| self.dimensions = ( i for i in args ) | |
| @property | |
| def length(self): |
This file contains hidden or 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
| This file contains any messages produced by compilers while | |
| running configure, to aid debugging if configure makes a mistake. | |
| It was created by R configure 2.11.1, which was | |
| generated by GNU Autoconf 2.65. Invocation command line was | |
| $ ./configure --prefix=/usr/local/Cellar/r/2.11.1 --with-aqua --enable-R-framework --with-lapack | |
| ## --------- ## | |
| ## Platform. ## |