Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • question about the summary statistics

    Hi,

    I have samples that we have exome sequence. Threse have been aligned using BWA and variants called using GATK. I would like to calculate the summary statistics across all the individuals (not for each sample )( for example, the percentage of reads aligned , the mean target coverage etc). can this be done? If so how?

    Thanks,
    Kay

  • #2
    Two options

    Have you gotten your answer in other means, Kay?

    Otherwise, you can take a look at the following technique:

    Code:
    # Obtain depth of coverage for all target regions
    /path/to/samtools depth /path/to/.bam -b /path/to/.bed > coverage_depth.tsv
    # Enumerate the occuring coverage values
    cut -f3 coverage_depth.tsv | sort | uniq -c | sed 's/^[ \t]*//;s/[ \t]*$//' >coverage.tsv
    # Make bam file for on-target reads only
    /path/to/samtools view -b /path/to/.bam -L /path/to/.bed > ontarget.bam
    /path/to/samtools index /path/to/ontarget.bam
    #Retrieve number of reads mapped and unmapped in ontarget files
    /path/to/samtools idxstats ontarget.bam > stats_ontarget.idxstats
    #Retrieve number of reads mapped and unmapped in original
    /path/to/samtools idxstats /path/to/.bam  > stats_overall.idxstats
    You should also check the enrichment technique offered by pfrommolt in this post:
    Discussion of next-gen sequencing related bioinformatics: resources, algorithms, open source efforts, etc
    "Though it may seem that all's been said and done, originality still lives on" - some unoriginal guy who had nothing better to write as his signature

    Comment

    Latest Articles

    Collapse

    • seqadmin
      Essential Discoveries and Tools in Epitranscriptomics
      by seqadmin


      The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist on Modified Bases...
      Today, 07:01 AM
    • seqadmin
      Current Approaches to Protein Sequencing
      by seqadmin


      Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
      04-04-2024, 04:25 PM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, 04-11-2024, 12:08 PM
    0 responses
    37 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-10-2024, 10:19 PM
    0 responses
    41 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-10-2024, 09:21 AM
    0 responses
    35 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-04-2024, 09:00 AM
    0 responses
    54 views
    0 likes
    Last Post seqadmin  
    Working...
    X