Skip to content

Conversation

@nitin-ebi
Copy link
Contributor

No description provided.

@nitin-ebi nitin-ebi self-assigned this Oct 14, 2025

String[] dbNameParts = species.split("_", 2);

if (dbNameParts.length != 2) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is possible to have more than two parts in which case everything after the first underscore is the assembly accession (see uoa_wb_1)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are splitting by giving an upper limit of 2 here String[] dbNameParts = species.split("_", 2);, so we can't have more than 2 parts. uoa_wb_1 will split into uoa and wb_1.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense

@nitin-ebi nitin-ebi requested a review from tcezard October 16, 2025 11:21

String[] dbNameParts = species.split("_", 2);

if (dbNameParts.length != 2) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense

@nitin-ebi nitin-ebi merged commit d086a89 into EBIvariation:master Oct 17, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

3 participants