Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • bstamps
    Member
    • Oct 2012
    • 40

    HT-Seq Count (Banging Head Against Wall)

    So I've seen this error crop up in the forums several times, but attempting to solve with the suggestions (find/replace within the gff file, use the -i option) doesn't seem to help...

    When I run

    htseq-count /media/lab/Glacier/Completed_RNAseq/12.sam pf5.gff

    I get the error

    Error occured in line 5200 of file pf5.gff.
    Error: Failure parsing GFF attribute line
    [Exception type: ValueError, raised in __init__.py:177]


    Checking the gff line 5200 looks like this (and a few after)

    NC_004129 img_core_v400 CDS 6045540 6045707 . + 0 gene_id=637322614;locus_tag=PFL_5279;product=aspartate 1-decarboxylase precursor; PanD
    NC_004129 img_core_v400 CDS 6045954 6047618 . + 0 gene_id=637322615;locus_tag=PFL_5280;product=glucose-6-phosphate isomerase
    NC_004129 img_core_v400 CDS 6047747 6049684 . + 0 gene_id=637322616;locus_tag=PFL_5281;product=acetyl-coenzyme A synthetase
    NC_004129 img_core_v400 CDS 6049738 6050604 . + 0 gene_id=637322617;locus_tag=PFL_5282;product=hypothetical protein
    NC_004129 img_core_v400 CDS 6050665 6051942 . + 0 gene_id=637322618;locus_tag=PFL_5283;product=acetyl-CoA acetyltransferase

    I'm lost as to how to proceed- There doesn't seem to be any error with the file
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    I expect the semi-colon between "precursor" and "PanD" is causing an issue. PanD isn't its own field, but coming after a semicolon, I suspect htseq-count is expecting it to be. You might just remove the semi-colon and see if that fixes things.

    Comment

    • bstamps
      Member
      • Oct 2012
      • 40

      #3
      That did the trick.

      New problem...

      Warning: No features of type 'exon' found.
      Warning: Malformed SAM line: MRNM != '*' although flag bit &0x0008 set
      Warning: Malformed SAM line: RNAME != '*' although flag bit &0x0004 set
      Segmentation fault (core dumped)




      Sample is bacterial, so is there a way to suppress this? Pass "-t CDS" or something similar?

      Comment

      • dpryan
        Devon Ryan
        • Jul 2011
        • 3478

        #4
        If you only have "CDS" as opposed to both that and "exon", then yeah. That will at least remove the first warning. The second and third warnings can likely be ignored, they're warning you about something that's not actually incorrect. It's odd that htseq-count segfaults, hopefully "-t CDS" will clear that up.

        Comment

        • bstamps
          Member
          • Oct 2012
          • 40

          #5
          Trying again, converted my sorted.bam to a sorted.sam and had this error crop up.

          Warning: Read D3NH4HQ1:160:C1UJ8ACXX:7:1111:18163:68474 claims to have an aligned mate which could not be found. (Is the SAM file properly sorted?)
          Warning: Read D3NH4HQ1:160:C1UJ8ACXX:7:1113:13764:65962 claims to have an aligned mate which could not be found. (Is the SAM file properly sorted?)
          Warning: Read D3NH4HQ1:160:C1UJ8ACXX:7:1115:17060:20187 claims to have an aligned mate which could not be found. (Is the SAM file properly sorted?)
          Warning: Read D3NH4HQ1:160:C1UJ8ACXX:7:1205:13812:3203 claims to have an aligned mate which could not be found. (Is the SAM file properly sorted?)
          Warning: Read D3NH4HQ1:160:C1UJ8ACXX:7:1205:1284:98106 claims to have an aligned mate which could not be found. (Is the SAM file properly sorted?)
          Warning: Read D3NH4HQ1:160:C1UJ8ACXX:7:1214:20402:7870 claims to have an aligned mate which could not be found. (Is the SAM file properly sorted?)
          Warning: Read D3NH4HQ1:160:C1UJ8ACXX:7:1306:3086:83183 claims to have an aligned mate which could not be found. (Is the SAM file properly sorted?)
          Warning: Read D3NH4HQ1:160:C1UJ8ACXX:7:1308:8208:59054 claims to have an aligned mate which could not be found. (Is the SAM file properly sorted?)
          Warning: Read D3NH4HQ1:160:C1UJ8ACXX:7:1316:10565:55061 claims to have an aligned mate which could not be found. (Is the SAM file properly sorted?)
          Warning: Read D3NH4HQ1:160:C1UJ8ACXX:7:2202:12622:48507 claims to have an aligned mate which could not be found. (Is the SAM file properly sorted?)
          Warning: Read D3NH4HQ1:160:C1UJ8ACXX:7:2203:11480:33264 claims to have an aligned mate which could not be found. (Is the SAM file properly sorted?)
          Warning: Read D3NH4HQ1:160:C1UJ8ACXX:7:2204:4697:77559 claims to have an aligned mate which could not be found. (Is the SAM file properly sorted?)
          Warning: Read D3NH4HQ1:160:C1UJ8ACXX:7:2212:16668:56587 claims to have an aligned mate which could not be found. (Is the SAM file properly sorted?)
          Warning: Read D3NH4HQ1:160:C1UJ8ACXX:7:2212:20141:98589 claims to have an aligned mate which could not be found. (Is the SAM file properly sorted?)
          Warning: Read D3NH4HQ1:160:C1UJ8ACXX:7:2216:19574:46777 claims to have an aligned mate which could not be found. (Is the SAM file properly sorted?)
          Warning: Read D3NH4HQ1:160:C1UJ8ACXX:7:2307:18351:66925 claims to have an aligned mate which could not be found. (Is the SAM file properly sorted?)
          Warning: Read D3NH4HQ1:160:C1UJ8ACXX:7:1102:11861:9301 claims to have an aligned mate which could not be found. (Is the SAM file properly sorted?)
          Warning: Malformed SAM line: MRNM != '*' although flag bit &0x0008 set
          Warning: Read D3NH4HQ1:160:C1UJ8ACXX:7:1102:10738:17694 claims to have an aligned mate which could not be found. (Is the SAM file properly sorted?)
          Warning: Malformed SAM line: RNAME != '*' although flag bit &0x0004 set

          Comment

          • dpryan
            Devon Ryan
            • Jul 2011
            • 3478

            #6
            Oh, you really want to use a name sorted, rather than coordinate sorted BAM file. One could write a version of htseq-count to work with coordinate sorted BAM files, but I expect it'd be slower.

            Give "samtools sort -n" a try.

            Comment

            Latest Articles

            Collapse

            • 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
            • SEQadmin2
              Cancer Drug Resistance: The Lingering Barrier to Rising Survival
              by SEQadmin2



              Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

              There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
              07-08-2026, 05:17 AM
            • GATTACAT
              Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
              by GATTACAT
              Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
              07-01-2026, 11:43 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, 07-13-2026, 10:26 AM
            0 responses
            20 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-09-2026, 10:04 AM
            0 responses
            30 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-08-2026, 10:08 AM
            0 responses
            18 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-07-2026, 11:05 AM
            0 responses
            34 views
            0 reactions
            Last Post SEQadmin2  
            Working...