inst/benchmark/workflow_hla_aa.R

#!/usr/bin/env R
# Migdal
# Run simple hla_aa workflow

devtools::load_all()

argv = commandArgs(trailingOnly=TRUE)
input <- argv[1] # input hla_calls

hla_calls <- readHlaCalls(input)
col_data <- data.frame(
  ID = hla_calls$ID,
  val = rbinom(nrow(hla_calls), 1, 0.2))

midas <-
  prepareMiDAS(
    hla_calls = hla_calls,
    colData = col_data,
    experiment = "hla_aa"
  )

model <- glm(val ~ term, data = midas, family = binomial())

hla_aa_result <- runMiDAS(model, "hla_aa", inheritance_model = "dominant")
Genentech/MiDAS documentation built on Feb. 5, 2024, 11:52 a.m.