I'm running DANPOS3. I actually created a Docker container to run this program using the following commands:
I ran dpos with a single BAM file sample and everything went well. But every time I run dpos with more than one sample I get the same error:
fine-tuning positions for tmp_A_972-t0-20U-n3_S17_L003.mini_A1.sorted by comparing to the reference map...
Traceback (most recent call last):
File "/batchx/DANPOS3/danpos.py", line 1365, in <module>
if sys.argv[1]=='dpos':runDANPOS(command='dpos')
File "/batchx/DANPOS3/danpos.py", line 396, in runDANPOS
danpos(\
File "/batchx/DANPOS3/functions.py", line 454, in danpos
pooledgroups[groupname].fillPositions(dic=tdic,file=os.path.join(opath,'pooled',groupname+addname+"positions.ref_adjust.xls"),width=width,distance=distance,edge=edge,pcut=pheight,height=height,calculate_P_value=1,mode='w',title_line=1,poscal=1,rd=rd)
File "/batchx/DANPOS3/wig.py", line 492, in fillPositions
smts.fetchValueFromWig(twig)
File "/batchx/DANPOS3/summits.py", line 43, in fetchValueFromWig
if tp>wig.data[cr].size:wig.data[cr].resize(tp+1,refcheck=0)
TypeError: 'numpy.float64' object cannot be interpreted as an integer
All BAM files were created using bowtie2. All BAM files have paired reads and were sorted and indexed, before running dpos. Hope somebody knows what raises this error. The most I'm able to infer is that a float is being used where an int was expected.