Unconfigured Ad

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

    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
              Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
              by SEQadmin2


              Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

              The systematic characterization of the human proteome has
              ...
              07-20-2026, 11:48 AM
            • 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

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, 07-20-2026, 11:10 AM
            0 responses
            14 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-13-2026, 10:26 AM
            0 responses
            31 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-09-2026, 10:04 AM
            0 responses
            42 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-08-2026, 10:08 AM
            0 responses
            27 views
            0 reactions
            Last Post SEQadmin2  
            Working...