Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • tgolubch
    Junior Member
    • Jul 2009
    • 4

    Thanks, Nils; I had already tried changing the prefix, but it still seems to fail -- I'll look into it again when I have time.

    Comment

    • Jeckow
      Junior Member
      • Sep 2009
      • 4

      Hi nilshomer and thanks for your reply!

      I've sorted and created the indexes but the samtools message remains the same.
      Any other ideas? Do you know if there exists another way to extract a particular chromosomal region from a .bam file?
      Thanks,

      M.

      Comment

      • nilshomer
        Nils Homer
        • Nov 2008
        • 1283

        Originally posted by Jeckow View Post
        Hi nilshomer and thanks for your reply!

        I've sorted and created the indexes but the samtools message remains the same.
        Any other ideas? Do you know if there exists another way to extract a particular chromosomal region from a .bam file?
        Thanks,

        M.
        You could just run "samtools view in.bam | grep chr22" for example. Weird that your merge fails.

        Nils

        Comment

        • nilshomer
          Nils Homer
          • Nov 2008
          • 1283

          Originally posted by tgolubch View Post
          Thanks, Nils; I had already tried changing the prefix, but it still seems to fail -- I'll look into it again when I have time.
          Could you post your example (with a download link) to [email protected] so I can take a look?

          Nils

          Comment

          • Alberto Magi
            Junior Member
            • Sep 2009
            • 3

            Hi all,

            i need help to obtain read depth of coverage from a .bam file. Does anybody know some tool to automatically obtain a tab-delimited file (with chromosome, position, coverage depth.....) starting from a bam file?
            i wait for suggestions
            thanks a lot

            Alberto

            Comment

            • apfejes
              Senior Member
              • Feb 2008
              • 236

              That sounds suspiciously similar to a wig file, although, the format is not quite what you're expecting. I assume what you're looking for would look like:

              chr1 1 0
              chr2 2 1
              chr2 3 1
              ... etc

              The problem is that such file would be incredibly inefficient, hence the wig file, which will provide a more compact version. (Presumably the "variable width" format is what you're looking for.)

              Although not quite the same, FindPeaks 4.0 (Yes, sorry, I'm plugging my own software) will generate fixedstep format wig files from sam/bam files, which would give you a similar result, which would look like:

              fixedStep chrom=chr22 start=16653550 step=1
              6
              7
              8
              9
              10
              11
              ......

              where you get a single line that tells you the start point (chr and position), and then the coverage of each position after that.

              There are plenty of other wig file generators out there as well - although I'm not sure how many of them read bam/sam yet.

              Cheers
              The more you know, the more you know you don't know. —Aristotle

              Comment

              • lh3
                Senior Member
                • Feb 2008
                • 686

                @Alberto Magi

                What you are looking for is "pileup" (http://samtools.sourceforge.net/pileup.shtml). Please also see this page (http://samtools.sourceforge.net/pipe.shtml) about getting pileup in a specified region.

                @apfejes

                Pileup output is not part of Picard, you should be able to get similar things from GATK (http://www.broadinstitute.org/gsa/wi...alysis_Toolkit)

                Comment

                • apfejes
                  Senior Member
                  • Feb 2008
                  • 236

                  Thanks - pileup also fits that description. Variety is the spice of life. (=

                  Though, just to clarify, I was just looking to point Alberto in the right direction, and had forgotten about pileup. (I don't use pileup, but I do use Picard.)
                  The more you know, the more you know you don't know. —Aristotle

                  Comment

                  • torrey
                    Junior Member
                    • Mar 2009
                    • 5

                    I was curious if anyone has found a workaround to this error? It is coming up for me when viewing novoalign alignments. I am using samtools 0.1.6 (r453), and get the following error when loading a samtools converted bam file from novoalign's sam file

                    samtools: bam_lpileup.c:116: tview_func: Assertion `l == tv->n_pre' failed.


                    thanks


                    Originally posted by zee View Post
                    I was wondering if I could get some help on the SAM specification.

                    I get the error:



                    When I page the viewer to my reads containing indels. A sample of my data is



                    And I'm using novoalign format where I've modified the novo2sam.pl script to produce a 'correct' CIGAR format. Most samtools operation work except for the tview

                    Comment

                    • lh3
                      Senior Member
                      • Feb 2008
                      • 686

                      Do you have a small sample file for me to test? Thanks.

                      Comment

                      • polivares
                        Member
                        • Jan 2009
                        • 29

                        Any topic/question that does not fit into the subcategories below. If you're unsure of where to put something, ask in here!

                        Comment

                        • wumblehoots
                          Junior Member
                          • Sep 2009
                          • 4

                          Pileup Base Quality

                          Hi, I was wondering if anyone could point me in the direction of any documentation that describes how to interpret the base quality information reported within a pileup format file.

                          I've checked here: http://samtools.sourceforge.net/pileup.shtml but can't find any information.

                          Cheers

                          Comment

                          • houhuabin
                            Member
                            • Apr 2009
                            • 23

                            Hi heng,
                            I used samtools to built my bam file, but it dose't have a @HD field, which is needed by GATK's check for sort. How can I fix it?

                            Comment

                            • jasonbcold
                              Junior Member
                              • Sep 2009
                              • 4

                              Sam/bam to jbrowse

                              Hi there,
                              does anyone know, how to use/upload alignments in sam/bam format to jbrowse?
                              thanks,
                              peter

                              Comment

                              • polivares
                                Member
                                • Jan 2009
                                • 29

                                @jasonbcold
                                I have not used jbrowse but I'd recommend you to try IGV which can load indexed BAM alignments without any trouble. If you need some helo PM me.

                                Comment

                                Latest Articles

                                Collapse

                                • SEQadmin2
                                  Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                                  by SEQadmin2


                                  I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.


                                  Here are nine questions we think about, in roughly the order they matter, before...
                                  06-18-2026, 07:11 AM
                                • 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

                                ad_right_rmr

                                Collapse

                                News

                                Collapse

                                Topics Statistics Last Post
                                Started by SEQadmin2, 06-17-2026, 06:09 AM
                                0 responses
                                30 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, 06-09-2026, 11:58 AM
                                0 responses
                                44 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, 06-05-2026, 10:09 AM
                                0 responses
                                49 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, 06-04-2026, 08:59 AM
                                0 responses
                                51 views
                                0 reactions
                                Last Post SEQadmin2  
                                Working...