DANPOS profile does not work --> IndexError: list index out of range

364 views
Skip to first unread message

Gatti_E

unread,
Mar 12, 2015, 5:59:00 AM3/12/15
to dan...@googlegroups.com
dear all,

I am trying to use DANPOS on my MNAse-Seq data. Unofrtunately, I am not familiar with python; despite this, I was able to run danpos.py wiq in order to normalize wig files from two different samples.
I then started to use the other commands of danpos using your example input files.

my command:

danpos-2.2.2/danpos.py profile sampleB.wig --genefile_paths geneGroup1.xls

DANPOS starts to processes the wig file and when it starts to profile for TSS it stops giving the following error:

File "danpos-2.2.2/lib.py", line 250, in occAroundPoints
    chr,name,stra=col[chrColID],col[nameColID],col[straColID]
IndexError: list index out of range

Any idea why is not working?

Thanks in advance
E.

Kaifu

unread,
Mar 12, 2015, 10:57:20 AM3/12/15
to dan...@googlegroups.com
It seems likely that the format of your gene file geneGroup1.xls is not correct, see https://sites.google.com/site/danposdoc/home/profile/input-files

Gatti_E

unread,
Mar 12, 2015, 11:47:21 AM3/12/15
to dan...@googlegroups.com
I am using the example files provided by DANPOS (sampleB.wig and geneGroup1.xls)
Unfortunately the error message now is

File "danpos-2.2.2/lib.py", line 293, in occAroundPoints
    v=s/(num-num*excludeP*2)#len(vec)
ZeroDivisionError: float division by zero

To me it makes no sense since I am using example input files.

Any other suggestion?

thanks
E.

Kaifu

unread,
Mar 12, 2015, 3:27:35 PM3/12/15
to dan...@googlegroups.com
Did you ever edit the gene file? 

I just downloaded the latest version again and run it with the same command line, but didn't get any error message:
python danpos.py profile sampleB.wig  --genefile_paths geneGroup1.xls


Gatti_E

unread,
Mar 16, 2015, 5:52:10 AM3/16/15
to dan...@googlegroups.com
Thanks,

now it works.
Now I will try on my MNAse-seq data paying attention on the correct format of the input files.
Thnaks again for the short and efficient feedback

EG
Reply all
Reply to author
Forward
0 new messages