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

Input X contains NaN #208

Open
Roki12543 opened this issue Dec 1, 2023 · 4 comments
Open

Input X contains NaN #208

Roki12543 opened this issue Dec 1, 2023 · 4 comments

Comments

@Roki12543
Copy link

Roki12543 commented Dec 1, 2023

Hi developers,

When I was trying to analyze the bulk data of mice with ANANSE, I got the issue of "Input X contains NaN". The input .bed file is generated by MACS2 after processing BAM. How should this issue be resolved?
1701423398993

Thank you for your time!

@Roki12543
Copy link
Author

89106721eef260c025848ec25c8888d

@siebrenf
Copy link
Member

siebrenf commented Dec 4, 2023

Hey Roki,

I think something has gone wrong upstream. Could you add the complete ANANSE binding log? Preferably as text/code :)

I will check if this problem is on our side. Meanwhile here are a few things you can try:

  • check you are using the latest version of ANANSE (0.5)
  • did you use this genome FASTA to generate this BAM file? And did you use this BAM file to generate this narrowPeak file?
  • delete ~/.cache/gimmemotifs and try again (I'm hoping the NaN value is in there somewhere)

@Roki12543
Copy link
Author

Thank you for your help! The above issue has been resolved, but the following issue occurs when I use ananse plot:

ananse plot -c bwr
-d result/CNvsC_influence_diffnetwork.tsv
-o result/CNvsC
result/CNvsC_influence.tsv

ValueError: Unable to determine Axes to steal space for Colorbar. Either provide the cax argument to use as the Axes for the Colorbar, provide the ax argument to steal space from it, or add mappable to an Axes.

@siebrenf
Copy link
Member

Found it! Downgrade matplotlib to version 3.7 and it should work again

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