Skip to content

Commit

Permalink
added 'subclone' script
Browse files Browse the repository at this point in the history
  • Loading branch information
gbenison committed Oct 24, 2011
1 parent 7637834 commit 02555dc
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions subclone
@@ -0,0 +1,18 @@
#!/bin/sh

# GCB 24oct11
#
# Usage: subclone <vector> <insert> <enzyme 1> <enzyme 2>
#
# Cut both vector and insert with both enzymes.
#
# Replace 2nd fragment of vector with 2nd fragment of insert;
# and ligate.

basedir=`dirname $0`;

(cat $1 | ${basedir}/fastadigest $3 $4 | ${basedir}/fastasel 1; \
cat $2 | ${basedir}/fastadigest $3 $4 | ${basedir}/fastasel 2; \
cat $1 | ${basedir}/fastadigest $3 $4 | ${basedir}/fastasel 3;) | \
${basedir}/fastacat | ${basedir}/fastalint

0 comments on commit 02555dc

Please sign in to comment.