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

memory allocation problem #11

Closed
furqan915 opened this issue Oct 28, 2020 · 1 comment
Closed

memory allocation problem #11

furqan915 opened this issue Oct 28, 2020 · 1 comment

Comments

@furqan915
Copy link

Hi,
I have used rhierbaps previously on 27 genomes' core alignment and it worked fine. But now I am working on 557 genomes's core alignment (file size = 1.6 gb). I have used this command and following message shows up:

> snp.matrix <- load_fasta("./clean.full.aln")
Error: cannot allocate vector of size 11.7 Gb

Is it issue with my system or the package?
My Linux PC has 4 cores and 8gb.
Thanks

@gtonkinhill
Copy link
Owner

Hi,

rhierbaps is not particularly efficient so it looks like you have run out of memory on your system.
I would recommend having a look at fastbaps. This was designed to work with larger datasets and should speed things up quite a bit.

You could also consider using snp-sites to reduce the alignment to just variable columns before passing the reduced alignment to either rhierbaps or fastbaps

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