name: inverse layout: true class: center, middle, inverse
# Storage Management
Updated: Apr 6, 2021
Or view the
plain-text slides without JS
to view the presenter notes
??? Presenter notes contain extra information which might be useful if you intend to use these slides for teaching. Press `P` again to switch presenter notes off Press `C` to create a new window where the same presentation will be displayed. This window is linked to the main window. Changing slides on one will cause the slide to change on the other. Useful when presenting. --- # Data Libraries - Provide a convenient way to share datasets with users - Great for commonly used datasets (e.g. reference data, GTN tutorial data) .image-75[![data libraries screenshot](/archive/2021-09-01/topics/admin/images/data/data-library-screenshot.png)] ??? - Data libraries provide a convenient way for Galaxy administrators to share datasets with users. - This is ideal for commonly used datasets such as reference data, or data for GTN tutorials. --- # Data Libraries - Access to library datasets: - **Shared Data** menu, browse data and import into history - Directly from tool form .pull-left[ .image-50[![data library access from tool form](/archive/2021-09-01/topics/admin/images/data/select-from-lib0.png)] ] .pull-right[ .image-90[![data library access from tool form](/archive/2021-09-01/topics/admin/images/data/select-from-lib3.png)] ] ??? - Users can browse these data libraries and import datasets directly into their histories. - Additionally, these datasets can also be selected directly from the tool form. --- # Advantages of data libraries - **Avoid duplication** of data - Does not count towards user's **quota** - Libraries can be shared with all users, or specific groups - **Manage permissions** on library/dataset level using roles and groups. - Admins can *create* libraries. - Ordinary users can be granted permission to *manage* libraries ![library permissions](/archive/2021-09-01/topics/admin/images/data/library-permissions.png) ??? - Every dataset in the library is stored only once, no matter how many users are using it in their histories. - The data in data libraries does not count against user quotas. - Management of libraries can be delegated to users. - And lastly, libraries can be public, restricted to individuals, or to groups. --- # Importing Data - There are multiple ways to add data to libraries: - From history - From user directory - From import directory (admins only) - From remote source ![import menu](/archive/2021-09-01/topics/admin/images/data/import-menu.png) ??? - Galaxy provides many options for importing data. - You can import data from a history, or from disk. - Importing data on disk is convenient, as Galaxy can recreate the folder structure that is on disk. - Additionally Galaxy can store library data as a symlink. - This prevents needing to copy large shared datasets into Galaxy's own data store. --- # Configuration In `galaxy.yml`: * `user_library_import_dir` * Allows authorized non-administrators to upload a directory of files. * Directory must contain sub-directories named the same as user's email. * Works well in combination with `ftp_upload_dir`. * `allow_path_paste` * Admin-only, allows importing from any path that the Galaxy's user has access to. ??? - If you use old library interface you can also set library_import_dir. - It specifies which folder admins may browse and import from. --- ## Thank you! This material is the result of a collaborative work. Thanks to the [Galaxy Training Network](https://training.galaxyproject.org) and all the contributors!
This material is licensed under the
Creative Commons Attribution 4.0 International License
. .footnote[Found a typo? Something is wrong in this tutorial?
Edit it on [GitHub](https://github.com/galaxyproject/training-material/tree/main/topics/admin/tutorials/data-library/slides.html)]