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

Can't search when the configured dataset has one specie only. #804

Open
marco-brandizi opened this issue Nov 10, 2023 · 0 comments
Open
Assignees
Labels

Comments

@marco-brandizi
Copy link
Member

I wrote the addition to run aratiny with a single-specie configuration, this can be enabled via: /aratiny/manual-test/run-ws-single-specie.sh

The problem is the UI doesn't work during this configuration. When I click on 'Search', no matter the provided input, I get this in the browser console:

data-utils.js:79 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'length')
    at searchKeyword (data-utils.js:79:13)
    at <anonymous>:1:1

Which points to a block in searchKeyword() that tries to get chromosome region input from the UI.

The problem seems to be that the initial region has no value in the "Chromosome" selector.

The API returns this information correctly, via:
http://localhost:9090/ws/dataset-info/chromosome-ids?taxId=4565

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

No branches or pull requests

2 participants