Does anyone help me with the script of standalone blast that will execute the blastn, blastp and tblastx, with one script and e values, and hits, and score
7 5757
Does anyone help me with the script of standalone blast that will execute the blastn, blastp and tblastx, with one script and e values, and hits, and score
This is the Perl forum. I do not know what blastn, blastp, and tblastx are and your question is extremely vague and not well worded. If you could further explain what you are looking for, that would be most helpful. At this point, I don't know how the Perl forum can further help you.
Regards,
Jeff
Does anyone help me with the script of standalone blast that will execute the blastn, blastp and tblastx, with one script and e values, and hits, and score
look into bioperl: www.bioperl.org
or search CPAN: search.cpan.org
look into bioperl: www.bioperl.org
or search CPAN: search.cpan.org
You have either had exposure to that or have played with it because I hadn't a clue what they were talking about.
Hello masters!!!!!!!!!
I hope my script is a bioperl script which is related to perl of course,,,,, so should be included in the perl forum I suppose,,,,, and standalone blast is a means to use blast locally using perl/ bioperl script. So I asked it here. Again, I am facing few bugs with the "my" thus, if someone can help me,,,, to get it debug, will be great!!!!!!!
My script is as follows: -
#!/usr/bin/perl -w
-
use strict;
-
-
# Local-blast "factory object" creation and blast-parameter:
-
-
-
# initialization:
-
use Bio::Tools::Run::StandAloneBlast;
-
use Bio::SeqIO;
-
use Bio::Seq;
-
use Bio::SearchIO;
-
-
# Process Command line arguments
-
if(scalar @ARGV !=6){
-
my $usage = " ./home/blaststd.pl INPUTFILE BLASTDB PROGRAM E-CUTOFF OUTPUTFILE";
-
print "Wrong number of arguments\n";
-
die "$usage\n";
-
}
-
#the filenames containing input sequence
-
my $input_seq1 = dna.fasta;
-
my $input_seq2 = sequences.fasta;
-
$input_seq1 = $ARGV[0];
-
$input_seq2 =$ARGV[1];
-
#the database to blast against
-
my $db = $ARGV[2];
-
# the blast program to use
-
my $program = $ARGV[3];
-
#the expect value (Evalue)cutoff
-
my $cutoff = $ARGV[4];
-
#the name of the output file
-
my $output_file = $ARGV [5];
-
#blast parameters with type of programs, type of database, type of file, type of method:
-
-
my @params1= ('programs'=> 'blastn','database' => 'ecoli.nt','outfile' =>'blastn.out','e 1e-10',
-
'_READMETHOD' => 'Blast');
-
my @params2= ('programs'=> 'blastp','database' => 'ecoli.aa','outfile' =>'blastp.out','e 1e-10',
-
'_READMETHOD' => 'Blast');
-
my @params3 = ('programs'=> 'tblastx','database' => 'ecoli.nt','outfile' =>'blastx.out','e 1e-10',
-
'_READMETHOD' => 'Blast');
-
-
print "Enter the type of program";
-
-
my $factory = Bio::Tools::Run::StandAloneBlast->new(@params1, @params2, @params3);
-
-
-
# Blast a sequence against a database:
-
-
-
my $in1 = Bio::SeqIO->new(-file=>'dna.fasta' , -format =>'Fasta');
-
my $in2= Bio::SeqIO->new(-file=>'sequences.fasta',-format=>'Fasta');
-
-
# Load the sequence into a Bio::Seq obj
-
my $seq =Bio::Seq->new($in1->next_seq());
-
my $seq2 =Bio::Seq->new($in2->next_seq());
-
-
#my $input2 = $str->next_seq();
-
my $blast_report = $factory->blastall($seq,$seq2);
-
-
-
-
-
-
-
-
-
# Blast a sequence against a database:
-
# format can be , 'blast', 'exonerate', ...
-
-
my $searchio1 = new Bio::SearchIO(-format => 'blastn',
-
-file => 'dna.fasta');
-
my $searchio2= new Bio::SearchIO(-format => 'blastp',-file => 'sequences.fasta');
-
my $searchio3 = new Bio::SearchIO(-format => 'tblastx' -file => 'dna.fasta')
-
-
while (my $result = $searchio->next_result)
-
{
-
-
while(my $hit = $result->next_hit)
-
{
-
-
# process the Bio::Search::Hit::HitI object
-
while(my $hsp = $hit->next_hsp )
-
{
-
# process the Bio::Search::HSP::HSPI object
-
if($hsp->length('total') >=. 75)
-
{
-
print "Hit=", $hit->name,
-
"len=",$hsp->length('total'),
-
"percent_id=",$hsp->percent_identity,
-
"Score =", my $bitsore->bits(%s),
-
"Expected value=", my $evalue,"\n";
-
}
-
}
-
}
-
}
-
}
-
print "Thank you.\n";
-
You have either had exposure to that or have played with it because I hadn't a clue what they were talking about.
I have seen this question or similar asked on other forums so I have some knowledge of what it is. I have no practical experience with it though.
You ned to quote barewords, like here: -
my $input_seq1 = dna.fasta;
-
my $input_seq2 = sequences.fasta;
-
should be: -
my $input_seq1 = 'dna.fasta';
-
my $input_seq2 = 'sequences.fasta';
-
see if that helps gets things working. If not, post the exact error messages you are getting when trying your code. I do not have any of the modules you are using installed so I can't help debug the syntax except by "eye", which I am not prepared to do.
hi, I need help with my blast script. I need to specify that i need only the first ten hits, any idea how i could go about that?Thanks. here;s the script
#! /usr/bin/perl
use warnings;
use strict;
use Bio::SeqIO;
use Bio::Seq;
use Bio::Tools::Run::StandAloneBlast;
my $seqio_obj;
my $seq_obj;
my @params;
my $blast_obj;
my $result_obj;
my $report_obj;
$seqio_obj = Bio::SeqIO->new(-file => 'seq.fasta',
-format => 'fasta' );
# to wrtie the sequence to afasta file
$seq_obj = $seqio_obj->next_seq;
#print $seq_obj->seq,"\n";
@params = (program => 'blastp',
database => 'pdbaa',
outfile => 'blast1.out');
$blast_obj = Bio::Tools::Run::StandAloneBlast->new(@params);
$report_obj = $blast_obj->blastall($seq_obj);
$result_obj = $report_obj->next_result;
print $result_obj->num_hits;
Sign in to post your reply or Sign up for a free account.
Similar topics
by: FilexBB |
last post by:
Currently I use jdom-b9 version to parase xml with the following xml
message
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
......
with the code like this
SAXBuilder builder = new...
|
by: Lonnie, SRC employee |
last post by:
*** post for FREE via your newsreader at post.newsfeed.com ***
I can figure out how to set the standalone attribute in the <? xml
version="1.0 ?> tag eg <?xml version="1.0" standalone="yes" ?>
...
|
by: Dan Williams |
last post by:
Hi people
I'm getting a little annoyed with the way the print function always adds a
space character between print statements unless there has been a new line.
The manual mentions that "In some...
|
by: Isaac Gouy |
last post by:
1) Running a standalone script with SpiderMonkey on Linux
js -f scriptfile.js scriptarg
How can I get the value of scriptarg from within the JavaScript
scriptfile?
2) Running a standalone...
|
by: JohnR |
last post by:
Hi all. In my program I try to handle all obvious potential errors with
structured error handling (try-catch) block. What I would like to do is
have an 'overall' error handler that would...
|
by: VK |
last post by:
It is possibly more suitable to address this question to W3C mailing
list, but I'm trying here first.
Could anyone comment on <http://www.w3.org/TR/REC-xml/#sec-rmd>
The first statement says:...
|
by: tah |
last post by:
Hey,
Can someone please clarify, confirm, or set me straight on my
understanding of a standalone="yes" attribute in the xml version
element?
I assume it means that the xml document containing it...
|
by: khunohm |
last post by:
I would like to know how to select each item of data from text file transfer to each column in excel file.
source 1..159662
/organism="Candidatus...
|
by: nb175 |
last post by:
hi, I need help with my blast script. I need to specify that i need only the first ten hits, any idea how i could go about that?Thanks. here;s the script
#! /usr/bin/perl
use warnings;
use...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |