[Bioperl-l] [Bioperl-guts-l] Notification: incoming/1215 (fwd)

Jason Stajich jason@cgt.mc.duke.edu
Thu, 20 Jun 2002 22:16:40 -0400 (EDT)


note that you can replace your
system("setenv BLASTDIR XXX");
calls which are shell and system dependent with

You need to pass in Bio::Seq objects OR a filename to a fasta file when
you call blastall( );

So either build a Bio::Seq object --
blastall(new Bio::Seq(-seq =>$output[$count], -id => "Seq $count") );

or make your datafile look like a fasta file and pass in the name of the
file to blastall.

Jason Stajich
Duke University
jason at cgt.mc.duke.edu

---------- Forwarded message ----------
Date: Wed, 19 Jun 2002 00:55:38 -0400
From: bioperl-bugs@bioperl.org
To: bioperl-guts-l@bioperl.org
Subject: [Bioperl-guts-l] Notification: incoming/1215

JitterBug notification

new message incoming/1215

Message summary for PR#1215
	From: "Kyota Ishii" <t01051ki@sfc.keio.ac.jp>
	Subject: About  StandAloneBlast.pm
	Date: Wed, 19 Jun 2002 15:02:12  0900
	0 replies 	0 followups


>From t01051ki@sfc.keio.ac.jp Wed Jun 19 00:55:37 2002
Received: from mail.sfc.keio.ac.jp (mail.sfc.keio.ac.jp [])
	by pw600a.bioperl.org (8.12.2/8.12.2) with ESMTP id g5J4tZal013943
	for <bioperl-bugs@bio.perl.org>; Wed, 19 Jun 2002 00:55:36 -0400
Received: from home08kn3ki6gh (ppp1ppp9 [])
	by mail.sfc.keio.ac.jp (8.9.3/3.7W-SFC-DRAC) with SMTP id PAA17245;
	Wed, 19 Jun 2002 15:02:34 +0900 (JST)
Message-ID: <000501c21756$dcbb1670$a70c1b85@home08kn3ki6gh>
From: "Kyota Ishii" <t01051ki@sfc.keio.ac.jp>
To: <bioperl-bugs@bio.perl.org>
Cc: <bioperl-guts-l@bioperl.org>
Subject: About  StandAloneBlast.pm
Date: Wed, 19 Jun 2002 15:02:12 +0900
MIME-Version: 1.0
Content-Type: text/plain;
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

I'm Japanese College students.
Sorry that I have poor English.

Now,I'm developing genome mapping tool.
>From Clustering result,adopt the longest gene.
And made list file about longest gene's name.

Then I 'm going to use StandAloneBlast.pm with for loop.
If array which put longest gene's name use in this module,

 MSG:  S3491
 (0) not Bio::Seq object or array of Bio::Seq objects or file name!
STACK Bio::Tools::Run::StandAloneBlast::blastall
STACK toplevel ./k_d_semifinal.pl:55

error happened.

I want to teach the reason which this program has bags.
(My progarm used StandAloneBlast.pm)


use Bio::Tools::Run::StandAloneBlast;

system("setenv BLASTDIR /pub/software/blast");
system("setenv BLASTDATADIR /home/t01051ki/bioperl-1.0");

    $ENV{BLASTDIR} = '/pub/software/blast';
    $ENV{BLASTDATADIR} = '/home/t01051ki/bioperl-1.0';


    if($_=~ /^[a-zA-Z0-9]/){
        @bunkatu= split(/,/,$sentence1);
        ## print $bunkatu[0];
        $i ++;

##foreach $item(@output){
##    print "$item\n";
close FILE;

    @params = ('program' => 'blastn','database' => 'H1_masked.fa','outfile'
=> 'blast'.$count.'out', '_READMETHOD' => 'Blast');
    $factory = Bio::Tools::Run::StandAloneBlast->new(@params);
##  Blast a sequence against a database:

    $blast_report = $factory->blastall($output[$count]);
Keio College School in Japan
Kyota Ishii

Bioperl-guts-l mailing list