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

Missing expression data for a gene in database causes UI problems #1053

Open
ntran18 opened this issue Oct 10, 2023 · 1 comment
Open

Missing expression data for a gene in database causes UI problems #1053

ntran18 opened this issue Oct 10, 2023 · 1 comment

Comments

@ntran18
Copy link
Collaborator

ntran18 commented Oct 10, 2023

Problems: When you click in some expressions, especially the one contains ACE node, it would not reflect on the UI, meaning the check doesn't change to your selection. This is because the program can't load the expression. As I mentioned before, this is because there is no value p.length (I experienced some expressions, and it happens mostly for ACE node, not sure about the other nodes). However, if you click on that selection again, it works, but I don't know if it is correct or not. This problem only happens for dataset come from the database.

  1. Lint errors
image image image image --> From what I understand, I think either the version of database I currently have has different expression sheet name. A lot of errors were wrong name, or worksheet not detected.
  1. Example of error from console
image
@ntran18 ntran18 added the bug label Oct 11, 2023
@kdahlquist kdahlquist changed the title Missing data in database Missing expression data for a gene in database causes UI problems Oct 17, 2023
@ntran18
Copy link
Collaborator Author

ntran18 commented Nov 5, 2024

The error is caused by d3 graph generated an empty element.
Screenshot 2024-11-04 at 9 13 58 PM

From chatGPT,

In D3, if the dataset passed to .data() is either null, undefined, or an empty array, D3 will create an element for each item in the array. If there is no data (e.g., the result of result.data is an empty array or 0), D3 will append an empty element even if it has no meaningful data to display.

To prevent d3 create empty g element, we return an empty list instead

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

No branches or pull requests

3 participants