Seqanswers Leaderboard Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • tanas80
    Junior Member
    • Jan 2014
    • 1

    Smith-Waterman surprise

    Hello all, it is my first post on the seqanswers.com forum.

    I am studying various alignment cases of Smith-Waterman algorithm.

    I have tried the next two sequences for alignment:
    >ref1
    CAGGCT СТAAAАААСААААААССAAG GACTCG
    >r1
    CAGGCT СТАААААCAAAAACCAAG GACTCG

    Surprisingly I get from http://www.ebi.ac.uk/Tools/psa/embos...ucleotide.html
    an alignment with edited original sequences:

    Code:
    ref1               1 CAGGCTAAA-----AAGGACTCG     18
                         ||||||.||     |||||||||
    read1              1 CAGGCTCAAAAACCAAGGACTCG     23

    The most surprising thing is that flanks are intact, but middle part of sequences partially disappeared.

    The result from http://insilico.ehu.es/align/ differs but also is shorter then source sequnces:
    Code:
    CAGGCTAAAAAGG-ACTC-G----  24
    |||||| ||||   |         
    CAGGCTCAAAAACCAAG-GACTCG  24
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    Weird, you might just use R:

    Code:
    library(Biostrings)
    read <- DNAString("CAGGCTCTAAAAACAAAAACCAAGGACTCG")
    ref <- DNAString("CAGGCTCTAAAAAACAAAAAACCAAGGACTCG")
    pairwiseAlignment(ref, read, type="local") #Default parameters
    pairwiseAlignment(ref, read, type="local", gapOpening=-1) #Change gap penalties
    The first one will yield
    Code:
    CAGGCTCTAAAAAACAAAAAACCAAGGACTCG
    CAGGCTCTAAAAAC--AAAAACCAAGGACTCG
    and the second one
    Code:
    CAGGCTCTAAAAAACAAAAAACCAAGGACTCG
    CAGGCTCTAAAAA-CAAAAA-CCAAGGACTCG
    since I changed the default gap penalties. You can also play with the match and mismatch penalties more easily than with the cumbersome (and slow) web interfaces. Remember that this is a local alignment, so you aren't guaranteed to get the full sequences in the output (try increasing the gapExtension penalty to -5).

    Comment

    • Galo
      Junior Member
      • Dec 2013
      • 9

      #3
      Wow! This case and this information about R is great! Thank you two very much
      To do is to be (Nietzsche) - To be is to do (Kant) - Do be do be do (Frank Sinatra)

      Comment

      Latest Articles

      Collapse

      • seqadmin
        New Genomics Tools and Methods Shared at AGBT 2025
        by seqadmin


        This year’s Advances in Genome Biology and Technology (AGBT) General Meeting commemorated the 25th anniversary of the event at its original venue on Marco Island, Florida. While this year’s event didn’t include high-profile musical performances, the industry announcements and cutting-edge research still drew the attention of leading scientists.

        The Headliner
        The biggest announcement was Roche stepping back into the sequencing platform market. In the years since...
        03-03-2025, 01:39 PM
      • seqadmin
        Investigating the Gut Microbiome Through Diet and Spatial Biology
        by seqadmin




        The human gut contains trillions of microorganisms that impact digestion, immune functions, and overall health1. Despite major breakthroughs, we’re only beginning to understand the full extent of the microbiome’s influence on health and disease. Advances in next-generation sequencing and spatial biology have opened new windows into this complex environment, yet many questions remain. This article highlights two recent studies exploring how diet influences microbial...
        02-24-2025, 06:31 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, Yesterday, 07:27 AM
      0 responses
      11 views
      0 reactions
      Last Post seqadmin  
      Started by seqadmin, 03-18-2025, 12:50 PM
      0 responses
      14 views
      0 reactions
      Last Post seqadmin  
      Started by seqadmin, 03-03-2025, 01:15 PM
      0 responses
      185 views
      0 reactions
      Last Post seqadmin  
      Started by seqadmin, 02-28-2025, 12:58 PM
      0 responses
      283 views
      0 reactions
      Last Post seqadmin  
      Working...