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

Issue using realSFS with conda install #396

Closed
shannonekj opened this issue May 1, 2021 · 3 comments · Fixed by #533
Closed

Issue using realSFS with conda install #396

shannonekj opened this issue May 1, 2021 · 3 comments · Fixed by #533

Comments

@shannonekj
Copy link

shannonekj commented May 1, 2021

Hi all,

I've been having an issue using realSFS where I've installed angsd via conda. (Version 0.931)

I use the following commands (with a sorted rf file):

angsd -bam random20.global_path.bamlist -out random20 -ref reference_genome.fa -anc reference_genome.fa -rf random20.loci -GL 2 -doSaf 1 -minMapQ 10 -minQ 20
realSFS random20.saf.idx -fold 1 -maxIter 100 > random20.folded.sfs

And I get the following error:

...
        -> Region lookup 375/376
[shared.cpp.changeChr():281] refid:44
Charnge chr:44
        -> Region lookup 376/376
[shared.cpp.changeChr():281] refid:45
Charnge chr:45

        -> Done reading data waiting for calculations to finish
        -> Done waiting for threads
        -> Output filenames:
                ->"random20.arg"
                ->"random20.saf.gz"
                ->"random20.saf.pos.gz"
                ->"random20.saf.idx"
        -> Sat May  1 10:52:14 2021
        -> Arguments and parameters for all analysis are located in .arg file
        -> Total number of sites analyzed: 16860739
        -> Number of sites retained after filtering: 16667329
        [ALL done] cpu-time used =  403.87 sec
        [ALL done] walltime used =  405.00 sec
realSFS random20.saf.idx -fold 1 -maxIter 100
        -> Version of fname:random20.saf.idx is:2
Problem with chr: , key already exists, saffile needs to be sorted. (sort your -rf that you used for input)

Curiously, when I run angsd from a module load angsd on another system, the exact same commands work perfectly. I'm looking to automate some steps of my pipeline (including these) so any help would be greatly appreciated!

Best,
Shannon

@janawold1
Copy link

janawold1 commented Nov 15, 2021

Massive upvote as I'm having the same issue, but don't have another machine to try it on. :(

@shannonekj were you able to resolve this issue?

@zactobias44
Copy link

zactobias44 commented Jan 3, 2022

I was experiencing this same issue, @janawold1! Did you find a solution? It also seems to be related to #385. I was able to resolve this using the singularity container provided by @James-S-Santangelo. If your HPC is set up for Singularity, I'd recommend running angsd and all related tools using James' singularity recipe. https://cloud.sylabs.io/library/james-s-santangelo

If you make the saf files from within the container and also use the realSFS print command from within the container, you can access the data.

@janawold1
Copy link

Hi @zactobias44 cheers for the singularity recipe. Sadly, I did not make any progress with this. I'll double check to see if our HPC is set up for Singularity, but I don't think it is. Either way, I'll just have to give it a go!

Thanks again!

isinaltinkaya added a commit that referenced this issue Oct 11, 2022
Add function aio::doAssert to replace asserts
Did not use aio::assert as name  since aio.h
namespace complains due to assert being a macro
Fixes the major bug explained in #527
Fixes issues #520 #474 #466 #420 #405 #396 #385
Possibly others; other issues should rerun the
commands using the latest version.
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 a pull request may close this issue.

3 participants