Go Back   SEQanswers > Bioinformatics > Bioinformatics

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using trimmed reads with HTseq-count before DESeq? aafc Bioinformatics 0 12-04-2012 11:24 AM
HTseq count to DESeq (?) ThePresident Bioinformatics 18 09-06-2012 08:12 AM
Output of HTseq-count? kasutubh Bioinformatics 8 08-21-2012 10:39 PM
analysis of single and PE reads with htseq-count and DESeq dglemay Bioinformatics 1 04-26-2012 11:23 PM
DEXSeq vs htseq-count/DESeq counting model jdsv Bioinformatics 2 11-20-2011 07:48 PM

Thread Tools
Old 10-11-2013, 04:06 AM   #1
Senior Member
Location: Germany

Join Date: May 2010
Posts: 149
Thumbs up htseq-count output for DESeq


I am having a problem using the output of htseq-count with the DESeq package.

I am using htseq-count on a few files with this command:
for file in `ls -1 *.bam`
NEW_FILE=$(echo $file | sed "s/.bam//")
echo $NEW_FILE;
samtools index $file;
samtools view -h -o $NEW_FILE.sam $file;
htseq-count -s no $NEW_FILE.sam ~/genomes/celegans/Caenorhabditis_elegans/UCSC/ce10/Annotation/Genes/genes.gtf  > $NEW_FILE.htseq_count.txt;
echo "done with file $file \n"
When htseq-count is running I get the following warning:

/usr/local/lib/python2.6/dist-packages/HTSeq-0.5.3p3-py2.6-linux-x86_64.egg/HTSeq/ RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility
from _HTSeq import *
/usr/local/lib/python2.6/dist-packages/HTSeq-0.5.3p3-py2.6-linux-x86_64.egg/HTSeq/ RuntimeWarning: numpy.flatiter size changed, may indicate binary incompatibility
from _HTSeq import *
But it runs all the way to the end.

Than i have a list of genes with read counts, BUT the first line has only one item.
This is how the output looks like:
21ur-1	0
21ur-10	0
21ur-100	0
21ur-1000	0
21ur-10000	0
21ur-10001	0
21ur-10002	0
21ur-10003	0
21ur-10004	0
I just can't figure out what this number is. It doesn't correspond to any parameters I checked (#genes with or w.o. reads, #genes in total, with no alignment etc.).

I can't even figure whether or not it has anything to do with the error massage I am getting.
Each of the Output files gets a number on the first line. They all seems to be random.

The problem is that DESeq accepts a two-columns data frame and when this number in the first line shows up, it return an error massage.
> cds_htseq <- newCountDataSetFromHTSeqCount(countTable, directory="HTSEQ_COUNT/")
Error in `colnames<-`(`*tmp*`, value = 1:27) : 
  attempt to set 'colnames' on an object with less than two dimensions
When I remove the first line in all the files, it works fine.

What is the reason for this output?

frymor is offline   Reply With Quote
Old 10-12-2013, 01:41 AM   #2
Simon Anders
Senior Member
Location: Heidelberg, Germany

Join Date: Feb 2010
Posts: 994

You may have a gene with no name in your GTF file, i.e., with empty gene ID.

Your error has little to do with the problem. It is about your numpy installation being incompatible to your HTSeq installation, maybe because one of the twoi is 64bit and the other 32 bit. This is ugly but as numpy is not used in htseq-count, it won't matter.
Simon Anders is offline   Reply With Quote

deseq, htseq count, r packages

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -8. The time now is 07:35 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Single Sign On provided by vBSSO