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
from itertools import ifilter, islice | |
def readFastq(fastqfile): | |
"parse a fastq-formatted file, yielding a (header, sequence, quality) tuple" | |
fastqiter = (l.strip('\n') for l in fastqfile) # strip trailing newlines | |
fastqiter = ifilter(lambda l: l, fastqiter) # skip blank lines | |
while True: | |
fqlines = list(islice(fastqiter, 4)) | |
if len(fqlines) == 4: | |
header1,seq,header2,qual = fqlines |
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Version: OpenPGP.js v.1.20130712 | |
Comment: http://openpgpjs.org | |
xsBNBFINLngBCACTfqW1ZsIPtaBCeXGQ+KuG66wBCTVNodqhY5P292sekYOG | |
1ldjADX1bO/T88nqQlBgJi/gwzOb9dDkD/MXjcdX3buJS+oiPsHdG9+v34Xq | |
owZCbZP4XAHC3epXkpN/K/kMdjY5mPorakeP4eXWKT3XfKwhe/GoZ3eXcxaH | |
tfGIK1M055fBCQIuOusgMf55dbsfg9QyzTbXZciP0x9PuUvrd3TaYpebBmYq | |
cTc0Z44feQevj+/GQxh8Il4i+eJF1mpa1gzVbAKfnAXu1zxqOuHIwfbaKlgM | |
f32fXFC17ya/2ZQ7wkme/E2XOTrSjuSYLj5hewDccYat+T9dtaZRfFWjABEB |
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
# emoticon version :) :( | |
export PS1="${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \`if [ \$? = 0 ]; then echo -e '\[\e[01;32m\]:)'; else echo -e '\[\e[01;31m\]:( ('$?')'; fi\` \[\033[00m\]\n\$ " | |
# simple unicode version ¬_¬ 😱 | |
export PS1="${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \`if [ \$? = 0 ]; then echo -e '\[\e[01;32m\]¬_¬'; else echo -e '\[\e[01;31m\]😱 ('$?')'; fi\` \[\033[00m\]\n\$ " | |
# randomly selected smiles / frowns... see more at http://wrttn.me/30dbfd/ | |
smiles="¬_¬ | |
(^o^) |