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 create a function that returns the data directory to be symbolically linked. This function is then passed into the SymLinkStorageBroker.create_structure() method. For example:
from dtool_symlink.storagebroker import SymLinkStorageBroker def get_data_dir(): return "/my/path/with/data" symlink_storage_broker = SymLinkStorageBroker("/path/to/dataset") symlink_storage_broker.create_structure(get_data_dir)
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.1.2.tar.gz
.
File metadata
- Download URL: dtool-symlink-0.1.2.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ec4157ebeb695afec4b2c51ea56b8e60662d0f80a1c52315d6615c1414a2ead |
|
MD5 | 2a229d543f712d26a8cc05d2cf061153 |
|
BLAKE2b-256 | f219eb0553854a0b4a299c5fb317e3c3cb1a3a80bebba3443917cc262f15123c |