<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div>htseq-count doesn’t support GFF3, only older GFF or GTF (note the ‘gene_id’ attribute is very much a GTF thing).  I mention this here (and the reasons why you should be wary):</div>
<div><br>
</div>
<div>   <a href="http://www.biostars.org/p/83903/">http://www.biostars.org/p/83903/</a></div>
<div><br>
</div>
<div>In short, don't trust htseq-count results (particularly for any eukaryotic counts) unless you convert to a supported format.  This is pretty easy to do, actually; the gff_read tool that comes with Cufflinks does a decent job, and there are other tools
 capable of doing the same.  Also be aware that if you use PE alignments the BAM file must be name-sorted, not coordinate-sorted.</div>
<div><br>
</div>
<div>Also, just to point out, there is a much faster C-based multithreaded alternative to htseq-count called featureCounts that takes one or more native BAM files as input (it unfortunately doesn’t support GFF3 either).  Results are pretty much identical to
 htseq-count.</div>
<div><br>
</div>
<div>chris</div>
<br>
<div>
<div>On Feb 28, 2014, at 7:42 PM, Hans Vasquez-Gross <<a href="mailto:havasquezgross@ucdavis.edu">havasquezgross@ucdavis.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div dir="ltr">
<div>Hi All,</div>
<div><br>
</div>
<div>  I just wanted to also point out another standard gff parsing tool isn't able to work with your gff3 reference with the following error highlighted in bold:</div>
<div><br>
</div>
<div>
<div style="font-family:arial,sans-serif;font-size:13px">
<div> samtools view -sB Kronos0_KTC1_bwa_ABgenome_20131211.sorted.rmdup.bam | htseq-count - /Volumes/DATA2/users/havasquezgross/Projects/exon_capture/database/Triticum_aestivum.IWGSP1.21.noQs.gff3</div>
<div>Error occured in line 137 of file /Volumes/DATA2/users/havasquezgross/Projects/exon_capture/database/Triticum_aestivum.IWGSP1.21.noQs.gff3.</div>
<div><b>Error: Feature Traes_3AS_775C097A2.E1 does not contain a 'gene_id' attribute</b></div>
<div>[Exception type: SystemExit, raised in count.py:55]</div>
<div><br>
</div>
<div>Another item to consider for the march release.  I look forward to working with the updated release.</div>
<div><br>
</div>
<div>Cheers,</div>
<div>-Hans</div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br>
Dev mailing list    <a href="mailto:Dev@ensembl.org">Dev@ensembl.org</a><br>
Posting guidelines and subscribe/unsubscribe info: <a href="http://lists.ensembl.org/mailman/listinfo/dev">
http://lists.ensembl.org/mailman/listinfo/dev</a><br>
Ensembl Blog: <a href="http://www.ensembl.info/">http://www.ensembl.info/</a><br>
</blockquote>
</div>
<br>
</body>
</html>