# annout_descr.h #____________________________________________Brief descr & first 10 supermotifs // -------------------------------------------------------- // Supermotifs. // -------------------------------------------------------- function f_smOut( $s, $i, $pref ) { echo "\n"; echo "
"; while( $buf = fgets( $fmot, 256 ) ) { if( ereg("Brief", $buf ) ) break; } while( $buf = fgets( $fmot, 256 ) ) { if( (strlen( $buf ) > 2) && (substr($buf,0,1) != " " ) ) break; } do { //echo( $buf ); f_briOut( $buf, $i++, "b" , $SEQ_REF1, $SEQ_REF2 ); //echo $bufs; } while( ($buf = fgets( $fmot, 256 )) && (strlen( $buf ) > 2) && (substr($buf,0,1) != " " ) ); echo ""; $tail = " (first " . $MN_PRINT . ")"; if( $i <= ( $MN_PRINT + 1 ) ) $tail = ""; $i = 1; $section = "SMOT"; include "annmline.h"; echo( "
"; /** for *.mot // Actualy *.prn is needed while( $buf = fgets( $fmot, 128 ) ) { if( substr( $buf, 0,5 ) == "Super" ) { f_smOut( $buf, $i++, "a" ); //echo $buf; break; } } while( $buf = fgets( $fmot, 128 ) ) { if( substr( $buf, 0,5 ) == "Super" ) { f_smOut( $buf, $i++, "a" ); //echo $buf; } else { echo $buf; } } /**/ // Really *.prn while( $buf = fgets( $fmot, 128 ) ) { if( ereg("Supermotifs", $buf ) ) break; } while( $buf = fgets( $fmot, 128 ) ) { if( (strlen( $buf ) > 2) && (substr($buf,0,1) != " " ) ) break; } do { $buf2 = fgets( $fmot, 128 ); f_prnOut( $buf, $buf2, $i++, "a" , $SEQ_REF1, $SEQ_REF2 ); //echo $bufs; while( $buf = fgets( $fmot, 128 ) ) { if( (strlen( $buf ) > 2) && (substr($buf,0,1) != " " ) ) break; echo( $buf ); } } while( $buf && $i <= $MN_PRINT ); // *** 18.01.01 fclose( $fmot ); echo ""; ?>