Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • delasa
    Member
    • Sep 2012
    • 12

    #31
    the dexseq_count.py is just yelling at me "claims to have an aligned mate which could not be found. (Is the SAM file properly sorted?)"! I sorted the bam files using "samtools sort" and then converted it to sam file using samtools view but Is still have these messages!

    Comment

    • Simon Anders
      Senior Member
      • Feb 2010
      • 995

      #32
      Have you checke your free space. Out of quota maybe? Or maybe 'sort' puts its temporary files to /tmp (see option -T), an at least on our big server, this one is on a small partition which is always full. Also, use '-S 100G' to tell 'sort' that you have lots of memory. BTW, why '-s -c'? We don't need a stable sort.

      Comment

      • Simon Anders
        Senior Member
        • Feb 2010
        • 995

        #33
        'samtools sort' sort by position. Use 'samtools sort -n' to sort by name.

        Comment

        • wangxj
          Junior Member
          • Sep 2012
          • 7

          #34
          I have the same question as below.

          Can anyone answer those questions?

          very appreciate

          Originally posted by glados View Post
          Dear all.

          I'm trying to find information about how HTSeq counts reads. I understood that one pair (properly paired) is counted as 1 count.
          What about pairs that are not flagged as 'properly paired'?
          What about the reads that lost their mate and became single reads?
          Are they counted as 1 count as well? Or not counted at all?

          Additionally I'm loosing quite many reads that have multiple mappings. Anyone figured out a way to deal with this in HTSeq, instead of just throwing them all out?

          Comment

          • dpryan
            Devon Ryan
            • Jul 2011
            • 3478

            #35
            A read that lost its mate will be counted once and a warning will be produced if the unmapped mate isn't actually in the file (tophat does this). I don't recall htseq-count caring about the properly paired flag.

            Regarding multimappers, you don't know with certainty where they align, so the proper solution for downstream analyses toward which htseq-count is oriented would be to discard them.
            Last edited by dpryan; 09-09-2013, 08:11 AM.

            Comment

            • jkbonfield
              Senior Member
              • Jul 2008
              • 146

              #36
              This task is a related one to the bamtofastq conversion in that collation by name is necessary, but not necessarily a full sort.

              Collation is often fast, while sorting is very slow. I don't know if there are dedicated collation tools out there (but I'd be suprised if there aren't).

              Comment

              • gt1
                Junior Member
                • Jul 2013
                • 9

                #37
                Originally posted by jkbonfield View Post
                This task is a related one to the bamtofastq conversion in that collation by name is necessary, but not necessarily a full sort.

                Collation is often fast, while sorting is very slow. I don't know if there are dedicated collation tools out there (but I'd be suprised if there aren't).
                Try bamcollate2 in biobambam (https://github.com/gt1/biobambam).

                Comment

                • Gonza
                  Member
                  • Mar 2013
                  • 78

                  #38
                  Dear All,

                  Why not sort them BAM files instead of the SAM? SAM takes to much space. After running tophat2, I am thinking something like this:

                  $samtools sort -n accepted_hits.bam output.bam

                  then count using htseq-count.

                  Thoughts????

                  Comment

                  • dpryan
                    Devon Ryan
                    • Jul 2011
                    • 3478

                    #39
                    There's no need to name sort anymore, htseq-count can handle coordinate sorted BAM files.

                    Comment

                    • jkbonfield
                      Senior Member
                      • Jul 2008
                      • 146

                      #40
                      Originally posted by Gonza View Post
                      Dear All,

                      Why not sort them BAM files instead of the SAM? SAM takes to much space. After running tophat2, I am thinking something like this:

                      $samtools sort -n accepted_hits.bam output.bam

                      then count using htseq-count.

                      Thoughts????
                      You will of course get output.bam.bam. Oh how I hate thee Samtools!

                      Comment

                      • zaki
                        Member
                        • Dec 2012
                        • 15

                        #41
                        Dear all,

                        Originally posted by dpryan View Post
                        There's no need to name sort anymore, htseq-count can handle coordinate sorted BAM files.
                        Looking at htseq version 0.6.0, the help doc mentioned

                        Code:
                         -r ORDER, --order=ORDER
                                                'pos' or 'name'. Sorting order of <alignment_file>
                                                (default: name). Paired-end sequencing data must be
                                                sorted either by [B]position[/B] or by read name, and the
                                                sorting order must be specified. Ignored for single-
                                                end data.
                        Please forgive this very naive question, does position sorted bam = coordinated sorted bam? Im guessing its yes, but a conformation would be reassuring.

                        Many thanks

                        Comment

                        • dpryan
                          Devon Ryan
                          • Jul 2011
                          • 3478

                          #42
                          Yes, position sorted is another name for coordinate sorted.

                          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, Today, 10:13 AM
                          0 responses
                          13 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 07-31-2026, 02:55 AM
                          0 responses
                          23 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 07-24-2026, 12:17 PM
                          0 responses
                          19 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 07-23-2026, 11:41 AM
                          0 responses
                          18 views
                          0 reactions
                          Last Post SEQadmin2  
                          Working...