Skip to content

Error in running given example #2

@avinoamshye

Description

@avinoamshye

Running the example as given with proxy files created with ProxyFinder, I got the following error:

Traceback (most recent call last):
File "./goshifter.py", line 187, in
args['--proxies'])
File "/specific/netapp5_2/elkon/avinoamshye/goshifter/functions.py", line 109, in enrichPermRandBoundryPeakShift_tabixLd
snpPeakInfo, ldsnpPeakInfo = permRandBoundryPeakShift(snpInfoChr,peaksTree,ldInfo,expand,minShift,maxShift,nPerm)
File "/specific/netapp5_2/elkon/avinoamshye/goshifter/functions.py", line 304, in permRandBoundryPeakShift
peaksToSnp = peaks2region(bounds,peaksTree,expand)
File "/specific/netapp5_2/elkon/avinoamshye/goshifter/functions.py", line 425, in peaks2region
maxbp = bounds[chrom][snp]['maxbp'] + expand
TypeError: unsupported operand type(s) for +: 'dict' and 'float'

It appears only some of the boundary values are still enclosed in dictionaries of the form {'bp': ... }
I could't find the reason for this so I added an if statement to extract the floats, assuming these values are the wanted ones.
This seem to work without any more errors, but I'm not sure the values inside the occasional dictionaries are correct. I'd love to hear your thoughts on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions