-
Notifications
You must be signed in to change notification settings - Fork 30
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
is it possible to adjust the core gene threshold? #60
Comments
No problem! What part of the pipeline would you like to adjust the threshold? PIRATE only explicitly separates genes into core/accessory at certain steps, such as when it generates the core alignment and when it plots summary figures and tables. These steps could be tweaked to use a more meaningful threshold for your analysis and could most likely be run after your analysis so that it does not have to be repeated. |
Hi Sion, Thanks for your reply. I think it would be great to have such a threshold when the core alignment is generated. Though I think ideally, the same threshold would then be applied to the summary plots/tables to keep everything consistent. |
I will label this as a enhancement for the next release. In the mean time changing the outputs to support this is relatively simple. The gene alignments can be generated using the scripts in the PIRATE/scripts directory inside your PIRATE output directory: alignment:
Plots are a little more complicated. You will need to search and replace 95 with 99 inside the following script (open it in a text editor) and then run it using:
Hope that helps, |
Thanks a lot, will test this soon! |
I look forward to the next release. I would set https://sanger-pathogens.github.io/Roary/
|
Hi Sion,
Is there a way to control the % of genomes that must have a gene for it to be considered core? From what I understood it is set at 95%, but thresholds like 99% are also common in the literature.
Thanks
The text was updated successfully, but these errors were encountered: