- Create new Elasticsearch domain with the desired configuration. Be sure to enable SSL and user-authentication.
- Create a user for your Study Tracker integration (eg.
studytracker
). - Create a role for the user, grant it
unlimited
privileges on thestudies
index and theindics:data/write/bulk
permission.
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
### Data Set Manifest Example | |
displayName: Cancer Cell Line Encyclopedia # The data set display name. Short, but descriptive | |
shortName: ccle # Data set short name. No whitespace or file system-forbidden characters. Maybe this value could just come from the manifest file name? eg ccle.yaml | |
source: Borad Institute # Source organization of the data | |
version: v1 # Version number, if available. | |
description: Cancer cell line genomic data from the Broad Institute. # General notes or data set description. | |
attributes: # Dynamic key value attributes. Allows capturing of custom attributes for historical record | |
source-species: "Homo sapiens" |
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
import com.fasterxml.jackson.databind.ObjectMapper; | |
import org.springframework.http.*; | |
import org.springframework.web.client.RestClientException; | |
import org.springframework.web.client.RestTemplate; | |
import java.io.IOException; | |
import java.util.List; | |
/** | |
* @author woemler |
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
package me.woemler.sqlbuilder; | |
import org.springframework.util.Assert; | |
import java.util.Arrays; | |
import java.util.List; | |
/** | |
* Based on com.nurkiewicz.jdbcrepository.TableDescription, with a number of modifications. | |
* |
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
package me.woemler.myapp.config; | |
import org.springframework.context.annotation.ComponentScan; | |
import org.springframework.context.annotation.Configuration; | |
@Configuration | |
@ComponentScan(basePackages = { "me.woemler.myapp" }) | |
public class ApplicationConfig { | |
} |
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
from BeautifulSoup import BeautifulSoup | |
import urllib2 | |
import re | |
def fetch_page_soup(url): | |
""" Fetches page data from a URL and returns a parsed BeautifulSoup object """ | |
try: | |
response = urllib2.urlopen(url) |
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
import pandas as pd | |
# Read a TSV file into a data frame | |
# This will automatically handle the data types | |
df = pd.read_csv("my_data.txt", sep="\t") | |
# Write the data frame to a storer HDF5 file in the table "data", overwriting existing files | |
df.to_hdf("my_data.store.h5", 'data', mode="w") | |
# Writing to ta table formatted HDF5 file is a little trickier |
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
import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.stereotype.Controller; | |
import org.springframework.ui.ModelMap; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
@Controller | |
public class DefaultController { | |
@Value("${app.var2}") | |
private String var2; |