bioperl / Bio-FeatureIO

Sequence Feature streams
http://bioperl.org
4 stars 9 forks source link

BED file strand '.' is produces strand -1 instead of 0? #13

Open cmdcolin opened 4 years ago

cmdcolin commented 4 years ago

The BED file spec says that strand given as '.' is unstranded but when parsed I am seeing that it is -1

test.pl

use Bio::FeatureIO;
use Data::Dumper;

my $io = Bio::FeatureIO->new(
    -format => 'bed',
    -file => 'test.txt'
);

while ( my $f = $io->next_feature() ) {
    print $f->strand;
}

test.txt

NbV1Ch01    18776453    18777002    MACS2_peak_1486 34  .   2.35549 5.48617 3.42439 437