File: multiMito.sh

package info (click to toggle)
last-align 1609-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 14,656 kB
  • sloc: cpp: 44,297; python: 5,192; ansic: 1,937; sh: 651; makefile: 457
file content (29 lines) | stat: -rwxr-xr-x 950 bytes parent folder | download | duplicates (2)
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
26
27
28
29
#! /bin/sh

# This script demonstrates using LAST and maf-join to construct a
# multiple alignment of the human, mouse, chicken, and fugu
# mitochondrial genomes.

# You have to run this from inside the examples directory, else it
# won't find the files.

# Put the LAST programs and scripts into the command search path:
PATH=$PATH:../bin

# Make a LAST database of the human sequence:
lastdb -c humanMito humanMito.fa

# Align the mouse sequence to the human sequence:
lastal -pHUMSUM -j4 --split humanMito mouseMito.fa | maf-sort > hm.maf

# Align the chicken sequence to the human sequence:
lastal -pHUMSUM -j4 --split humanMito chickenMito.fa | maf-sort > hc.maf

# Align the fugu sequence to the human sequence:
lastal -pHUMSUM -j4 --split humanMito fuguMito.fa | maf-sort > hf.maf

# Join the pairwise alignments into a multiple alignment:
maf-join hm.maf hc.maf hf.maf

# Clean up the intermediate files that we made:
rm humanMito.??? h?.maf