Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Adamo
    Member
    • Jun 2010
    • 28

    BLAT - uniquely mapped reads/multiple hits

    Hi all,

    I wanted to know if there was a simple way to filter the output.psl from BLAT to obtain a file containing only the uniquely mapped reads.
    Concerning the multiple hits, does BLAT sort them by any order of probability or else? I couldn't find this information in the documentation... Having a look at the output file makes me think it doesn't.
    But, can I nevertheless tell the soft to output only the alignments that are the most likely to be true?

    Thanks in advance.
  • kmcarr
    Senior Member
    • May 2008
    • 1181

    #2
    "Most likely to be true" is a nebulous standard. You can, however, filter a psl file to report only the best and nearly the best hits for a given query. The program pslReps, which should be distributed with BLAT, filters .psl files. There are a number of parameters to adjust the stringency of filtering. Here is a link to some tips given by Jim Kent (author of BLAT and pslReps) on the parameters they use at UCSC. Of course that was in the context of aligning ESTs or full length cDNAs. He makes the point in his response that it is not possible to force pslReps to only report a single alignment for a query (even when using the "-singleHit" option) if there are multiple hits with the same or nearly the same score.

    Comment

    • Adamo
      Member
      • Jun 2010
      • 28

      #3
      Yes, "most likely to be true" is a very fuzzy notion here.
      I hadn't see pslReps/Sort... was distributed with blast, I'm still a newbie and I'm quite confused with all the different softs that have been developped...
      This is a real mess for someone new in this field as I am!

      Thank you very much for your help, I'll try to run pslReps and others psl stuff.

      Comment

      • lifeng.tian
        Member
        • Jul 2009
        • 16

        #4
        You may find the git repo helpful, here is the link:


        I used BLAT recently in a RNA-seq splice junction detection project, here is
        some perl scripts for running BLAT and parsing psl result, might be of help to you:
        Yet another bioinformatics tool to detect de novo splice junctions from paired-end RNA-seq reads (human genome only) - lifengtian/SplicePL


        I tried pslReps for exactly the same problem, it was not designed for it.



        Originally posted by Adamo View Post
        Yes, "most likely to be true" is a very fuzzy notion here.
        I hadn't see pslReps/Sort... was distributed with blast, I'm still a newbie and I'm quite confused with all the different softs that have been developped...
        This is a real mess for someone new in this field as I am!

        Thank you very much for your help, I'll try to run pslReps and others psl stuff.
        Last edited by lifeng.tian; 07-02-2010, 04:01 PM.

        Comment

        • Adamo
          Member
          • Jun 2010
          • 28

          #5
          Thank you, I think it can be very helpful!

          However, I have some questions about how to use the scripts (I'm all new to biology and bioinformatic...):

          Why should I mask the genome? (actually, I haven't understood this notion yet). I'll work on a bacterial one, do I have to mask it too?

          I only have single end read, is it ok anyway? Will it work if I just use the "--forward=..." thing?

          As I understand it, I'll have my alignment stored in the "temp" directory after running Blat. Then, what is the command to filter the output.psl so that I obtain only uniquely mapped reads?

          Sorry if some questions are a little bit naive...!
          Last edited by Adamo; 07-05-2010, 12:56 AM.

          Comment

          • lifeng.tian
            Member
            • Jul 2009
            • 16

            #6
            Please check out this perl script at
            Yet another bioinformatics tool to detect de novo splice junctions from paired-end RNA-seq reads (human genome only) - lifengtian/SplicePL


            It will run BLAT on N processes and generate temp/unique and temp/unique.psl
            LMK if you have more questions at [email protected]

            BTW, you don't need to mask the genome.
            Last edited by lifeng.tian; 07-05-2010, 03:39 PM.

            Comment

            • Adamo
              Member
              • Jun 2010
              • 28

              #7
              Thanks you again, I'm having a look at your script. It seems quite approachable, even for me!
              I'll let you know if I need some more help.

              Comment

              • lifeng.tian
                Member
                • Jul 2009
                • 16

                #8
                Just remind you, the minscore will determine the final number of unique reads. The default value of 30 is way too low for bacterial genome and long reads. Assuming the read length is 200bp, then a 90% match requires
                a minscore of 180.
                Last edited by lifeng.tian; 07-06-2010, 05:50 AM.

                Comment

                • Adamo
                  Member
                  • Jun 2010
                  • 28

                  #9
                  The thing is, I've reads of different lenghts, from 100bp to 300bp. Can't I specify a percentage instead of a precise score?
                  Last edited by Adamo; 07-06-2010, 06:42 AM.

                  Comment

                  • Adamo
                    Member
                    • Jun 2010
                    • 28

                    #10
                    Oops, mistake.
                    Last edited by Adamo; 07-06-2010, 06:40 AM.

                    Comment

                    • lifeng.tian
                      Member
                      • Jul 2009
                      • 16

                      #11
                      I modified the blat_singleend.pl.
                      Try run it with --minidentity=90
                      IT will require the match score to be larger than individual_read_length * 0.9.

                      Originally posted by Adamo View Post
                      The thing is, I've reads of different lenghts, from 100bp to 300bp. Can't I specify a percentage instead of a precise score?

                      Comment

                      Latest Articles

                      Collapse

                      • GATTACAT
                        Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                        by GATTACAT
                        Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
                        07-01-2026, 11:43 AM
                      • SEQadmin2
                        Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                        by SEQadmin2


                        I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

                        Here are nine questions we think about, in roughly the order they matter, before...
                        06-18-2026, 07:11 AM

                      ad_right_rmr

                      Collapse

                      News

                      Collapse

                      Topics Statistics Last Post
                      Started by SEQadmin2, Yesterday, 11:05 AM
                      0 responses
                      7 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 07-02-2026, 11:08 AM
                      0 responses
                      28 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 06-30-2026, 05:37 AM
                      0 responses
                      27 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 06-26-2026, 11:10 AM
                      0 responses
                      27 views
                      0 reactions
                      Last Post SEQadmin2  
                      Working...