7 open O
, ">", "$in.tbl";
9 my $undefed = "\n\t\t\tnote\tcoding region not determined";
15 my @b = split /-/, $a[0];
16 $a[1] =~ s/\[organism=//;
20 my $len = length $seq;
22 print O
">Feature $a[0]
29 product proteolipid protein 1
33 } elsif ($b[0] =~ /16S/) {
34 print O
">Feature $a[0]\n";
35 print O
"<1\t>$len\trRNA\n\t\t\tproduct\tl-rRNA\n\t\t\tnote\t16S ribosomal RNA\n\t\t\tallele\t$b[1]\n";
36 } elsif ($b[0] eq 'CYTB') {
38 print O
">Feature $a[0]
54 } elsif ($len == 1249) {
55 print O
">Feature $a[0]
71 } elsif ($len == 1233) {
72 print O
">Feature $a[0]
88 } elsif ($len == 853) {
89 print O
">Feature $a[0]
101 } else { die '*' x
50,"[x]"; }
102 } elsif ( $b[0] eq 'SMCY3' ) {
103 print O
">Feature $a[0]
111 product lysine (K)-specific demethylase 5D
115 } elsif ( $b[0] eq 'SMCY7_STR_upstream' ) {
116 print O
">Feature $a[0]
123 } elsif ( $b[0] eq 'SMCY7_STR_downstream' ) {
126 print O
">Feature $a[0]
134 product lysine (K)-specific demethylase 5D
138 } elsif ( $b[0] eq 'DBY7' ) {
139 my $a = $len - (278-248);
140 my $b = $len - (278-247);
141 print O
">Feature $a[0]
152 } elsif ( $b[0] eq 'UTY11' ) {
153 print O
">Feature $a[0]
161 print O
">Feature $a[0]\n<1\t>$len\tgene\n\t\t\tgene\t$b[0]\n\t\t\tallele\t$b[1]\n";
162 warn "Bad sequence name!";
167 my $cmd = "tbl2asn -t Pbe.tpm -i $in.fa -a s2 -V vb";
168 print "Running:[$cmd]\n";
170 #system("ls -l $in.*")