$record->{ 'SCORES' } = $entry->[ 5 ];
$record->{ 'SCORE' } = $entry->[ 6 ] + 1;
$record->{ 'DESCRIPTOR' } = $entry->[ 7 ];
+ $record->{ 'S_LEN' } = length $entry->[ 4 ];
$record->{ 'SEQ_LEN' } = length $entry->[ 4 ];
$record->{ 'S_END' } = $record->{ 'S_BEG' } + $record->{ 'SEQ_LEN' } - 1;
$record->{ 'SCORES' } =~ s/(.)/ord( $1 ) - 33 . ";"/ge; # http://maq.sourceforge.net/fastq.shtml
$type = Maasha::Seq::seq_guess_type( $seq1 );
- if ( $type eq "rna" ) {
+ if ( $type =~ /rna/i ) {
$seq2 = Maasha::Seq::rna_revcomp( $seq1 );
- } elsif ( $type eq "dna" ) {
+ } elsif ( $type =~ /dna/i ) {
$seq2 = Maasha::Seq::dna_revcomp( $seq1 );
} else {
Maasha::Common::error( qq(Bad sequence type->$type) );
}
-# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> IMG <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> IMG & OBJECT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
sub img
}
+sub object
+{
+ # Martin A. Hansen, October 2009.
+
+ # HTML <object> element
+
+ my ( %args,
+ ) = @_;
+
+ # Returns string
+
+ return &tag_single( "object", \%args );
+}
+
+
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> DIV & SPAN <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<