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

"KeyError: 'chr1'" on MacOS #2

Closed
frankyan opened this issue Apr 8, 2019 · 1 comment
Closed

"KeyError: 'chr1'" on MacOS #2

frankyan opened this issue Apr 8, 2019 · 1 comment
Labels
system settings problems caused by OS and Docker settings

Comments

@frankyan
Copy link
Member

frankyan commented Apr 8, 2019

Run iMARGI-Docker on MacOS Mojave, get the "KeyError: 'chr1'" in the parsing step.

OS: MacOS Mojave
Locale: en_US.UTF-8

@frankyan
Copy link
Member Author

frankyan commented Apr 9, 2019

It's caused by BWA and the Docker memory limit on Windows and Mac system. Linux system is OK because it can use all the memory on your machine without any limitation.

The memory required by BWA depends on the size of the reference genome. For the human genome, it needs about 5GB for building or loading index files. If the memory is not enough, BWA will generate an empty BAM file without any warning or error information. Then in the following steps of the pipeline will throw a lot of error information containing "KeyError 'chr1'".

The default memory limit of Docker on Windows and Mac is 2GB. So you must to set it to at least 6GB. It means that your computer has at least 8GB memory. As your system and other software also need memory, so there might be less than 6GB memory left for Docker. So we listed the required memory as 16GB On the GitHub page. If you have only 8GB, please try it and let me know whether it works and how much time it cost (bwa is very slow with limited memory).

@frankyan frankyan closed this as completed Apr 9, 2019
@frankyan frankyan reopened this Apr 9, 2019
@frankyan frankyan added the system settings problems caused by OS and Docker settings label Apr 9, 2019
@frankyan frankyan reopened this Apr 23, 2019
@frankyan frankyan pinned this issue May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
system settings problems caused by OS and Docker settings
Projects
None yet
Development

No branches or pull requests

1 participant