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

Handle case where a spotless pangenome is used in projection #266

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

JeanMainguy
Copy link
Member

An edge case have been identified in issue #264 where a pangenome without any existing spots is used in a projection. In this case, the projection process, which predicts spots in the input genome, attempts to retrieve the highest spot ID to determine the appropriate ID for any new spots detected. This leads to an error when no spot IDs are available.

To resolve this, I’ve implemented a check to see if the pangenome contains any spots. If no spots are found, the process will now default to using an ID of 1 for new spots.

@JeanMainguy JeanMainguy merged commit 84008d5 into dev Aug 20, 2024
4 checks passed
@JeanMainguy JeanMainguy deleted the projection_no_spot branch August 27, 2024 06:35
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.

2 participants