Bio::Tools::Run::RemoteBlast Error: 403 Forbidden
1
0
Entering edit mode
7.4 years ago
rplana6 • 0

Hi to everybody;

I am trying to execute a BIOPerl module Bio::Tools::Run::RemoteBlast but I get the error 403 Forbidden. I use a fasta file:

And the parameters I use are:

  my $prog = 'blastn';
  my $db   = 'nt';
  my $e_val= '1e-4';



   my @params = ( '-prog' => $prog,
     '-data' => $db,
     '-expect' => $e_val,
     '-readmethod' => 'SearchIO' );

    my $factory = Bio::Tools::Run::RemoteBlast->new(@params1);

    #change a query parameter

    # This example shows how to change a CGI parameter:
    $Bio::Tools::Run::RemoteBlast::HEADER{'MATRIX_NAME'} = 'BLOSUM50';
    $Bio::Tools::Run::RemoteBlast::HEADER{'GAPCOSTS'} = '15 2';

    # Si no ho posem dóna un warning
    $Bio::Tools::Run::RemoteBlast::MODVERSION = 0;

    #change a retrieval parameter
    $Bio::Tools::Run::RemoteBlast::RETRIEVALHEADER{'DESCRIPTIONS'} = 1000;

    #remove a parameter
    delete $Bio::Tools::Run::RemoteBlast::HEADER{'FILTER'};

    #$v is just to turn on and off the messages
    my $messagesMngm = 1;

I always get the same error, no matter all changes in parameters I do.

Is there anybody who can help me please?

Thanks! Roberto

BIOPerl • 2.1k views
ADD COMMENT
0
Entering edit mode

are you working behind a proxy ?

ADD REPLY
0
Entering edit mode

Hi again,

I've tried it at home and also at work. At home I have a normal Internet connection, at work there is a proxy, yes. Why? Is there a problem? I execute the BLAST via NCBI and it works correctly.

Thanks! Robert

ADD REPLY
1
Entering edit mode
7.2 years ago

NCBI has been shifted from HTTP to HTTPS from September 2016. You have to change protocol in your code from HTTP to HTTPS to run this code. for further detail- visit following link- https://www.ncbi.nlm.nih.gov/home/develop/https-guidance.shtml

ADD COMMENT

Login before adding your answer.

Traffic: 1789 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6