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

Xref fixes #679

Merged
merged 2 commits into from
Feb 8, 2024
Merged

Xref fixes #679

merged 2 commits into from
Feb 8, 2024

Conversation

TamaraNaboulsi
Copy link
Member

@TamaraNaboulsi TamaraNaboulsi commented Feb 6, 2024

Description

Fixes for some xref bugs that were discovered in the 112 run.

Use case

There was a bug in parsing UniProt gene names that was discovered in the recent 112 xref run which didn't include the colon ":" character in the regex used.
Another bug that was found was related to populating the xref intermediate DBs where data was being copied over from the central DB. The way the data was copied was by creating a .sql file with the insert statements. However, when running the pipeline for multiple species at once (normal process), they were all rewriting the same sql file over and over again which lead to some of the intermediate DBs having no data. The added fix removed this copying of the central DB data altogether, as there already exists a file that has this data (populate_metadata.sql) which is created when the central DB is created. Instead, the preparse flag value was added into this metadata filename in order to handle multiple runs of the pipeline (maybe with different preparse flags).

Benefits

No rewriting of the same file for no reason, no corrupted intermediate DBs, and no wrong UniProt gene names.

Possible Drawbacks

None

Testing

Have you added/modified unit tests to test the changes?

If so, do the tests pass/fail?

Have you run the entire test suite and no regression was detected?

Copy link
Contributor

@sgiorgetti sgiorgetti left a comment

Choose a reason for hiding this comment

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

OK

@sgiorgetti sgiorgetti merged commit a872bc2 into main Feb 8, 2024
2 checks passed
@TamaraNaboulsi TamaraNaboulsi deleted the fix/xref branch March 4, 2024 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants