percent|p
);
}
- elsif ( $script eq "calc_fixedstep" )
- {
- @options = qw(
- score|S
- log10|L
- );
- }
elsif ( $script eq "transliterate_seq" )
{
@options = qw(
foreach $chr ( sort keys %{ $file_hash } )
{
- $fixedstep_file = Maasha::UCSC::Wiggle::fixedstep_calc( $file_hash->{ $chr }, $chr, $options->{ 'score' }, $options->{ 'log10' } );
+ $bed_file = $file_hash->{ $chr };
+ $fixedstep_file = "$bed_file.fixedstep";
+
+ Maasha::Common::run( "bed2fixedstep", "< $bed_file > $fixedstep_file" );
$fh_in = Maasha::Filesys::file_read_open( $fixedstep_file );
close $fh_in;
- unlink $file_hash->{ $chr };
unlink $bed_file;
+ unlink $fixedstep_file;
}
}