data_in|i=s
cols|c=s
num|n=s
+ check|C
);
}
elsif ( $script eq "read_fixedstep" )
num|n=s
);
}
+ elsif ( $script eq "assemble_tag_contigs" )
+ {
+ @options = qw(
+ check|C
+ );
+ }
+ elsif ( $script eq "calc_fixedstep" )
+ {
+ @options = qw(
+ check|C
+ );
+ }
elsif ( $script eq "format_genome" )
{
@options = qw(
{
@options = qw(
cols|c=s
+ check|C
no_stream|x
data_out|o=s
compress|Z
use_score|u
visibility|V=s
color|c=s
- chunk_size|C=s
+ check|C
);
}
# print STDERR Dumper( \%options );
- $real = "beg|end|word_size|wrap|chunk_size|tile_size|len|prefix_length|mismatches|offset|num|skip|cpus|window_size|step_size";
+ $real = "beg|end|word_size|wrap|tile_size|len|prefix_length|mismatches|offset|num|skip|cpus|window_size|step_size";
foreach $opt ( keys %options )
{
{
$data_in = Maasha::Common::read_open( $file );
- while ( $bed_entry = Maasha::UCSC::BED::bed_entry_get( $data_in, $cols, 1 ) )
+ while ( $bed_entry = Maasha::UCSC::BED::bed_entry_get( $data_in, $cols, $options->{ 'check' } ) )
{
$record = Maasha::UCSC::BED::bed2biopiece( $bed_entry );
{
$strand = $record->{ 'STRAND' } || '+';
- Maasha::UCSC::BED::bed_entry_put( $bed_entry, $fh_out, $cols, 1 );
+ Maasha::UCSC::BED::bed_entry_put( $bed_entry, $fh_out, $cols, $options->{ 'check' } );
}
}
$fh_in = Maasha::Filesys::file_read_open( $tag_file );
- while ( $bed_entry = Maasha::UCSC::BED::bed_entry_get( $fh_in, $cols ) )
+ while ( $bed_entry = Maasha::UCSC::BED::bed_entry_get( $fh_in, $cols, $options->{ 'check' } ) )
{
if ( $record = Maasha::UCSC::BED::bed2biopiece( $bed_entry ) ) {
put_record( $record, $out );
while ( $record = get_record( $in ) )
{
if ( $bed_entry = Maasha::UCSC::BED::biopiece2bed( $record, $cols ) ) {
- Maasha::UCSC::BED::bed_entry_put( $bed_entry, $fh_out, $cols, 1 );
+ Maasha::UCSC::BED::bed_entry_put( $bed_entry, $fh_out, $cols, $options->{ 'check' } );
}
}
$record = Maasha::UCSC::psl2record( $record ) if $record->{ 'tBaseInsert' }; # Dirty addition to allow Affy data from MySQL to be dumped
if ( $bed_entry = Maasha::UCSC::BED::biopiece2bed( $record, $cols ) ) {
- Maasha::UCSC::BED::bed_entry_put( $bed_entry, $fh, $cols, 1 );
+ Maasha::UCSC::BED::bed_entry_put( $bed_entry, $fh, $cols, $options->{ 'check' } );
}
put_record( $record, $out ) if not $options->{ 'no_stream' };
$columns = $record->{ "BED_COLS" };
if ( $entry = Maasha::UCSC::BED::biopiece2bed( $record, $columns ) ) {
- Maasha::UCSC::BED::bed_entry_put( $entry, $fh_out, $columns, 1 );
+ Maasha::UCSC::BED::bed_entry_put( $entry, $fh_out, $columns, $options->{ 'check' } );
}
}
elsif ( $record->{ "REC_TYPE" } eq "PATSCAN" and $record->{ "CHR" } )
$columns = 6;
if ( $entry = Maasha::UCSC::BED::biopiece2bed( $record, $columns ) ) {
- Maasha::UCSC::BED::bed_entry_put( $entry, $fh_out, $columns, 1 );
+ Maasha::UCSC::BED::bed_entry_put( $entry, $fh_out, $columns, $options->{ 'check' } );
}
}
elsif ( $record->{ "REC_TYPE" } eq "BLAST" and $record->{ "S_ID" } =~ /^chr/ )
$record->{ "SCORE" } = $record->{ "BIT_SCORE" } * 1000;
if ( $entry = Maasha::UCSC::BED::biopiece2bed( $record, $columns ) ) {
- Maasha::UCSC::BED::bed_entry_put( $entry, $fh_out, $columns, 1 );
+ Maasha::UCSC::BED::bed_entry_put( $entry, $fh_out, $columns, $options->{ 'check' } );
}
}
elsif ( $record->{ "REC_TYPE" } eq "VMATCH" and $record->{ "S_ID" } =~ /^chr/i )
$columns = 6;
if ( $entry = Maasha::UCSC::BED::biopiece2bed( $record, $columns ) ) {
- Maasha::UCSC::BED::bed_entry_put( $entry, $fh_out, $columns, 1 );
+ Maasha::UCSC::BED::bed_entry_put( $entry, $fh_out, $columns, $options->{ 'check' } );
}
}