File: run-unit-test

package info (click to toggle)
last-align 1645-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,684 kB
  • sloc: cpp: 44,403; python: 5,212; ansic: 1,938; sh: 710; makefile: 457
file content (25 lines) | stat: -rw-r--r-- 673 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh -e

pkg=last-align

if [ "$AUTOPKGTEST_TMP" = "" ] ; then
  AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
  trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
fi

cd $AUTOPKGTEST_TMP

cp -a /usr/share/doc/${pkg}/examples/*.fa* .
gunzip -r *

# first example from tutorial
lastdb -cR01 humdb humanMito.fa
lastal humdb fuguMito.fa > myalns.maf

# multiMito example
lastdb -c humanMito humanMito.fa
lastal -e25 -j4 humanMito mouseMito.fa | last-split | maf-sort > hm.maf
lastal -e25 -j4 humanMito chickenMito.fa | last-split | maf-sort > hc.maf
lastal -e25 -j4 humanMito fuguMito.fa | last-split | maf-sort > hf.maf
maf-join hm.maf hc.maf hf.maf > out