Don't Burn Down the Bridge http://www.youtube.com/watch?v=9I7QR21ut3o
Breaking Up Somebody's Home http://www.youtube.com/watch?v=9d-dgmW9WkI
Jody Man http://www.youtube.com/watch?v=048cFKaNk5E
Come on in My Kitchen http://www.youtube.com/watch?v=4up4VP8zjyc
A Fool for You http://www.youtube.com/watch?v=DVxDDTkuIbI
She's a Good'un http://www.youtube.com/watch?v=szwnGR7f5tA
My Own Fault http://www.youtube.com/watch?v=tMMjurLqYJQ
I'm a fan of simplifying code. Yesterday, I wrote a parser that would take a submitted list of single amino acid switch mutations and output a Python object listing each one. It accepted input like
A123F, F343G, H7A
or
A123F+F343G+H7A
with handling for whitespace and different seperators and printed the output. It ran like this:
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
#For running a list of jobs in parallel | |
i=`awk 'NR==n' n=$SGE_TASK_ID list.txt` | |
[job] $i |
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
awk -v x=21.810 -v y=40.733 -v z=38.672 '/CA/ { if (((x-$7)^2+(y-$8)^2+(z-$9)^2)^.5<12) {print $6} }' > [save-to-file] |
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
"That's the way I feel about you" http://www.youtube.com/watch?v=BPMJFqwsi6E | |
"Worried over you" http://www.youtube.com/watch?v=KufCztMow80 | |
"Waiting in vain" http://www.youtube.com/watch?v=8WQVb_nuKvs |
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
"0p |
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
grep '^[atcg]' $1 | rev | tr atcg tagc |
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
# part of the "You can bash that" series ... | |
qstat -u \* | awk '{print $4}' | tail -n +3 | uniq --count | awk '/teo/ {print $1}' | |
# and a (slightly) shorter way using only AWK (probably faster) | |
qstat -u \* | awk 'BEGIN {i = 0}; $NR > 3 && $4 ~ /teo/ {i++}; END {print i}' |
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
#usage: bash results.bash '<dir> <cst-cutoff>' | |
sort -r -k1 $1/out/score.sc |awk '$4=="all_cst"||$4<'$2'{print $1, $4, $NF}'| column -t |
OlderNewer