Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • mathew
    Member
    • Jan 2011
    • 81

    Software for sliding window

    I am looking for a tool which can allow me to divide a bacterial genome into different sliding windows and count the average of read count. Am I have to go only with custom script or is there any software out there which can allow me to do that.

    Thanks

  • xied75
    Senior Member
    • Feb 2012
    • 129

    #2
    1, If we developers do make such programs, anyone is willing to pay for it?
    2, If not, will any journal publish a program like this?
    3, If not, a free coffee? Too far away.

    Comment

    • mathew
      Member
      • Jan 2011
      • 81

      #3
      software for sliding window

      I think all scientific fields go hand in hand. I am asking for a pointer if some one came across such tool in any software.

      Thanks

      Comment

      • krobison
        Senior Member
        • Nov 2007
        • 734

        #4
        Yikes! Quite an unhelpful response there -- for what is really a pretty trivial program.

        Once you have all the reads mapped in a BAM file, then this is easy to do with Perl and the Bio:B::Sam library for Perl (or Python and same or so forth). Probably about a page of Perl (or similar language);

        Not speedy, but you can also do it with a series of samtools commands:

        samtools view myaln.sam seq1:1000-2000 | wc
        samtools view myaln.sam seq1:1500-2500 | wc

        The first number of each line will be the number of reads found in that window. Generating this series of commands can even be run entirely on the command line.

        Yet another approach would be to generate the pileup & parse that; the read ends are marked in the output and so could be used to do this counting (to depth at middle of window, add all the read start markers found within the window but to the right of the middle plus all the read end markers found within the window but to the left of the middle).

        Comment

        • mathew
          Member
          • Jan 2011
          • 81

          #5
          Sliding window

          krobison

          Thanks for your help!!

          Comment

          • dariober
            Senior Member
            • May 2010
            • 311

            #6
            Originally posted by mathew View Post
            I am looking for a tool which can allow me to divide a bacterial genome into different sliding windows and count the average of read count. Am I have to go only with custom script or is there any software out there which can allow me to do that.

            Thanks

            I think bedtools has already all you need:

            This snippet will divide your genome file (format: chromosome-name<tab>chr size) in windows of size 1000bp by sliding them by 100bp
            Code:
            bedtools makewindows -g mygenome.bed -w 1000 -s 100 -i srcwinnum >  mygenome.windows.bed
            Now count reads in each window:

            Code:
            bedtools coverage -abam myreads.bam -b mygenome.windows.bed > mycov.bed
            If you want to know the average read count in the windows have a look at "bedtools groupby" or read the output of "bedtools coverage" to R, if you are familiar with it and the file is not too big.

            Good luck!

            Dario

            Comment

            • StevenW
              Member
              • May 2011
              • 15

              #7
              SeqMonk

              Perhaps Seqmonk would be of use. SeqMonk is a program to enable the visualisation and analysis of mapped sequence data. The progam allows the user to divide the genome into sliding windows and then quantify each region.

              Seqmonk homepage

              Comment

              Latest Articles

              Collapse

              • SEQadmin2
                From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
                by SEQadmin2


                Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


                The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
                ...
                06-02-2026, 10:05 AM
              • SEQadmin2
                Single-Cell Sequencing at an Inflection Point: Early Impacts of New Platforms and Emerging Trends
                by SEQadmin2


                With the launch of new single-cell sequencing platforms in 2026, the field stands at an exciting inflection point. This article surveys the most impactful advances in the field and discusses how they’re reshaping research in cancer, immunology, and beyond.


                Introduction

                Single-cell sequencing technologies have undergone remarkable advances over the past decade, transitioning from low-throughput experimental approaches to highly scalable platforms capable of...
                05-22-2026, 06:42 AM
              • SEQadmin2
                Environmental Genomics in the Age of NGS: From Microbes to Conservation Strategies
                by SEQadmin2

                Studying ecosystems means dealing with complex, multi-species communities that are hard to observe at scale. This complexity, however, hides many important questions to be answered, from how biogeochemical cycles work and how climate change can affect species distribution to how conservation strategies can work best.


                Genomics, particularly since the expansion of NGS, has transformed ecosystem ecology. By sequencing environmental DNA, we can now assess biodiversity without direct...
                05-06-2026, 09:04 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, Today, 08:59 AM
              0 responses
              8 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 06-02-2026, 12:03 PM
              0 responses
              21 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 06-02-2026, 11:40 AM
              0 responses
              15 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 05-28-2026, 11:40 AM
              0 responses
              29 views
              0 reactions
              Last Post SEQadmin2  
              Working...