Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • komalsrathi
    Member
    • Aug 2013
    • 14

    #1

    Error in HTSEQ

    Hi everyone,

    I am using the latest version of GSNAP to get alignments for 29 RNAseq samples. So after I get a SAM alignment from GSNAP, I use samtools to convert it into BAM and then:

    samtools fixmate input.bam input_unsortfix.bam
    samtools view -f 0x0002 input_unsortfix.bam | htseq-count -s reverse - Homo_sapiens.GRCh37.73.protein_linc.gtf > input.counts
    My GTF file contains only protein coding & lincRNAs and it is the latest version. I get the following error after running htseq-count command:

    Error: 'itertools.chain' object has no attribute 'get_line_number_string'[Exception type: AttributeError, raised in count.py:201]
    I have successfully run around 15 samples but I am getting this error in the other 14 samples. How can I solve this issue?
    Last edited by komalsrathi; 10-24-2013, 10:29 AM.
    Komal Rathi
    Bioinformatics Application Developer
    University of Pennsylvania
  • Simon Anders
    Senior Member
    • Feb 2010
    • 995

    #2
    Are you using the newest version? I've fixed the 'get_line_number_string' issue two weeks ago.

    Comment

    • komalsrathi
      Member
      • Aug 2013
      • 14

      #3
      Hi Simon,

      I am using "Part of the 'HTSeq' framework, version 0.5.4p1". I will update it to the latest version. Thanks for the prompt reply.
      Komal Rathi
      Bioinformatics Application Developer
      University of Pennsylvania

      Comment

      • komalsrathi
        Member
        • Aug 2013
        • 14

        #4
        Originally posted by Simon Anders View Post
        Are you using the newest version? I've fixed the 'get_line_number_string' issue two weeks ago.
        Hi Simon,

        I updated htseq-count to version 0.5.4p5 and now I am getting a different error but for the same file:

        Error occured when processing SAM input (line 50956571):
        ("Malformed SAM line: MRNM == '*' although flag bit &0x0008 cleared", 'line 50956571')
        [Exception type: ValueError, raised in _HTSeq.pyx:1323]
        This is line no. 50956571. As you can see it contains only Ns.

        HTML Code:
        HWI-ST1006:111:D2AADACXX:3:2208:1098:73812	165	*	0	0	*	chr20	44474350	0	NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN	###################################################################################################	RG:Z:C00079
        Last edited by komalsrathi; 11-04-2013, 01:58 PM.
        Komal Rathi
        Bioinformatics Application Developer
        University of Pennsylvania

        Comment

        • komalsrathi
          Member
          • Aug 2013
          • 14

          #5
          The issue is solved. I parsed my alignments to remove any alignment matching '\t\*\t' pattern. Thanks
          Komal Rathi
          Bioinformatics Application Developer
          University of Pennsylvania

          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
          24 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...