https://github.com/mskcc/igo-delivery
Delivery email, symlinks and permissions for IGO projects
https://github.com/mskcc/igo-delivery
Last synced: 8 months ago
JSON representation
Delivery email, symlinks and permissions for IGO projects
- Host: GitHub
- URL: https://github.com/mskcc/igo-delivery
- Owner: mskcc
- License: apache-2.0
- Created: 2022-04-25T14:38:26.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-10-09T15:32:49.000Z (8 months ago)
- Last Synced: 2025-10-10T17:03:06.803Z (8 months ago)
- Language: Python
- Size: 148 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# igo-delivery
Delivery email, symlinks and permissions for IGO projects
## Three main functions:
1. EmailDelivered.py for sending out notification emails
2. LinkProjectToSamples.py for creating symlinks of fastq files based on NGS database data
3. setaccess.py for setting permissions for each project
## Usage:
1. EmailDelivered.py need two arguments: mode and time length. Mode has two options, TEST and PROD which test mode will only print out email content. The unit for time length is minutes. Default is test mode and 30 minutes.
```
python3 EmailDelivered.py PROD 30
```
2. LinkProjectToSamples.py has two different type of usage, either link by request or link by time period. If by time period, the unit is minutes.
```
python3 LinkProjectToSamples.py REQUEST=12345
```
```
python3 LinkProjectToSamples.py TIME=30
```
3. setaccess.py has three different type of usage, by project, by lab head folder or by time period. If by time period, the unit is minutes.
```
python3 setaccess.py REQUEST=12345
```
```
python3 setaccess.py LABSHAREDIR=abc
```
```
python3 setaccess.py ARCHIVEDWITHINLAST=30
```
4. If you need to run multiple projects for linking or granting access, create a bash file for example link.sh, the example content as follow:
```
python3 setaccess.py REQUEST=10805_B;
python3 setaccess.py REQUEST=10805_C;
python3 setaccess.py REQUEST=10805_D;
python3 setaccess.py REQUEST=10805_G;
python3 setaccess.py REQUEST=10805_L;
```
Then run the following command
```
bash link.sh
```