SEQanswers (
-   Bioinformatics (
-   -   blast results (

nitinkumar 05-11-2011 04:17 PM

blast results
I want to edit a blast file in such way that if the query sequence has a gap, that should also comes in the reference sequence like if blast output shows:

query: aa-gcaa
|| ||||
reference: aatgcaa
and I want to remove the t from reference and place a gap...

query: aa-gcaa
|| ||||
reference: aa-gcaa

maubp 05-12-2011 03:19 AM


Do you know any programming languages such as Perl, Python, Ruby, Java, etc? If so have a look at BioPerl, Biopython, BioRuby, BioJava etc for libraries to work with BLAST files.

nitinkumar 05-12-2011 08:15 AM

Yes I have tried bioperl. but I am not able to do that. I can extract the fasta sequences from these files only..

A_Morozov 05-15-2011 07:38 PM

Why not use regexps for, say, finding gap-containing piece of query sequence (20 bp or so) in reference and then removing whatever you want from it?

tomc 05-15-2011 11:21 PM

you want to copy your query over your reference...?

If so, why not just pull you query sequence and use those,
they already have the gaps you seem to be looking for.

But it does sound odd, maybe a better explanation of why would help.

A_Morozov 05-16-2011 12:43 AM

Just taking a query won't work, because it can have different nucleotides (but not gaps) at some sites. After some thinking I see that you don't need any regexps, all you need is like

reference[i]='-' if query[i]='-';

for each position in sequences. Hope you can grab some sequences, dude.
But yes, I'd like to know why he would want to do something like this.

nitinkumar 05-16-2011 03:28 AM

Thanks for the reply and I am getting these results because of 454 sequencing errors, the query sequence is the gene of rhizobium bacteria and the subject is the sequence from matching contigs. I want to remove these sequencing errors in contigs. So that I can make the phylogeny of the contigs.

A_Morozov 05-16-2011 04:17 AM

But so you lose actual indels that could happen between these two species, don't you? I think that first you should make sure that this particular nucleotide is indeed an error. Maybe, it is of quality much less than of other nearby nucleotides, or it is at long repeat like aaaaaaaaa or something else.

nitinkumar 05-16-2011 07:17 AM

The contigs are of the rhizobium strains and blast report shows the position where i m getting this type of results have the neighboring nucleotides exactly the same as with query. So I m pretty sure that these are sequencing errors...

All times are GMT -8. The time now is 09:24 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2020, vBulletin Solutions, Inc.