run_correlation: Calculate correlations

View source: R/run_stuff.R

run_correlationR Documentation

Calculate correlations

Description

Find correlated traits in GeneNetwork

Usage

run_correlation(
  dataset,
  group,
  trait,
  type = c("sample", "tissue"),
  method = c("pearson", "spearman"),
  n_results = 500,
  url = gnapi_url()
)

Arguments

dataset

Name of database for the trait (Short_Abbreviation)

group

Target database name to be correlated against

trait

ID for trait used for correlation

type

Sample or tissue correlation

method

Pearson or Spearman correlation

n_results

Number of results to return

url

The URL for the GeneNetwork API

Value

Data frame

Examples

out <- run_correlation("HC_M2_0606_P", "BXDPublish", "1427571_at")

kbroman/GNapi documentation built on July 29, 2023, 10:10 a.m.