Skip to content

Instantly share code, notes, and snippets.

View dlesl's full-sized avatar

David Leslie dlesl

  • Melbourne, Australia
View GitHub Profile
@dlesl
dlesl / SIFT_Align_multichannel.java
Created October 30, 2018 19:56
The ImageJ SIFT alignment plugin, modified to allow the alignment of additional stacks using a 'master' stack as a reference.
/**
* The ImageJ SIFT alignment plugin, modified to allow the alignment of additional
* stacks using a 'master' stack as a reference - for example phase contrast and
* fluorescence stacks can be simultaneously aligned, using the phase contrast as
* the reference.
*
* Original plugin: https://github.com/axtimwalde/mpicbg
* License: GPL 2
* https://github.com/axtimwalde/mpicbg/blob/master/mpicbg_/src/main/resources/LICENSE
*/
@dlesl
dlesl / bti2gb.py
Created October 30, 2018 19:40
Convert GeneTool .bti files to genbank format. I had a bunch of plasmid maps I needed to convert and came up with this, but there's no guarantee it'll work for other .bti files!
#!/usr/bin/python3
import sys
import re
from Bio.Seq import Seq
from Bio.SeqRecord import SeqRecord
from Bio.SeqFeature import SeqFeature, CompoundLocation, FeatureLocation
from Bio.Alphabet import generic_dna
from Bio import SeqIO
feature_re = re.compile("s(.+)\x1b{3}([^\x1b]+) ")

Keybase proof

I hereby claim:

  • I am dlesl on github.
  • I am dlesl (https://keybase.io/dlesl) on keybase.
  • I have a public key ASCAPsaHcOWE40GujXUuUJ18Mkn_DrVlJBTQJa9m8gdcRgo

To claim this, I am signing this object: