Nick Crawford Evolution and more…

22Nov/090

Blue Collar Bioinformatics

Just wanted to recommend Blue Collar Bioinformatics a slick blog with lots of useful bioinformatics scripts.  Everything is written in python and the full working source is typically available on GIT.

27Oct/080

How to emulate Blast’s “Short Sequence Parameters”

I just spent an hour figuring out how to emulate Blast's "Short Sequence Search Parameters" in BioPython 1.48.   To use PAM30 as your matrix you must use existence and extension parameters (e.g. gap costs) of 9 and 1.

Here's what I've currently got:

  1. result_handle = NCBIWWW.qblast(
  2. "blastp",
  3. "nr",
  4. seq_record.seq.tostring(),
  5. matrix_name = 'BLOSUM62',
  6. word_size='2',
  7. expect='30000',
  8. gapcosts ='9 1',
  9. composition_based_statistics='no adjustment')