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

SQ fields differ in the header #17

Closed
coopergrace opened this issue Aug 21, 2020 · 1 comment
Closed

SQ fields differ in the header #17

coopergrace opened this issue Aug 21, 2020 · 1 comment

Comments

@coopergrace
Copy link

Dear Gabriel,

I'm receiving the following error when attempting to use replaceanc:
$ glactools replaceanc chr1.pops.acf.gz chr1.ancroot.acf.gz > ancrooted.chr1.acf.gz

GlacReplaceAncestor: The SQ fields differ in the header, are they from the same reference?

Is there a way to override or force glactools to accept that the references are the same, or to use one over the other? The reference genomes I used were the same sequences, but with differing sequence names - I had to shorten the names whilst generating the ancestral and root vcfs and that may be causing this issue downstream.

Failing that, is there a way to manually edit the headers of acf files?

Cheers

Cooper

@grenaud
Copy link
Owner

grenaud commented Aug 21, 2020

Dear Cooper,
If you 100% that the references are the same except that the chr names have different names, just use: "glactools reheader".

You can actually use file descriptors as such:

glactools replaceanc chr1.pops.acf.gz <(glactools reheader -u chr1.ancroot.acf.gz newheader.txt) > ancrooted.chr1.acf.gz

The -u is to produce uncompressed, there is no point in compressing then decompressing :-)

@grenaud grenaud closed this as completed Aug 29, 2020
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