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
realSFS cat
#60
Comments
Ok, a little more trial and error leads me to think that the usage of
This creates a merged Although I have thus merged 70 saf files without error message from
|
Im not sure that it can glob correctly. Could you please try supplying the
saf.idx directly.
./realSFS cat one.saf.idx two.saf.idx etc
…On Fri, Dec 2, 2016 at 1:31 AM, Claudius Kerth ***@***.***> wrote:
Ok, a little more trial and error leads me to think that the usage of realSFS
cat is:
realSFS cat -outnames <merged_filename_stub> [*saf.idx]
This creates a merged *saf.idx, saf.gz and saf.pos.gz file.
Although I have thus merged 70 *saf* files without error message from realSFS
cat, I cannot print the merged *saf.idx file. When I run realSFS print
merged.saf.idx | less -S, I get
[E::bgzf_read] bgzf_read_block error -1 after 0 of 528 bytes
-> Problem reading chunk in bgzf_read
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#60 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AGDo7up0Jjf3fzDp6FEfoicO5xsS-Ednks5rDwRngaJpZM4LBodN>
.
|
It's not the globbing (wouldn't that be done by the shell anyway?). Here is what I did and the STDERR output:
|
Hi Im currently travelling with limited access to internet, i will look into this when im back. Sorry about this. |
Hi It seems to work for my test scenarios. Can you do print on all your input saf.idx? thorfinn@rowdy:
|
Hi Thorfinn, I can print the two input *saf.idx files without error. I have created them (and many others) with the following command:
I am using I have taken the liberty to upload the two SAF index and merged file as well as companion files for you to check. It's only 6MB in total. |
Hmm, I dont have any problems catting the files. What is your platform? [fvr124@zl08368 Downloads]$ ../angsd/misc/realSFS cat PAR.unfolded.cr.saf.idx PAR.unfolded.cq.saf.idx -outnames mymerge R version 3.3.1 (2016-06-21) -- "Bug in Your Hair" R is free software and comes with ABSOLUTELY NO WARRANTY. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'demo()' for some demos, 'help()' for on-line help, or
|
Ok, I just pulled the newest version of
So, merging works without error message. Then printing the merged saf file leads to the same error message as before on my system:
I am running this on Ubuntu Linux: Linux huluvu 3.13.0-105-generic #152-Ubuntu SMP Fri Dec 2 15:37:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux. Let me know if you need more info. claudius |
Hi Claudius, Im not sure if this is helpful. But we had storage problems on some of our servers, and then I also observed the bgzf_read error, with a different storage device it worked. I redid your uploaded files, that also seemed to work. [fvr124@zl08368 Downloads]$ ../angsd/misc/realSFS cat PAR.unfolded.cr.saf.idx PAR.unfolded.cq.saf.idx -outnames mymerge |
Interesting. However, I had no luck so far. I moved my split SAF files onto another hard drive on the same system, but got the same bgzf error. I also tried installing ANGSD on my Mac, but I couldn't make the compilation work. I used the commit 08e032a (24th Feb) and two different gcc versions (4.2 and 6.2), each gave different error messages. I did manage to install ANGSD (commit 08e032a) on a 32 bit Ubuntu system, but there already Let me know if exact commands, error messages and system details would be of any help to you. thank you for your support! claudius |
Hi again Claudius. Did you resolve this problem? |
Yes, this is working now with the new version of many thanks Thorfinn! claudius |
Great, im closing this issue then. |
Hi Thorfinn,
I have created many saf files that I thought I could concatenate with
realSFS cat
, but I can't make it work. Could you please provide some usage information or a little example?many thanks
claudius
The text was updated successfully, but these errors were encountered: