Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Firebird
    Member
    • Jun 2010
    • 18

    #1

    Show Overall Coverage

    Hi,

    is there a possibility to get an overview picture of the coverage? I can do this with IGV only for parts of a chromosome when I am zoomed in very deep.

    Further more, is there a possiblity to filter out regions or exons which don't reach a coverage threshold?
    Thanks
    Last edited by Firebird; 12-17-2010, 02:03 AM.
  • Bruins
    Member
    • Feb 2010
    • 78

    #2
    Hi,

    Are you familiar with R? I once got some R code I think from this forum (I neglected to write that down ).

    I don't know what files you have available but I had a samtools pileup so I ran:
    Code:
    cut -f 2,8 pileup.out > pileup.cov
    to extract the coverage for each position and then in R:
    Code:
    data <- read.table (file="pileup.cov", sep="\t", header=F)
    colnames(data) <- c("position", "coverage")
    depth <- mean(data[,"coverage"])
    window <- 101
    rangefrom <- 0
    rangeto <- length(data[,"position"])
    data.smoothed<-runmed(data[,"coverage"],k=window)
    png(file="coverage.png",width=1900,height=1000)
    plot(x=data[rangefrom:rangeto,"position"],y=data.smoothed[rangefrom:rangeto],pch=".", cex=1,xlab="bp position",ylab="depth",type="l")
    dev.off()
    Then check the png file for a quick coverage overview.

    I did this for a small insect genome. Perhaps you should split per chromosome if human.

    Hope that helps,
    cheers

    Comment

    • Firebird
      Member
      • Jun 2010
      • 18

      #3
      No, unfortunatly I'm not familiar with R.

      I can try it with the code u provided. Is it ok when I just change the path to my file?

      Thank
      Last edited by Firebird; 12-17-2010, 07:47 AM.

      Comment

      • simonandrews
        Simon Andrews
        • May 2009
        • 870

        #4
        SeqMonk can display an overview of a quantitation over the whole genome, for any of the quantitation types it supports. Is this anything close to what you're after?
        Attached Files

        Comment

        • drio
          Senior Member
          • Oct 2008
          • 323

          #5
          bruins approach does not account for regions without coverage (pileup does not show them). You need to incorporate your reference genome to account for that.
          -drd

          Comment

          • dan
            wiki wiki
            • Jul 2008
            • 194

            #6
            Try Tablet:

            Homepage: Dan Bolser
            MetaBase the database of biological databases.

            Comment

            • Bruins
              Member
              • Feb 2010
              • 78

              #7
              @drio: true, but the plot can be useful to quickly see if there are peaks in the coverage and the overall depth of the coverage. An example. (sorry for the size...) It shows that there are some extreme peaks and that mostly the coverage is very low.


              @Firebird: I forgot to mention the cut command is a shell command. Er...

              Perhaps (if you're still interested in creating the quick plot and you have a samtools pileup file) you can split the pileup per chromosome and read in all columns. Then copy paste into R:
              Code:
              setwd("/path/to/your/workingdirectory")
              data <- read.table (file="pileup_chr1.cov", sep="\t", header=F)
              As for the path, I'm a Linux-person. If you use Windows you know better than me what the path should look like.
              Now I'm not so sure about the column naming and if R accepts less column names than there are columns. If it complains about it, just add the correct number of column names after column 8 coverage.
              Code:
              colnames(data) <- c("chr", "position", "3", "4", "5", "6", "7", "coverage")
              Code:
              depth <- mean(data[,"coverage"])
              window <- 101
              rangefrom <- 0
              rangeto <- length(data[,"position"])
              data.smoothed<-runmed(data[,"coverage"],k=window)
              png(file="coverage_chr1.png",width=1900,height=1000)
              plot(x=data[rangefrom:rangeto,"position"],y=data.smoothed[rangefrom:rangeto],pch=".", cex=1,xlab="bp position",ylab="depth",type="l")
              dev.off()
              You can close R after this, it has written a png file called coverage_chr1.png.

              Comment

              • honey
                Senior Member
                • Feb 2010
                • 151

                #8
                Hi Simon,

                Discussion of next-gen sequencing related bioinformatics: resources, algorithms, open source efforts, etc

                Can it be used to show RNA-seq coverage if so what would be the steps I will be following in Seqmonk, I have tophat out put bam file.
                Thanks.

                Comment

                • simonandrews
                  Simon Andrews
                  • May 2009
                  • 870

                  #9
                  Originally posted by honey View Post
                  Hi Simon,

                  Discussion of next-gen sequencing related bioinformatics: resources, algorithms, open source efforts, etc

                  Can it be used to show RNA-seq coverage if so what would be the steps I will be following in Seqmonk, I have tophat out put bam file.
                  Thanks.
                  A lot of this is covered in the tutorial video we made for RNA-Seq analysis in SeqMonk, but the basic steps are:
                  1. Import the BAM file as single end (even if your data is paired end) and choose to split spliced reads
                  2. Use the feature probe generator to make probes over mRNA features, and split these into subfeatures (exons)
                  3. Use the base pair quantitation to quantitate your data, and ensure that you correct for probe length (so as to get comparable measures for probes of different lengths)


                  Your data will be now be quantitated by the read density over each exon, and you can zoom right out to see the pattern of expression across the currently selected chromosome. To see the pattern over the whole genome simply select the dataset you want to see in the data view (the folders in the top left), and the genome view in the top right will show you a coverage plot for the whole genome (similar to the one attached to an earlier note in this thread).

                  Hope this helps

                  Comment

                  Latest Articles

                  Collapse

                  • SEQadmin2
                    Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
                    by SEQadmin2



                    CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

                    Despite this, “CRISPR helped turn genome editing from a specialized technique into
                    ...
                    07-31-2026, 11:01 AM
                  • 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

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by SEQadmin2, Yesterday, 10:13 AM
                  0 responses
                  14 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-31-2026, 02:55 AM
                  0 responses
                  29 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-24-2026, 12:17 PM
                  0 responses
                  22 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-23-2026, 11:41 AM
                  0 responses
                  21 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...