Skip to content

Commit

Permalink
Merge pull request #3060 from broadinstitute/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
hanars authored Nov 9, 2022
2 parents 0e7193b + 8cfa986 commit da32a7d
Show file tree
Hide file tree
Showing 92 changed files with 1,517 additions and 2,531 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## dev

## 11/9/22
* Add PhenotypePrioritization model (REQUIRES DB MIGRATION)

* Add Refseq and MANE transcript info (REQUIRES DB MIGRATION)
* To add new data, run the `update_gencode_transcripts` and `update_refseq` commands

## 10/13/22
* Link MME submissions to saved variants (REQUIRES DB MIGRATION)

Expand Down
Empty file removed deploy/__init__.py
Empty file.
17 changes: 0 additions & 17 deletions deploy/docker/curator/Dockerfile

This file was deleted.

1 change: 0 additions & 1 deletion deploy/docker/curator/curator.list

This file was deleted.

9 changes: 0 additions & 9 deletions deploy/docker/redis/Dockerfile

This file was deleted.

11 changes: 0 additions & 11 deletions deploy/docker/redis/bashrc

This file was deleted.

3 changes: 0 additions & 3 deletions deploy/docker/redis/redis.conf

This file was deleted.

2 changes: 1 addition & 1 deletion deploy/kubectl_helpers/restore_local_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ DEPLOYMENT_TARGET=$1
DB=$2

FILENAME=${DB}_${DEPLOYMENT_TARGET}_backup_$(date +"%Y-%m-%d__%H-%M-%S").gz
GS_FILE=gs://seqr-backups/${FILENAME}
GS_FILE=gs://seqr-temp/${FILENAME}

gcloud sql export sql postgres-"${DEPLOYMENT_TARGET}" "${GS_FILE}" --database="${DB}" --offload
gsutil mv "${GS_FILE}" .
Expand Down
9 changes: 8 additions & 1 deletion deploy/kubectl_helpers/shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ DIR=$(dirname "$BASH_SOURCE")

set -x -e

COMPONENT=$2

POD_NAME=$("${DIR}"/utils/get_pod_name.sh "$@")

kubectl exec -it "${POD_NAME}" -- /bin/bash
case ${COMPONENT} in
seqr) CONTAINER=seqr-pod ;;
*) CONTAINER=${COMPONENT} ;;
esac

kubectl exec -it "${POD_NAME}" -c "${CONTAINER}" -- /bin/bash
8 changes: 3 additions & 5 deletions deploy/kubectl_helpers/utils/get_pod_info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

set -u

DEPLOYMENT_TARGET=$1
COMPONENT=$2
JSON_PATH=$3
COMPONENT=$1
JSON_PATH=$2


kubectl get pod -l "name=${COMPONENT},deployment=gcloud-${DEPLOYMENT_TARGET}" -o "jsonpath=${JSON_PATH}"
kubectl get pod -l "app.kubernetes.io/name=${COMPONENT}" -o "jsonpath=${JSON_PATH}"
9 changes: 6 additions & 3 deletions deploy/kubectl_helpers/utils/get_pod_name.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@

set -e

DEPLOYMENT_TARGET=$1
COMPONENT=$2

DIR=$(dirname "$BASH_SOURCE")

"${DIR}"/check_context.sh "$@"
"${DIR}"/check_context.sh "${DEPLOYMENT_TARGET}"

STATUS=$("${DIR}"/get_pod_info.sh "$@" "{.items[0].status.phase}")
STATUS=$("${DIR}"/get_pod_info.sh "${COMPONENT}" "{.items[0].status.phase}")
if [ "${STATUS}" != "Running" ]; then
echo "Invalid pod status: ${STATUS}"
exit 1
fi

"${DIR}"/get_pod_info.sh "$@" "{.items[0].metadata.name}"
"${DIR}"/get_pod_info.sh "${COMPONENT}" "{.items[0].metadata.name}"
38 changes: 0 additions & 38 deletions deploy/kubernetes/elasticsearch/configure-snapshot-repo.yaml

This file was deleted.

Loading

0 comments on commit da32a7d

Please sign in to comment.