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
          Best Practices for Single-Cell Sequencing Analysis
          by seqadmin



          While isolating and preparing single cells for sequencing was historically the bottleneck, recent technological advancements have shifted the challenge to data analysis. This highlights the rapidly evolving nature of single-cell sequencing. The inherent complexity of single-cell analysis has intensified with the surge in data volume and the incorporation of diverse and more complex datasets. This article explores the challenges in analysis, examines common pitfalls, offers...
          06-06-2024, 07:15 AM
        • 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

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, Today, 07:24 AM
        0 responses
        9 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, Yesterday, 08:58 AM
        0 responses
        11 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 06-12-2024, 02:20 PM
        0 responses
        16 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 06-07-2024, 06:58 AM
        0 responses
        184 views
        0 likes
        Last Post seqadmin  
        Working...
        X