#!/usr/local/bin/perl # reads in two brk's and makes a combined colouring # brk_merge.p > merged $w = "h5h-2" ; $wd = "h4d-3" ; $eleven = 10 ; # 0.69 is bottom of both # How to override min and max values with command line eval "\$$1=\$2" while @ARGV && $ARGV[0]=~ /^(\w+)=(.*)/ && shift; # open ( W , "<$w" ) ; # open ( WD , "<$wd" ) ; # while( ( $_ = ) && ( $d = ) ) { $i ++ ; # if ( $d =~ /(ATOM.{59})(.{4})/ ) { $flag = 0 ; # $start = $1 ; # if ( $2 ne "0.69" ) { $end = "4.0" ; $flag = 1 ; $c1 ++ ; } # $_ = /(ATOM.{59})(.{4})/ ; if ( $2 ne "0.69" ) { $end = "8.0" ; if ( $flag == 1 ) { printf STDERR "Warning %d %s\n" , $i , $2 ; $end = "6.0" ; } # $c2 ++ ; # $flag = 1 ; # } # if ( $flag == 0 ) { $end = $2 ; } print $start , $end , "\n" ; } # else { # print $_ ; # } # } # print STDERR $c1 , " of 1 ,", $c2 , " of 2\n" ;