forked from broadinstitute/seqr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes to CCM seqr instance (2024-09-19)
- Loading branch information
Showing
33 changed files
with
530 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,10 @@ deploy/* | |
.git | ||
.vscode | ||
.idea | ||
|
||
data/ | ||
gunicorn/ | ||
logs/ | ||
!logs/django/ | ||
nginx/ | ||
scripts/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
deploy/docker/seqr/Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
command = 'gunicorn' | ||
bind = '0.0.0.0:8000' | ||
workers = 1 | ||
loglevel = 'info' | ||
loglevel = 'debug' | ||
timeout = 3600 # seconds (default is 30) | ||
errorlog = '-' # logs to stderr | ||
accesslog = '/var/log/gunicorn/access.log' | ||
errorlog = '/var/log/gunicorn/error.log' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
command = 'gunicorn' | ||
bind = '0.0.0.0:8000' | ||
workers = 1 | ||
loglevel = 'debug' | ||
timeout = 3600 # seconds (default is 30) | ||
accesslog = '/var/log/gunicorn/access.log' | ||
errorlog = '/var/log/gunicorn/error.log' |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
access_log /var/log/nginx/access.log; | ||
error_log /var/log/nginx/error.log debug; | ||
|
||
server { | ||
listen 80 default_server; | ||
listen [::]:80 default_server; | ||
server_name _; | ||
return 301 https://$host$request_uri; | ||
} | ||
|
||
server { | ||
listen 443 ssl http2 default_server; | ||
listen [::]:443 ssl http2 default_server; | ||
server_name _; | ||
|
||
ssl_certificate /etc/nginx/certs/bundle.crt; | ||
ssl_certificate_key /etc/nginx/certs/star_ccm_sickkids_ca.key; | ||
ssl_session_timeout 1d; | ||
ssl_session_cache shared:MozSSL:10m; # about 40000 sessions | ||
ssl_session_tickets off; | ||
|
||
ssl_dhparam /etc/nginx/certs/dhparam.pem; | ||
|
||
ssl_protocols TLSv1.2 TLSv1.3; | ||
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384; | ||
ssl_prefer_server_ciphers off; | ||
|
||
add_header Strict-Transport-Security "max-age=63072000" always; | ||
|
||
ssl_stapling on; | ||
ssl_stapling_verify on; | ||
|
||
location / { | ||
proxy_pass http://seqr:8000; | ||
proxy_set_header Connection ""; | ||
proxy_read_timeout 300s; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
#usage: ~/ccm_seqr/run_seqr_pipeline.sh <path_to_famID_txt> <path_to_vcf_folder> <sample_type> <genome_version> | ||
#the VCF path would be the path after GRCh37/38 folder ex: Muise/C1012 | ||
|
||
input_vcf_fam_list=$1 | ||
vcf_folder=$2 | ||
sample_type=$3 | ||
genome_version=$4 | ||
|
||
while read -r fam | ||
do | ||
echo $fam | ||
vcf=$(ls $fam*.vcf.gz) | ||
index=$(echo $fam | tr '[:upper:]' '[:lower:]') | ||
docker-compose exec pipeline-runner python3 -m seqr_loading SeqrMTToESTask --local-scheduler --reference-ht-path /seqr-reference-data/GRCh38/combined_reference_data_grch38.ht --clinvar-ht-path /seqr-reference-data/GRCh38/clinvar.GRCh38.ht --vep-config-json-path /vep_configs/vep-GRCh38-loftee.json --es-host elasticsearch --es-index-min-num-shards 1 --sample-type WES --es-index musie_japanese --genome-version 38 --source-paths /input_vcfs/GRCh38/Muise/japanese_cohort/musie_japanese.vcf.gz --dest-path /input_vcfs/GRCh38/Muise/japanese_cohort/musie_japanese.mt --dont-validate > pipeline-logs/err_file_musie_japanese-dontval.txt | ||
tmux new-session -d -s $fam | ||
tmux send-keys -t $fam ${tmux_commad} ENTER | ||
echo 'moving to the next' | ||
done < $input_vcf_fam_list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
BUILD_VERSION=GRCh$1 | ||
VCF_DIR=./data/input_vcfs/$BUILD_VERSION | ||
INPUT_FILENAME=$2 | ||
INPUT_FILE=$VCF_DIR/$INPUT_FILENAME | ||
SED_SCRIPT="/$3/d" | ||
OUTPUT_FILE=$VCF_DIR/${INPUT_FILENAME/.vcf.gz/_2.vcf.gz} | ||
|
||
zcat $INPUT_FILE | sed $SED_SCRIPT | bgzip > $OUTPUT_FILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
BUILD_VERSION=$2 | ||
FILE_PATH=GRCh${BUILD_VERSION} | ||
FILENAME=$1 | ||
SAMPLE_TYPE=$3 | ||
INDEX_NAME=$4 | ||
INPUT_FILE_PATH=${FILE_PATH}/${FILENAME} | ||
|
||
docker-compose exec pipeline-runner load_data.sh $BUILD_VERSION $SAMPLE_TYPE $INDEX_NAME $INPUT_FILE_PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from django.core.management.base import BaseCommand | ||
from django.contrib.auth.models import User | ||
|
||
from seqr.utils.communication_utils import send_reset_password_email | ||
|
||
|
||
class Command(BaseCommand): | ||
|
||
def add_arguments(self, parser): | ||
parser.add_argument('-e', '--email-address', required=True, help="Email address of an existing user in the DB.") | ||
|
||
def handle(self, *args, **options): | ||
user = User.objects.get(email__iexact=options['email_address']) | ||
send_reset_password_email(user) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.