2021-03-18 03:51:44 +00:00
|
|
|
# wphl-bioinformatics
|
2021-04-01 15:23:42 +00:00
|
|
|
|
|
|
|
Bioinformatics scripts for use at the Wyoming Public Health Laboratory.
|
|
|
|
|
2021-04-13 19:58:00 +00:00
|
|
|
These scripts have various purposes, uses, and instructions. The only unifying
|
|
|
|
thing about them is that they were all written for WPHL. Please check the
|
|
|
|
`README` file in each directory for more detailed instructions.
|
2021-04-01 15:23:42 +00:00
|
|
|
|
|
|
|
## Encryption
|
|
|
|
|
2021-04-13 19:58:00 +00:00
|
|
|
**NOTICE:** Some files in this repository are encrypted using
|
|
|
|
[git-crypt](https://github.com/AGWA/git-crypt). git-crypt works on a
|
|
|
|
repository-wide basis, meaning that decryption must occur on the entire
|
|
|
|
repository.
|
2021-04-01 15:23:42 +00:00
|
|
|
|
|
|
|
### Installing git-crypt
|
|
|
|
|
|
|
|
#### Ubuntu, Debian, etc.
|
|
|
|
|
|
|
|
```bash
|
2021-04-13 19:58:00 +00:00
|
|
|
sudo apt-get install git-crypt -y
|
2021-04-01 15:23:42 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Fedora, CentOS, RHEL, etc.
|
|
|
|
|
|
|
|
```bash
|
2021-04-13 19:58:00 +00:00
|
|
|
sudo yum install git-crypt -y
|
2021-04-01 15:23:42 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### MacOS
|
|
|
|
|
|
|
|
Install [Homebrew](https://brew.sh/) first. Then
|
|
|
|
|
|
|
|
```bash
|
2021-04-13 19:58:00 +00:00
|
|
|
brew install git-crypt
|
2021-04-01 15:23:42 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Windows
|
|
|
|
|
2021-04-13 19:58:00 +00:00
|
|
|
There are no official git-crypt builds for Windows. I repeat, **git-crypt does
|
|
|
|
not exist for Windows** regardless of what others may tell you. If possible, you
|
|
|
|
may use the [Windows Subsystem for
|
|
|
|
Linux](https://docs.microsoft.com/en-us/windows/wsl/install-win10), but you
|
|
|
|
cannot use native git-crypt.
|
2021-04-01 15:23:42 +00:00
|
|
|
|
|
|
|
### Decrypting the repository
|
|
|
|
|
2021-04-13 19:58:00 +00:00
|
|
|
Encryption is GPG-based. If your GPG key has been added to the repository (you
|
|
|
|
know if you have access), then run
|
2021-04-01 15:23:42 +00:00
|
|
|
|
|
|
|
```bash
|
2021-04-13 19:58:00 +00:00
|
|
|
git clone https://github.com/MillironX/wphl-bioinformatics.git && cd wphl-bioinformatics
|
|
|
|
git-crypt unlock
|
2021-04-01 15:23:42 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
The files will now be decrypted and can be usable.
|
|
|
|
|
2021-04-13 19:58:00 +00:00
|
|
|
If you need to copy your GPG keys to a new machine to be able to decrypt the
|
|
|
|
files, follow the instructions at
|
|
|
|
https://www.phildev.net/pgp/gpg_moving_keys.html under "Copy Just Your Keys."
|