$options = Maasha::Biopieces::parse_options(
[
- { long => 'no_stream', short => 'x', type => 'flag', mandatory => 'no', default => undef, allowed => undef, disallowed => undef },
- { long => 'data_out', short => 'o', type => 'file', mandatory => 'no', default => undef, allowed => undef, disallowed => undef },
- { long => 'compress', short => 'Z', type => 'flag', mandatory => 'no', default => undef, allowed => undef, disallowed => undef },
+ { long => 'key', short => 'k', type => 'string', mandatory => 'no', default => undef, allowed => undef, disallowed => undef },
+ { long => 'step', short => 's', type => 'uint', mandatory => 'no', default => 1, allowed => undef, disallowed => undef },
+ { long => 'no_stream', short => 'x', type => 'flag', mandatory => 'no', default => undef, allowed => undef, disallowed => undef },
+ { long => 'data_out', short => 'o', type => 'file', mandatory => 'no', default => undef, allowed => undef, disallowed => undef },
+ { long => 'compress', short => 'Z', type => 'flag', mandatory => 'no', default => undef, allowed => undef, disallowed => undef },
]
);
while ( $record = Maasha::Biopieces::get_record( $in ) )
{
- if ( $entry = Maasha::UCSC::Wiggle::biopiece2fixedstep( $record ) ) {
+ if ( $entry = Maasha::UCSC::Wiggle::biopiece2fixedstep( $record, $options->{ "key" }, $options->{ "step" } ) ) {
Maasha::UCSC::Wiggle::fixedstep_entry_put( $entry, $fh );
}