Skip to content

Instantly share code, notes, and snippets.

Phil Snyder philerooski

  • Seattle, WA
Block or report user

Report or block philerooski

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View QC.Rmd
---
title: "JourneyPRO - on-going summary"
output:
html_document: default
html_notebook: default
pdf_document: default
date: "`r format(Sys.time(), '%d %B, %Y')`"
---
```{r global_options, include=FALSE}
@philerooski
philerooski / sf12v2.R
Created Dec 7, 2017
Score a matrix of SF-12v2 responses and store to Synapse
View sf12v2.R
#' SF12v2 questionnaire scoring
library(synapseClient)
synapseLogin()
healthSurveyId <- "syn10278768"
healthSurvey <- synTableQuery(paste("select * from", healthSurveyId))@values
questionCols <- names(healthSurvey)[12:23]
sf <- healthSurvey[c("recordId", "healthCode", "dataGroups", questionCols)] %>%
filter(dataGroups %in% c("beta_thalassemia", "myelodysplastic_syndrome", "myelofibrosis")) %>% na.omit()
sf12v2 <- function( X = NULL ) {
View plotHeartRate.py
import synapseclient as sc
import matplotlib.pyplot as plt
import pandas as pd
import argparse
def read_args():
parser = argparse.ArgumentParser(description='Plot camera vs oximeter readings.')
parser.add_argument('medianData')
return parser.parse_args()
You can’t perform that action at this time.