Create dataset where data directory is a symlink
Project description
Add ability to create dataset where data directory is a symlink.
Installing this package provides the dtool command line client with a storage broker named symlink. This is useful if one wants to mark up files in a directory as a dataset without having to re-organise their structure on disk. For example if one wants to mark up some Next Generation Sequencing data that has arrived on an external hard disk as a dataset before copying the resulting dataset to some other form of storage.
If one wants to make use of the dtool_symlink.storagebroker.SymLinkStorageBroker class programatically one needs to set an attribute called symlink_path on the SymLinkStorageBroker instance with the path to the directory to be linked before calling the create_structure method. For example:
from dtool_symlink.storagebroker import SymLinkStorageBroker symlink_storage_broker = SymLinkStorageBroker("/path/to/dataset") symlink_storage_broker.symlink_path = "/mnt/my_data/" symlink_storage_broker.create_structure()
Installation
To install the dtool-symlink package.
cd dtool-symlink
python setup.py install
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file dtool-symlink-0.3.1.tar.gz
.
File metadata
- Download URL: dtool-symlink-0.3.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d3d4cce64c5fdb5aafe7e4c4dd07fb3e57b0ff8308ed635776d1856e9f26b9b |
|
MD5 | ff73d59fa0078b16be370ac11d17fc8e |
|
BLAKE2b-256 | 196206ba4322f1990c37b3763d98529c1ec97d6d50da86996098b2c1ed2c990f |