Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • cmccabe
    Senior Member
    • Jul 2012
    • 355

    picard HSmetrics

    New to picard and trying to run HSmetrics on Ubuntu 12.0.4 using a BAM file. I am trying to get the predicted off-target reads. Thanks.
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    How to use the command: http://picard.sourceforge.net/comman...ulateHsMetrics

    Or is there an error that you have run into?

    Provide specifics for relevant help.

    Comment

    • cmccabe
      Senior Member
      • Jul 2012
      • 355

      #3
      picard HSmetrics

      So to run the command:

      Code:
      CalculateHsMetrics TARGET_INTERVALS=epilepsy.bam
      trying to calculate the predicted off-target reads on the Bed file I converted to a BAM using Bedtools. Is this BAM aligned if not how do I align it. I have the hg19 fasta or is there a better way? Thanks.

      Comment

      • Heisman
        Senior Member
        • Dec 2010
        • 534

        #4
        One thing you need is a bed file of the target regions. Do you have this?

        Comment

        • cmccabe
          Senior Member
          • Jul 2012
          • 355

          #5
          picard HSmetrics

          Yes I do have a bed file of the targets and a bam file. I used the bedToBam tool in bedtools, but do not think it is aligned. Thanks.

          Comment

          • Heisman
            Senior Member
            • Dec 2010
            • 534

            #6
            The .bam file is aligned, I think by definition. You can run the program with something like this:

            java -jar Tools/picard-tools-1.92/CalculateHsMetrics.jar BI=target_regions.bed TI=target_regions.bed I=epilepsy.bam O=epilepsy.CalculateHSmetrics R=/pathTohg19/hg19.fa

            Comment

            • cmccabe
              Senior Member
              • Jul 2012
              • 355

              #7
              picard

              Do the three files need to be in a folder and where do I put this folder? Do I cd into a directory? The picard-tools is in /usr/bin, but in order to see it I have to run ls /usr/bin. Also, is there a command to find out the version of picard-tools that is installed? Thanks

              Code:
              java -jar Tools/picard-tools-1.92/CalculateHsMetrics.jar BI=target_regions.bed TI=target_regions.bed I=epilepsy.bam O=epilepsy.CalculateHSmetrics R=/pathTohg19/hg19.fa

              Comment

              • Heisman
                Senior Member
                • Dec 2010
                • 534

                #8
                You need to specify the correct path to all of the files. It does not matter if they are in the same directory. If you type /usr/bin/picard-tools and hit the tab button, it will fill out the version directory for you most likely.

                Comment

                • cmccabe
                  Senior Member
                  • Jul 2012
                  • 355

                  #9
                  picard HSmetrics

                  Code:
                    dnascopev@ubuntu:~/picardtools-1.72$ java -jar Tools/picard-tools-1.72/CalculateHsMetrics.jar BI=target_regions.bed TI=target_regions.bed I=epilepsy.bam O=epilepsy.CalculateHSmetrics R=/picardtools-1.72/hg19_fasta.txt
                  Unable to access jarfile Tools/picard-tools-1.72/CalculateHsMetrics.jar. Thanks.

                  Comment

                  • GenoMax
                    Senior Member
                    • Feb 2008
                    • 7142

                    #10
                    Don't use the code example posted by Heisman as is. It probably refers to a path that exists on Heisman's system. Do you actually have that directory on your machine?

                    I thought you had installed picard-tools from Ubuntu repository using "apt-get" yesterday.

                    Comment

                    • cmccabe
                      Senior Member
                      • Jul 2012
                      • 355

                      #11
                      picard HSmetrics

                      Yes I installed picard from apt-get. Thanks.

                      Comment

                      • GenoMax
                        Senior Member
                        • Feb 2008
                        • 7142

                        #12
                        Picard tools from Ubuntu is an older version (i.e. v. 1.48 I think).

                        Give this command a try:

                        Code:
                        $ picard-tools CalculateHsMetrics BI=target_regions.bed TI=target_regions.bed I=epilepsy.bam O=epilepsy.CalculateHSmetrics R=/picardtools-1.72/hg19_fasta.txt
                        If you get a file not found error then alternate version would be (assuming all these files are in the directory where you are running this command from)

                        Code:
                        $ picard-tools CalculateHsMetrics BI=./target_regions.bed TI=./target_regions.bed I=./epilepsy.bam O=./epilepsy.CalculateHSmetrics R=/picardtools-1.72/hg19_fasta.txt

                        Comment

                        • Heisman
                          Senior Member
                          • Dec 2010
                          • 534

                          #13
                          Yes, sorry, make sure you use paths relevant to you.

                          Comment

                          • cmccabe
                            Senior Member
                            • Jul 2012
                            • 355

                            #14
                            picard HSmetrics

                            Code:
                             picard-tools CalculateHsMetrics BI=target_regions.bed TI=target_regions.bed I=epilepsy.bam O=epilepsy.CalculateHSmetrics R=/picardtools-1.72/hg19_fasta.txt
                            Code:
                             picard-tools CalculateHsMetrics BI=./target_regions.bed TI=./target_regions.bed I=./epilepsy.bam O=./epilepsy.CalculateHSmetrics R=/picardtools-1.72/hg19_fasta.txt
                            ERROR: Unrecognized option: R

                            all three files are in the same directory (picardtools-1.72) Thank you.

                            Comment

                            • Heisman
                              Senior Member
                              • Dec 2010
                              • 534

                              #15
                              Type "picard-tools CalculateHsMetrics", hit enter, and copy/paste the output here.

                              Comment

                              Latest Articles

                              Collapse

                              • SEQadmin2
                                Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                                by SEQadmin2



                                Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                                ...
                                07-09-2026, 11:10 AM
                              • SEQadmin2
                                Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                                by SEQadmin2



                                Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                                There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                                07-08-2026, 05:17 AM
                              • 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

                              ad_right_rmr

                              Collapse

                              News

                              Collapse

                              Topics Statistics Last Post
                              Started by SEQadmin2, 07-13-2026, 10:26 AM
                              0 responses
                              28 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 07-09-2026, 10:04 AM
                              0 responses
                              37 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 07-08-2026, 10:08 AM
                              0 responses
                              25 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 07-07-2026, 11:05 AM
                              0 responses
                              35 views
                              0 reactions
                              Last Post SEQadmin2  
                              Working...