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

pyBigWig values method does not take argument numpy=True #117

Open
tanjimin opened this issue Feb 22, 2023 · 1 comment
Open

pyBigWig values method does not take argument numpy=True #117

tanjimin opened this issue Feb 22, 2023 · 1 comment

Comments

@tanjimin
Copy link

tanjimin commented Feb 22, 2023

chr_vals = np.nan_to_num(input_bigwig.values(chromosome, 0, input_bigwig.chroms(chromosome), numpy=True))

  File "/gpfs/home/.conda/envs/maxatac/lib/python3.9/site-packages/maxatac/utilities/genome_tools.py", line 236, in chromosome_blacklist_mask
    return blacklist_bigwig_stream.values(chromosome,
TypeError: values() takes no keyword arguments

Same format in another file:

numpy=True) != 1 # Convert to boolean array, select areas that are not 1

Removing numpy=True seems to resolve the issue.

@tacazares
Copy link
Member

tacazares commented Feb 22, 2023

Hey @tanjimin,
This is a known issue, #87 and #96 (comment), that is due to the inability of pybigwig to recognize that your system has numpy installed. Try some of the suggested tips, I am not sure how removing the numpy=True fix will affect the import of values/downstream processes.
Take care,
Tareian

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

2 participants