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

Add hack script to update existing core meta table sample example genes #101

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

ens-LCampbell
Copy link
Member

Add new quick patch script to update meta table sample gene meta info.

The script attempts to quickly but considerately update meta example info on a input set of cores or input of cores + hand picked example gene (stable_id).

The script first selects a sub sample of stable ids per core (n=25). Then checks if these genes have associated homologies in the appropraite compara db on the same host.

As soon as a gene with homology is found, it then moves to create a patch on that basis.

Users can provide a list of cores and run in auto mode, or a list of cores+stable_ids they hand picked and run in manual mode.

Script creates some log into, including TSV of core+gene+description of new eg gene within output patch SQL file.

@ens-LCampbell ens-LCampbell marked this pull request as ready for review November 27, 2024 17:04
@ens-LCampbell
Copy link
Member Author

This is not a final solution to this problem, but it provides a quick way to create a patch for cores with bad or inappropriate example genes. Python would be better IMO but until we have a discussion this could wait. Since I made the script to make a patch for staging Im sharing the code here. Thanks

Copy link
Contributor

@vsitnik vsitnik left a comment

Choose a reason for hiding this comment

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

Just a few minor comments. Feel free to merge though. Thanks

Copy link
Contributor

@vsitnik vsitnik left a comment

Choose a reason for hiding this comment

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

Thanks!

@ens-LCampbell
Copy link
Member Author

Thanks!

Thanks Vasily

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