[Bioperl-l] An error in the SYNOPSIS of Bio::FeatureIO::bed

yichao li liyc1989 at gmail.com
Thu Mar 7 17:52:18 EST 2013


Hi,

            In the SYSNOPSIS, it says:

my $in =* Bio::FeatureIO(-format => 'bed', -file => 'file.bed');*
  for my $feat ($in->next_feature) {
    # do something with $feat (a Bio::SeqFeature::Annotated object)
  }

  my $out = Bio::FeatureIO(-format=>'bed');
  for my $feat ($seq->get_seqFeatures) {
    $out->write_feature($feat);
  }

Actually, it should be *Bio::FeatureIO->new(-format => 'bed', -file =>
'file.bed');*

If not, an error will occur.


------------------------------------
Best wishes,
Yichao
Ohio University Bioinformatics Lab
Phone: (740)-591-1289


More information about the Bioperl-l mailing list