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

sav merge command? #32

Open
mragsac opened this issue Aug 30, 2023 · 1 comment
Open

sav merge command? #32

mragsac opened this issue Aug 30, 2023 · 1 comment

Comments

@mragsac
Copy link

mragsac commented Aug 30, 2023

I was looking to merge multiple sav files but noticed that sav merge isn't recognized as a command. However, after looking through the source code, I noticed that there is a merge.cpp file that references a sav merge command?

What is the best method to merge multiple sav-formatted files, similar to bcftools merge?

@jonathonl
Copy link
Collaborator

sav merge existed in version 1.x because the first version of the file format only allowed for bi-allelics and limited FORMAT fields. The second version of the SAV file format allows for multi-allelics and any format field, which makes merging VCFs that have a different set of variants a bit more complicated. I do intend on implementing a limited merge routine eventually, but it will be a while.

What is your use case? What FORMAT fields are you trying to merge? Is the variant set identical? How did you end up with files split into groups of samples?

Note: if each file has the same set of samples, then you should be using concat not merge.

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

No branches or pull requests

2 participants