Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SystemError: <built-in method values of pyBigWig.bigWigFile object at 0x14f4562ff0> returned a result with an error set #4

Open
Jingxian-Huang opened this issue Sep 19, 2024 · 0 comments

Comments

@Jingxian-Huang
Copy link

Jingxian-Huang commented Sep 19, 2024

Hi, thanks for creating this excellent tool.

I encountered a error when runing step 2.2.2, this is the code I run: MotifRaptor snpfeature -wd step2_out -c ung" -cb step1_out/testcelltype/bedfiles

One thing may be related is that, I did not get any highlighted TF (significant one) from step 2.2.1, could this be the reason?

This is the error I got:

Namespace(cell_type='lung', command='snpfeature', snp_bed_files='step1_out/testcltype/bedfiles', workdir='step2_out')
Processing...UCE.bed!!!
Processing...phastCons.bw!!!
TypeError: argument 2 must be int, not numpy.int64

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/rds/general/user/jh622/home/anaconda3/envs/motifraptor_env/bin/MotifRapr", line 10, in <module>
    sys.exit(main())
  File "/rds/general/user/jh622/home/anaconda3/envs/motifraptor_env/lib/python3.site-packages/MotifRaptor/MotifRaptor.py", line 265, in main
    SNPfeatures.SNPfeatures_main(featurefolder, SNPbedfile, SNPfeaturedf_outfileSNPnormalize_list)
  File "/rds/general/user/jh622/home/anaconda3/envs/motifraptor_env/lib/python3.site-packages/MotifRaptor/SNPUtility/SNPfeatures.py", line 55, in SNPfeatures_ma
    feature_df=SNPExtractFeatureFromBigwig(featurefile,SNPbedfile)
  File "/rds/general/user/jh622/home/anaconda3/envs/motifraptor_env/lib/python3.site-packages/MotifRaptor/SNPUtility/SNPfeatures.py", line 19, in SNPExtractFeateFromBigwig
    vals = bw.values(cols0,cols1,cols2)[0]
SystemError: <built-in method values of pyBigWig.bigWigFile object at 0x14f4562ff0> returned a result with an error set

Thank you very much for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant