-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake-crosscut-bdbag.sh
More file actions
executable file
·29 lines (23 loc) · 997 Bytes
/
make-crosscut-bdbag.sh
File metadata and controls
executable file
·29 lines (23 loc) · 997 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/tcsh
# Generate JSON for RNASEQ samples and then create BDBag
setenv VERSION 0.1
setenv EXTERNAL_ID "KC7-crosscut-metadata-v${VERSION}-internal"
setenv EXTERNAL_DESCR "Internal-only v${VERSION} release of the KC7 crosscut metadata model for GTEx v7 public metadata using DATS v2.2+"
# convert public GTEx v7 metadata to DATS JSON
mkdir -p $EXTERNAL_ID/samples
./bin/gtex_v7_to_dats.py --smafrze=RNASEQ --output_dir=$EXTERNAL_ID/samples
# create/add DATS JSON for RNA-Seq Datasets
mkdir -p $EXTERNAL_ID/datasets
./bin/gtex_v7_datasets_to_dats.py --output_dir=$EXTERNAL_ID/datasets
# add documentation files
mkdir -p $EXTERNAL_ID/docs
cp releases/ChangeLog $EXTERNAL_ID/docs/
cp RELEASE_NOTES $EXTERNAL_ID/docs/
# create BDBag
bdbag --archive tgz \
--source-organization 'NIH DCPPC KC7 Working Group' \
--contact-name 'Jonathan Crabtree' \
--contact-email 'jcrabtree@som.umaryland.edu' \
--external-description "$EXTERNAL_DESCR" \
--external-identifier $EXTERNAL_ID \
$EXTERNAL_ID