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
          Latest Developments in Precision Medicine
          by seqadmin



          Technological advances have led to drastic improvements in the field of precision medicine, enabling more personalized approaches to treatment. This article explores four leading groups that are overcoming many of the challenges of genomic profiling and precision medicine through their innovative platforms and technologies.

          Somatic Genomics
          “We have such a tremendous amount of genetic diversity that exists within each of us, and not just between us as individuals,”...
          05-24-2024, 01:16 PM
        • 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...
          05-06-2024, 07:48 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, Yesterday, 01:32 PM
        0 responses
        10 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 05-24-2024, 07:15 AM
        0 responses
        199 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 05-23-2024, 10:28 AM
        0 responses
        221 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 05-23-2024, 07:35 AM
        0 responses
        232 views
        0 likes
        Last Post seqadmin  
        Working...
        X