- Will use ELB
- Will use wildcard cert provided by AWS (https://console.aws.amazon.com/acm/)
This installs a set of resources.
Using helm:
| digraph Workflow { | |
| node [shape="box"]; | |
| subgraph cluster_0 { | |
| SRA_XML [shape=record label="SRA XML|{Study|Sample|Experiment|Run}"] | |
| XML_TO_JSON [label="XML to JSON"] | |
| SRA_JSON [shape=record label="SRA JSON|{Study|Sample|Experiment|Run}"] | |
| BIOSAMPLE_XML [label="Biosample XML"] | |
| BIOSAMPLE_JSON [label="Biosample JSON"] |
This installs a set of resources.
Using helm:
Assumes kubernetes cluster created and kubectl configured correctly.
kubectl create serviceaccount --namespace kube-system tiller
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller
| """parallel bulk indexing | |
| Indexes a json file using parallel_bulk. | |
| """ | |
| import elasticsearch | |
| from elasticsearch import Elasticsearch | |
| from elasticsearch.helpers import parallel_bulk as pb | |
| from collections import deque |
| #!/bin/bash | |
| # Start EKS cluster on AWS | |
| # Install eksctl (https://eksctl.io/) | |
| # On mac, homebrew | |
| brew tap weaveworks/tap | |
| brew install weaveworks/tap/eksctl | |
| # start cluster (takes a few minutes) |
| --- | |
| title: "Playing with OmicIDX" | |
| author: "Sean Davis" | |
| date: "3/14/2019" | |
| output: | |
| BiocStyle::html_document: | |
| toc_float: True | |
| --- | |
| # Introduction to the OmicIDX API |
| FROM ubuntu:18.04 | |
| RUN apt-get update | |
| RUN apt-get install -y wget | |
| # We do things this way to keep the docker image | |
| # size down. See https://nickjanetakis.com/blog/docker-tip-3-chain-your-docker-run-instructions-to-shrink-your-images | |
| RUN wget http://ftp-trace.ncbi.nlm.nih.gov/sra/sdk/2.9.2/sratoolkit.2.9.2-ubuntu64.tar.gz \ | |
| && tar -xvzf sratoolkit.2.9.2-ubuntu64.tar.gz \ | |
| && rm sratoolkit.2.9.2-ubuntu64.tar.gz |
| from __future__ import print_function | |
| import apache_beam as beam | |
| from apache_beam.options.pipeline_options import PipelineOptions | |
| from apache_beam.io.filesystems import FileSystems | |
| import urllib | |
| import json | |
| import argparse | |
| import logging | |
| logging.basicConfig(level=logging.INFO) |