Skip to content

Commit 3d02833

Browse files
committed
Initial commit
1 parent 96a6877 commit 3d02833

9 files changed

Lines changed: 1237 additions & 2 deletions

File tree

.bumpversion.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[bumpversion]
2+
current_version = 0.1.0
3+
commit = False
4+
tag = False
5+
6+
[bumpversion:file:pyproject.toml]
7+
8+
[bumpversion:file:README.md]

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,7 @@ cython_debug/
172172

173173
# PyPI configuration file
174174
.pypirc
175+
176+
# Mac OS
177+
.DS_Store
178+

README.md

Lines changed: 71 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,71 @@
1-
# vizgen_data_transfer
2-
Vizgen Data Transfer
1+
# Vizgen Data Transfer
2+
3+
This repository contains tools and scripts for managing data transfer processes related to Vizgen projects. It is designed to streamline and automate the movement of data between systems.
4+
5+
6+
## Prerequisites
7+
8+
- Python 3.11 or higher
9+
- Required Python packages listed in `pyproject.toml`
10+
11+
## Installation
12+
13+
1. Clone the repository:
14+
```bash
15+
git clone https://github.com/EI-CoreBioinformatics/vizgen_data_transfer.git
16+
cd vizgen_data_transfer
17+
```
18+
2. Build and Install using [Poetry](https://python-poetry.org/docs/#installation):
19+
```bash
20+
version=0.1.0
21+
poetry build
22+
pip install --prefix=/path/to/vizgen_data_transfer/${version}/x86_64 -U dist/*whl
23+
```
24+
3. Set up the environment:
25+
```bash
26+
export PATH=/path/to/vizgen_data_transfer/${version}/x86_64/bin:$PATH
27+
export PYTHONPATH=/path/to/vizgen_data_transfer/${version}/x86_64/lib/python3*/site-packages:$PYTHONPATH
28+
```
29+
4. Run the script:
30+
```bash
31+
vizgen_data_transfer --help
32+
usage: vizgen_data_transfer [-h] [--copy_type COPY_TYPE [COPY_TYPE ...]] [--threads THREADS] [--disk] [--vizgen_config VIZGEN_CONFIG] [--debug] run_id
33+
34+
Script for Vizgen data transfer
35+
36+
37+
positional arguments:
38+
run_id Provide run name, for example: 202310261058_VZGEN1_VMSC10202
39+
40+
options:
41+
-h, --help show this help message and exit
42+
--copy_type COPY_TYPE [COPY_TYPE ...]
43+
Provide copy type, for example: raw_data, analysis, output (default: ['raw_data', 'analysis', 'output'])
44+
--threads THREADS Number of threads to use for copying (default: 8)
45+
--disk Enable this option if run has to be copied from the Windows external Hard disk 'G:\Vizgen data Z drive' instead of the default Z: Drive on the analysis machine [default:False]
46+
--vizgen_config VIZGEN_CONFIG
47+
Path to vizgen config file [default:/path/to/vizgen_data_transfer/dev/x86_64/lib/python3*/site-packages/vizgen_data_transfer/etc/.vizgen_config.toml]
48+
--debug Enable this option for debugging [default:False]
49+
50+
Contact: Gemy George Kaithakottil (Gemy.Kaithakottil@earlham.ac.uk)
51+
```
52+
53+
## Usage
54+
55+
1. Configure the settings in `.vizgen_config.toml`.
56+
2. Run the main script:
57+
```bash
58+
vizgen_data_transfer --vizgen_config /path/to/.vizgen_config.toml 202310261058_VZGEN1_VMSC10202
59+
```
60+
61+
## Contributing
62+
63+
Contributions are welcome! Please fork the repository and submit a pull request.
64+
65+
## License
66+
67+
This project is licensed under the GNU General Public License. See the `LICENSE` file for details.
68+
69+
## Contact
70+
71+
For questions or support, please contact [Gemy.Kaithakottil@earlham.ac.uk] or [gemygk@gmail.com].

pyproject.toml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[project]
2+
name = "vizgen_data_transfer"
3+
version = "0.1.0"
4+
description = "Vizgen Data Transfer"
5+
authors = [
6+
{name = "Gemy George Kaithakottil", email = "Gemy.Kaithakottil@earlham.ac.uk"}
7+
]
8+
readme = "README.md"
9+
requires-python = ">=3.11,<4.0"
10+
license = {text = "GNU General Public License v3.0"}
11+
keywords = [
12+
"vizgen",
13+
"data transfer",
14+
"data management",
15+
"bioinformatics",
16+
]
17+
dependencies = [
18+
]
19+
20+
[tool.poetry]
21+
packages = [{include = "vizgen_data_transfer", from = "src"}]
22+
package-mode = true
23+
24+
[tool.poetry.scripts]
25+
vizgen_data_transfer = "vizgen_data_transfer.__main__:main"
26+
27+
[build-system]
28+
requires = ["poetry-core>=2.0.0,<3.0.0"]
29+
build-backend = "poetry.core.masonry.api"

src/vizgen_data_transfer/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)