Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • blastn: restrict output to same length as query

    Hi,

    I would like to filter my blastn output to look at hits in their full length relative to the query, not just including the matching part.

    One way, I came up with, is to filter all output to have the same length (or longer) as the query sequence.
    Alternatively it would help me very much, if there was a way to calculate the perc_identity relative to to the whole length of the query and not to just to the match.
    Is there a way, that I can play with word_size to allow mismatches? Then I could just set the word_size to the query length...
    (in my case, just mismatches are important, I would not allow for insertions or deletions anyway)

    Does anybody have an idea, how I could solve this, or how I can practically implement the ideas that I had?

    Thank you very much!

  • #2
    Well the problem you are facing lies in the core foundation of how the blast algorithms and scoring matrices work. Blast already searches for the most optimal alignment without taking too big of a scoring penalty (mismatches, gaps and extensions thereof).
    In other words, you will have to store the length of the query sequence you are inputting and subtract the length of the actual match.
    That difference in of query not being matched (pre and post blast) could be counted as 'non-identical'. If you start allowing more mismatches and introduce a lower gap penalty you might be able to match a larger portion of the sequence.

    Good luck.

    Comment


    • #3
      Thank you very much Rhizosis!

      I have changed my strategy now to allow more than one match and filter by length afterwards. Since I have multiple query sequences, the files get huge, but I guess there is no way around it...

      Comment


      • #4
        No problem.
        To minimize the amount of results in your blast output, you maybe can dynamically set the min. alignment length flag for each blast. Foreach accession entry in the input, measure the length of the hit you would like to obtain and set that length as the flag argument in blast.
        This would mean that you would have to cut up the large input fasta file into single accession entry fasta files.

        This is just a thought however and I dont know if its applicable to your situation.

        Good luck

        Comment

        Latest Articles

        Collapse

        • seqadmin
          Recent Advances in Sequencing Analysis Tools
          by seqadmin


          The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
          Yesterday, 07:48 AM
        • seqadmin
          Essential Discoveries and Tools in Epitranscriptomics
          by seqadmin




          The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
          04-22-2024, 07:01 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, Yesterday, 07:17 AM
        0 responses
        11 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 05-02-2024, 08:06 AM
        0 responses
        19 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-30-2024, 12:17 PM
        0 responses
        20 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-29-2024, 10:49 AM
        0 responses
        29 views
        0 likes
        Last Post seqadmin  
        Working...
        X