Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Simon Anders
    Senior Member
    • Feb 2010
    • 995

    #16
    htseq-count counts each read pair for the gene it maps to as long as it maps unambiguously to one gene. If one of the two mates could not be aligned, htseq-count uses the information from the aligned mate only.

    What to you mean by "including single reads"? Do you have a sample with a mixture of paired-end and single-end reads?

    Comment

    • Dinesh Heisnam
      Member
      • Dec 2013
      • 10

      #17
      Hi Simon. thanks for the reply.

      what we generate is the paired end read. then we run the Q20 dynamic trim of SolexaQA package to filtered out low quality reads. Dynamic trim give two output-one single reads and other paired reads. we used both single read and paired read.
      so what is your suggestion. should we removed the single reads for mapping.

      Comment

      • Simon Anders
        Senior Member
        • Feb 2010
        • 995

        #18
        Why should you? I'm still unsure whether I understand where you problem is.

        You will need to align the paired-end and the single-end FASTQ files in separate runs of the aligner, anyway, because the aligner won't like it if you pass a mixture of both. And then you get two SAM files and count htseq-count for each file. And if you like, you can add up the counts from the two files.

        And as an aside: All modern alignment tool take the base-call qualities into account and will leave a bad-quality read unaligned. I believe that there is not need to filter out low-quality reads beforehands. Better leave this to your aligner, it know better when a read is too bad to be mappable.

        Comment

        • Dinesh Heisnam
          Member
          • Dec 2013
          • 10

          #19
          thanks. Simon
          i go through the top hat manual again and it says the same as you suggest.
          well it seems to the right to align with fastq reads.
          one more problem
          we got consistent warnings says 'not mate found. is SAM properly sorted?' we check the sorted SAM and it and seems fine. After ignoring such warnings we got "0" counts for many GTF transcripts (Cufflink) with HTseq. we are not sure whether it is because of the not finding mate.
          please suggest

          Comment

          • Simon Anders
            Senior Member
            • Feb 2010
            • 995

            #20
            Is you file sorted by read name (not: by position)?

            Comment

            • dpryan
              Devon Ryan
              • Jul 2011
              • 3478

              #21
              If you're trying to count by transcript rather than gene and there are multiple overlapping transcripts (quite common), then it'd be unsurprising to have 0 counts for most things.

              BTW, the warning message is probably due to the odd tophat behaviour of leaving out unmapped mates if it can't map both as a pair and only one maps as a singleton.

              Comment

              • Simon Anders
                Senior Member
                • Feb 2010
                • 995

                #22
                Spotted with keen eye by Devon. Counting reads per transcript is rarely useful. (See my several earlier posts on this.) What did you intend to do with these counts?

                Comment

                • Dinesh Heisnam
                  Member
                  • Dec 2013
                  • 10

                  #23
                  we sort the SAM with read name with the command 'sort -s -k 1,1 A.SAM > Sorted.SAM

                  Comment

                  • Dinesh Heisnam
                    Member
                    • Dec 2013
                    • 10

                    #24
                    we have RNA Seq data for six different conditions. we mapped filtered reads of these conditions to reference genome independently and get the SAM and with the maping information we run Cufflink. After cufflink, the redundancy was removed withh cuffmerge.
                    We are counting the GFF transcripts from the cuffmerge. i am not sure whether we should call it gene or transcripts. we intend to take these counts as input for DESeq.
                    however we are stuck in this counting step.

                    Comment

                    • dpryan
                      Devon Ryan
                      • Jul 2011
                      • 3478

                      #25
                      If a gene has multiple transcripts then that won't work. If you ended up squishing all of the transcripts of a gene together into a single "union gene model" then that likely will work. When in doubt, (1) look at the data visually with IGV/a text editor and (2) run htseq-count with the -o option so you can see what happens to some reads that you think (from looking at things in IGV or a similar tool) should increase the count of a gene/transcript.

                      Comment

                      • Dinesh Heisnam
                        Member
                        • Dec 2013
                        • 10

                        #26
                        Hi Ryan,
                        when we check the sorted SAM with "-s -c 1,1 sorted A.sam" we get error.
                        So this suggest the sorting is the problem.
                        And sorting the sam file takes long time. is there any alternative to sort the sam. let me remind you that the sam file size is ~120GB.

                        Comment

                        • dpryan
                          Devon Ryan
                          • Jul 2011
                          • 3478

                          #27
                          Yeah, if you get an error then likely something went wrong. Just stick to using BAM files (they're smaller anyway) and then just "samtools sort -n A.bam A.namesorted".

                          Comment

                          • Dinesh Heisnam
                            Member
                            • Dec 2013
                            • 10

                            #28
                            we are trying samtools and will let you know.
                            thanks

                            Comment

                            • Dinesh Heisnam
                              Member
                              • Dec 2013
                              • 10

                              #29
                              Hi Ryan
                              we tried to sort the BAM file with the samtools with the command 'samtools sort -n -m maxMem A.bam -0 sortA.bam. however sorting is taking longer time more than 24 hrs and it not complete yet. And a number of bam files are also generated in the file.

                              Comment

                              • dpryan
                                Devon Ryan
                                • Jul 2011
                                • 3478

                                #30
                                Yeah, with 40 GB files that'll still take a while. There are some implementations of samtools that can do multithreaded sorting. Have a look through this thread for those. There's also biobambam (there's also a publication that I can't seem to find at the moment), which is supposed to be generally faster but I've never actually used.

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