Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hattivatti
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GDP-Public
hattivatti
Commits
0f638714
Commit
0f638714
authored
1 year ago
by
Benjamin Wingfield
Browse files
Options
Downloads
Patches
Plain Diff
update README
parent
5e357bdc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+84
-2
84 additions, 2 deletions
README.md
with
84 additions
and
2 deletions
README.md
+
84
−
2
View file @
0f638714
# hattivatti
#
`
hattivatti
`
> A Finnish [job submitter](https://github.com/ebi-gdp/jobsubmitter).
`hattivatti`
submits
[
`pgsc_calc`
](
https://github.com/PGScatalog/pgsc_calc
)
jobs
to
[
Puhti HPC
](
https://docs.csc.fi/computing/systems-puhti/
)
at CSC. Jobs are
configured to execute in a secure way because genomes are sensitive
data.
`hattivatti`
is a proof of concept for testing sensitive data submission
to CSC.
## Run `hattivatti`
See
[
Releases
](
https://github.com/ebi-gdp/hattivatti/releases
)
for most recent
stable versions of
`hattivatti`
. The development version can be run with:
```
$ git clone https://github.com/ebi-gdp/hattivatti.git --branch dev
$ cargo run
```
## Documentation
```
$ cargo doc --open
```
## Deployment notes
Puhti is currently on RHEL 7 with an old version of glibc.
Github actions builds with rust-buster to match glibc version (2.28).
### Cronjob
cron shell doesn't load much:
```
$ # load 'module' command
$ source /appl/profile/zz-csc-env.sh
```
### Set environment variables
Sensitive variables:
```
$ export GLOBUS_SECRET_TOKEN=<...>
$ export AWS_ACCESS_KEY_ID=<...>
$ export AWS_SECRET_ACCESS_KEY=<...>
$ export NXF_SINGULARITY_CACHEDIR=<...>
```
Configuration variables:
```
$ export RUST_LOG=info
$ export NXF_SINGULARITY_CACHEDIR=<path>
```
### Clone pgsc_calc
```
$ cd /scratch/projec_XXXXXX/
$ nextflow clone https://github.com/PGScatalog/pgsc_calc.git
```
### Run hattivatti
```
$ hattivatti --schema-dir repo/data/schemas --work-dir work
```
### Backup database (optional)
After hattivatti executes the database will have no connections.
```
$ module load allas
$ rclone copy work/hattivatti.db s3allas://bucket/hattivatti/hattivatti.db
```
### Software dependencies
*
`curl`
*
`jq`
*
`nextflow`
*
`java 16`
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment