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
            The Factors Reshaping Genome Assembly
            by SEQadmin2



            When the Human Genome Project declared the human genome finished in 2003, portions of the sequence were still missing, including many of its most repetitive and structurally complex regions.1 Still, for the next two decades, researchers analyzed their sequencing data against the single linear reference that came out of this effort. Released in 2013 as GRCh38, that reference has powered countless discoveries, but it has gaps and cannot capture the genetic diversity of the world’s...
            11-24-2026, 07:04 AM
          • SEQadmin2
            16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
            by SEQadmin2





            NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
            10-30-2026, 06:46 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 11-23-2026, 11:11 AM
          0 responses
          32 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 11-17-2026, 06:27 AM
          0 responses
          42 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 11-12-2026, 07:59 AM
          0 responses
          65 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 11-05-2026, 09:25 AM
          0 responses
          67 views
          0 reactions
          Last Post SEQadmin2  
          Working...