-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Docker images usability (#249)
* Address import error encountered in annotation.ipynb When trying to run `sc.pp.highly_variable_genes()` in docs/tutorials/annotation.ipynb the following ImportError is encountered: ImportError: Please install skmisc package via `pip install --user scikit-misc Looking at the pyproject.toml for the `scanpy` project it looks like the `scikit-misc` package can be co-installed by specifying `scanpy[skmisc]` (see: https://github.com/scverse/scanpy/blob/a956fa781a8406fc5030093356c0372456d9184b/pyproject.toml#L142) * Make recommend-interactive docker image even more user friendly User friendliness improvements: - Added short guide on how to make use of Nvidia GPU with Docker image - Updated recommend-interactive image and example command so that downloaded datasets can be shared with local machine (and vice versa) - This commit also bumps the default `SnapATAC2` version that will be built when following the README to v2.6.0. * Add guide sections for running SnapATAC2 Docker image on other platforms * Fix formatting error in Docker README.md
- Loading branch information
Showing
8 changed files
with
90 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
# Adapted from: https://denibertovic.com/posts/handling-permissions-with-docker-volumes/ | ||
|
||
# Add local user | ||
# Either use the LOCAL_USER_ID if passed in at runtime or | ||
# fallback | ||
|
||
USER_ID=${LOCAL_USER_ID:-9001} | ||
|
||
echo "Starting with UID : $USER_ID" | ||
useradd --shell /bin/bash -u $USER_ID -o -c "" -m user | ||
export HOME=/home/user | ||
|
||
exec gosu user "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters