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.0.tar.gz
.
File metadata
- Download URL: dtool-symlink-0.1.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab09db7a733ee36dd378821d71c5bbc8be6cf0f0d854611cdd5c7c945886e579 |
|
MD5 | 5e37ace9d5c477a36641784204691212 |
|
BLAKE2b-256 | 6a966d8f2397a9012aafbfc76b5b87951663c777814d349627a518322f41a496 |