Skip to content

Instantly share code, notes, and snippets.

View terrycojones's full-sized avatar

Terry Jones terrycojones

View GitHub Profile
346967 15
351869 16
349097 17
339779 18
335678 19
349134 20
336594 21
351668 22
353160 23
355379 24
noninteractive-alignment-panel.py \
$json_option \
$fastq_option \
--matcher diamond \
--outputDir out \
--withScoreBetterThan 40 \
--maxTitles 200 \
--minMatchingReads 2 \
--minCoverage 0.1 \
--minNewReads 0.1 \
#!/usr/bin/perl
# Usage: rename perlexpr [files]
($op = shift) || die "Usage: rename perlexpr [filenames]\n";
if (!@ARGV) {
@ARGV = <STDIN>;
chop(@ARGV);
}
for (@ARGV) {
#!/usr/bin/env python
from PIL import Image
# from images2gif import writeGif
from visvis.vvmovie.images2gif import writeGif
import sys
def main(images):
writeGif('out.gif', images)
1972 1
1973 3
1974 1
1975 17
1976 22
1977 8
1978 1
1979 17
1980 13
1981 20
Processing year 1972 ... done in 0.02 seconds
Processing year 1973 ... done in 0.10 seconds
Processing year 1974 ... done in 0.05 seconds
Processing year 1975 ... done in 0.07 seconds
Processing year 1976 ... done in 0.24 seconds
Processing year 1977 ... done in 0.13 seconds
Processing year 1978 ... done in 0.12 seconds
Processing year 1979 ... done in 0.41 seconds
Processing year 1980 ... done in 0.14 seconds
Processing year 1981 ... done in 0.21 seconds
#!/bin/sh
for id in 5DTG
do
newid=`curl -v --max-redirs 1 -L "http://www.rcsb.org/pdb/explore/explore.do?structureId=$id" 2>&1 | \
egrep Location | tail -n 1 | cut -d= -f3`
if [ $id != $newid ]
then
echo "$id was renamed to $newid"
fi
from twisted.internet import defer
def queryAll(self, n):
def ignoreCancellation(error):
error.trap(defer.CancelledError)
return defer.DeferredList(
self.query().addErrback(ignoreCancellation) for _ in range(n))
#!/bin/sh
case $# in
4)
jobId=$1
pdbFile=$2
;;
*) echo "Usage: `basename $0` jobId ...." >&2 ;;
esac
queryStartInSubject
| queryEndInSubject
| |
| |
subjectBinStart |subjectBinEnd
|| ||
|| ||
Subject: .................SSS..SSSS.....SSSS.................
Query: QQQ..QQQQ...QQQQ
| |