| 1 |
#! /usr/bin/perl |
| 2 |
|
| 3 |
# bug i28 - Incomplete CP9Bands cloning. |
| 4 |
# |
| 5 |
# EPN, Wed Jul 18 06:12:48 2012 |
| 6 |
# |
| 7 |
# The CP9Bands_t object (cm->cp9b) was not being completely cloned in |
| 8 |
# hmmband.c:cp9_CloneBands(). In particular the {J,L,R,T}valid arrays |
| 9 |
# for truncated alignment were not being cloned. This caused a potential |
| 10 |
# problem when a single envelope in a truncated pass included more |
| 11 |
# than 1 hit (the only time the cloned bands are used) if the required |
| 12 |
# matrix was near the maximum allowed size. |
| 13 |
# |
| 14 |
# The instance here is the only case I've ever seen. It's very rare |
| 15 |
# because it requires multiple hits in a single truncated envelope |
| 16 |
# and truncated envelopes can only occur in the first/final W residues |
| 17 |
# of a sequence. |
| 18 |
# |
| 19 |
# See BUGTRAX i28 description for more information. |
| 20 |
# |
| 21 |
# bug-i28.cm - SRP CM built from the 'seed' alignment used in |
| 22 |
# Menzel, P., Gorodkin, J., & Stadler, P. F. (2009). |
| 23 |
# The tedious task of finding homologous noncoding |
| 24 |
# RNA genes. RNA (New York, NY), 15(12), 2075–2082. doi:10.1261/rna.1556009 |
| 25 |
# |
| 26 |
# bug-i28.fa - the final 373 residues of a single sequence from the |
| 27 |
# ENSEMBL release 47 genome of Macaca mulatta (Rhesus macaque). |
| 28 |
# This genome was searched in the Stadler paper. |
| 29 |
|
| 30 |
$usage = "perl bug-i28.pl <cmsearch> <path to bug-i28.cm> <path to bug-i28.fa>\n"; |
| 31 |
if ($#ARGV != 2) { die "Wrong argument number.\n$usage"; } |
| 32 |
|
| 33 |
$cmsearch = shift; |
| 34 |
$cmfile = shift; |
| 35 |
$seqfile = shift; |
| 36 |
$ok = 1; |
| 37 |
|
| 38 |
if ($ok) { |
| 39 |
system("$cmsearch $cmfile $seqfile > /dev/null 2> /dev/null"); |
| 40 |
if ($? != 0) { $ok = 0; } |
| 41 |
} |
| 42 |
|
| 43 |
if ($ok) { print "ok\n"; exit 0; } |
| 44 |
else { print "FAILED\n"; exit 1; } |
| 45 |
|
| 46 |
|