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

Order mutation IDs, down edges optional, gperf support #13

Merged
merged 2 commits into from
Sep 9, 2024

Conversation

dcdehaas
Copy link
Collaborator

@dcdehaas dcdehaas commented Sep 9, 2024

Serialize mutations using getMutationsToNodeOrdered() which ensures that the MutationID order matches the (position, allele) sort order upon deserialization. If you have an "old" GRG that does not have sorted MutationIDs, just reserialize it:
./grgl old.grg -o new.grg

Make down edges optional on deserialization, just like up edges are.

Compile-time support for gperf CPU profiling in the CMakeList. Just download the appropriate release of gperf source, build it, and then build grgl with -DENABLE_CPU_PROF=ON

A GRG can be checked for mutation ID ordering via
mutationsAreOrdered() (C++) and mutations_are_ordered (Python).

Serialize mutations using getMutationsToNodeOrdered() which ensures
that the MutationID order matches the (position, allele) sort order
upon deserialization. If you have an "old" GRG that does not have
sorted MutationIDs, just reserialize it:
`./grgl old.grg -o new.grg`

Make down edges optional on deserialization, just like up edges are.

Compile-time support for gperf CPU profiling in the CMakeList. Just
download the appropriate release of gperf source, build it, and
then build grgl with -DENABLE_CPU_PROF=ON

A GRG can be checked for mutation ID ordering via
mutationsAreOrdered() (C++) and mutations_are_ordered (Python).
@dcdehaas dcdehaas merged commit 3ad2a3f into main Sep 9, 2024
3 checks passed
@dcdehaas dcdehaas deleted the mut_id_ordering branch September 9, 2024 12:06
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.

1 participant