[Bioperl-l] update: genpept module

Jason Stajich jason at bioperl.org
Thu Nov 25 03:57:11 UTC 2010


This doesn't seem like the right fix -- you don't want to updated a 
default variable -- why didn't you just use it like this: ?

my $db = new Bio::DB::GenPept->new(-format => 'fasta');



Chris Fields wrote, On 11/24/10 7:24 PM:
> Dimitar,
>
> Missed your original post, but was it reported as a bug?
>
> chris
>
> On Nov 24, 2010, at 8:38 PM, Dimitar Kenanov wrote:
>
>> Hi guys,
>> just managed to get GenPept to give me the fasta in the full form. I modified GenPept in this way:
>>
>> sub new {
>>   my($class, @args) = @_;
>>   my $self = $class->SUPER::new(@args);
>>   my ($verbose,$format)=$self->_rearrange([qw(VERBOSE FORMAT)], at args); #DIMITAR
>>   $DEFAULTFORMAT='fasta' if (defined $format); #DIMITAR
>>   $self->request_format($self->default_format($format));
>>   return $self;
>> }
>>
>> Cheers
>> Dimitar
>> _______________________________________________
>> Bioperl-l mailing list
>> Bioperl-l at lists.open-bio.org
>> http://lists.open-bio.org/mailman/listinfo/bioperl-l
>
>
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/bioperl-l

-- 
Jason Stajich
jason at bioperl.org




More information about the Bioperl-l mailing list