Announcement

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

  • ncbi-blast

    Hi,

    I have a trialseq.fa file having a sequence:

    >trialseq
    TGGCCTAACCTTCGGGAAGGAGCCGTCTAAGGCAGGGCAGATGACNNNNNNNNNNNNGTAACAAGNNNNNNNNNNNNGAACCTGNNNNNNGATCACCTCCTTTCTA

    There is also a blast db having the same sequence:
    makeblastdb -in trialseq.fa -dbtype nucl -out trial.db

    The trialseq has been blasted agains the DB:
    blastn -db trial.db -query trialseq.fa -out blast.txt

    However, blast result show only a partial match:

    ----
    Score = 84.2 bits (45), Expect = 4e-22
    Identities = 45/45 (100%), Gaps = 0/45 (0%)
    Strand=Plus/Plus

    Query 1 TGGCCTAACCTTCGGGAAGGAGCCGTCTAAGGCAGGGCAGATGAC 45
    |||||||||||||||||||||||||||||||||||||||||||||
    Sbjct 1 TGGCCTAACCTTCGGGAAGGAGCCGTCTAAGGCAGGGCAGATGAC 45

    ----

    How to use blast in such a way that it would return true 100% match? So that N would match as any nucleotide.

    Thanks

  • #2
    Originally posted by sampie View Post
    Hi,

    I have a trialseq.fa file having a sequence:

    >trialseq
    TGGCCTAACCTTCGGGAAGGAGCCGTCTAAGGCAGGGCAGATGACNNNNNNNNNNNNGTAACAAGNNNNNNNNNNNNGAACCTGNNNNNNGATCACCTCCTTTCTA

    There is also a blast db having the same sequence:
    makeblastdb -in trialseq.fa -dbtype nucl -out trial.db

    The trialseq has been blasted agains the DB:
    blastn -db trial.db -query trialseq.fa -out blast.txt

    However, blast result show only a partial match:

    ----
    Score = 84.2 bits (45), Expect = 4e-22
    Identities = 45/45 (100%), Gaps = 0/45 (0%)
    Strand=Plus/Plus

    Query 1 TGGCCTAACCTTCGGGAAGGAGCCGTCTAAGGCAGGGCAGATGAC 45
    |||||||||||||||||||||||||||||||||||||||||||||
    Sbjct 1 TGGCCTAACCTTCGGGAAGGAGCCGTCTAAGGCAGGGCAGATGAC 45

    ----

    How to use blast in such a way that it would return true 100% match? So that N would match as any nucleotide.

    Thanks
    have you tried modifying Query filtering options?

    Code:
    -dust <String>
       Filter query sequence with DUST (Format: 'yes', 'level window linker', or
       'no' to disable)
       Default = `20 64 1'
     -filtering_db <String>
       BLAST database containing filtering elements (i.e.: repeats)
     -window_masker_taxid <Integer>
       Enable WindowMasker filtering using a Taxonomic ID
     -window_masker_db <String>
       Enable WindowMasker filtering using this repeats database.
     -soft_masking <Boolean>
       Apply filtering locations as soft masks
       Default = `true'
     -lcase_masking
       Use lower case filtering in query and subject sequence(s)?

    Comment


    • #3
      Hi,

      It seems it might be possible to get blast to work for some data set by trying various parameters. However, I contacted ncbi support and they told that handling ambiguous matches is not the strong suite of BLAST.

      So, I quess it is better to just try to find a local aligner which does support ambiguous matches.

      Any suggestions for a good local aligner for this purpose?

      Thanks

      Comment


      • #4
        with fasta package you can align local-local, local-global, global-global

        http://fasta.bioch.virginia.edu/fast...sta_down.shtml

        Comment


        • #5
          Thanks for suggestion.

          How about bowtie2? It seem to be quite popular and good tools. From bowtie2 help I found that it can be disabled that N is considered as a negatively scoring match. However, I did not find an option to have N as positively scoring match.

          Comment


          • #6
            My experience with Bowtie2 is limited to map Illumina reads to reference genome.
            have in mind that bowtie output is in sam format.

            Comment

            Latest Articles

            Collapse

            • seqadmin
              Advanced Methods for the Detection of Infectious Disease
              by seqadmin




              The recent pandemic caused worldwide health, economic, and social disruptions with its reverberations still felt today. A key takeaway from this event is the need for accurate and accessible tools for detecting and tracking infectious diseases. Timely identification is essential for early intervention, managing outbreaks, and preventing their spread. This article reviews several valuable tools employed in the detection and surveillance of infectious diseases.
              ...
              11-27-2023, 01:15 PM
            • seqadmin
              Strategies for Investigating the Microbiome
              by seqadmin




              Microbiome research has led to the discovery of important connections to human and environmental health. Sequencing has become a core investigational tool in microbiome research, a subject that we covered during a recent webinar. Our expert speakers shared a number of advancements including improved experimental workflows, research involving transmission dynamics, and invaluable analysis resources. This article recaps their informative presentations, offering insights...
              11-09-2023, 07:02 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, Today, 10:35 AM
            0 responses
            9 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 12-05-2023, 02:24 PM
            0 responses
            17 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 12-05-2023, 07:37 AM
            0 responses
            28 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 12-04-2023, 08:23 AM
            0 responses
            13 views
            0 likes
            Last Post seqadmin  
            Working...
            X