Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ElenaN
    Junior Member
    • Nov 2012
    • 8

    #1

    bam-readcount usage

    Hi, could someone tell me what is the proper way to run bam-readcount (for later use with the VarScan2 fpfilter.pl?)
    Specifically, what should be the "list of regions to report readcounts within" (-l parameter): the SNPs found (from .vcf file)? the exome .bed file?
    And how is the "optional region specificaton" different?
    An example of a command-line call to bam-readcount would also be useful.
    Thank you!
    - Elena
  • ernfrid
    Member
    • Jul 2011
    • 26

    #2
    Hi Elena,

    You should use the SNPs found for your import to -l. The file should be tab separated, and contain chr start stop in 1-based (as in VCF not BED) coordinates for both start and stop. This is similar to the optional region specification except that it handles multiple sites at once and that the format for the optional region specification is the same as that for samtools view.

    This command would filter out bases below BQ of 15 and report counts for each site in the varscan.positions file.

    Code:
    bam-readcount -b 15 -f reference.fa -l varscan.positions some.bam
    This command prints the counts for position 10000 on chromosome 1 of the reference sequence.

    Code:
    bam-readcount -b 15 -f reference.fa some.bam 1:10000-10000
    This command prints counts for all of chromosome 1.

    Code:
    bam-readcount -b 15 -f reference.fa some.bam 1
    This command prints counts from position 10000 of chromosome 1 to its end.

    Code:
    bam-readcount -b 15 -f reference.fa some.bam 1:10000
    Hope that helps,

    Dave

    Comment

    • ElenaN
      Junior Member
      • Nov 2012
      • 8

      #3
      Thanks.
      So the -b value should be what the user considers to be a reasonable cutoff?

      Comment

      • ernfrid
        Member
        • Jul 2011
        • 26

        #4
        Yes, I would recommend that users choose -q and -b cutoffs that they consider reasonable. As this depends on how the data is being used, I have not set defaults on the program itself.

        Comment

        • himanshu04
          Member
          • Mar 2012
          • 35

          #5
          Error while using bam-readcount

          I have tumor-normal sample and I have high confidence somatic calls from Varscan which I then filtered using Somatic filter. I wish to use Bam-read count on them and then use the fpfilter to bring it down to most confident set of calls.
          I am not able to understand which bam file should I give since this is a combination of normal-tumor.
          Also, I tried to use the tumor file but it gave me an error saying single quality mapping not found. Check if SM group present in the bam file.
          What should I be doing for making it work?.
          I am a newbie to varscan and any help will be much appreciated.
          Also, I must tell you that I am running it on RNA seq data from Mice models.
          Thanks,
          Himanshu

          Comment

          • ernfrid
            Member
            • Jul 2011
            • 26

            #6
            Hi Himanshu,

            You should use the tumor BAM file only. You can also safely ignore the errors about the single end mapping quality, it will not affect your filtering results. There is a fix to report this only once in the current source, but we have not yet released a new stable version.

            Comment

            Latest Articles

            Collapse

            • SEQadmin2
              Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
              by SEQadmin2



              Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

              Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
              ...
              10-14-2026, 09:55 AM
            • SEQadmin2
              New Genomics Technologies Take Aim at Long-Standing Limits
              by SEQadmin2


              Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

              We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
              ...
              09-28-2026, 10:25 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, Yesterday, 11:13 AM
            0 responses
            16 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, Yesterday, 10:48 AM
            0 responses
            17 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-15-2026, 10:52 AM
            0 responses
            35 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-14-2026, 05:39 AM
            0 responses
            42 views
            0 reactions
            Last Post SEQadmin2  
            Working...