synchronize_samples: Synchronize sample IDs between objects.

View source: R/synchronize-samples.R View source: R/get-sample-id-field.R

synchronize_samplesR Documentation

Synchronize sample IDs between objects.

Description

If each object exists, we get the intersection of the sample IDs, sort them and subset each object. Sample IDs must be in rownames for each parameter.

If each object exists, we get the intersection of the sample IDs, sort them and subset each object. Sample IDs must be in rownames for each parameter.

Usage

synchronize_samples(pheno, probs, expr, covar = NULL)

synchronize_samples(pheno, probs, expr, covar = NULL)

Arguments

pheno

a matrix or data.frame containing the phenotypes

probs

a numeric matrix containing the founder allele probabilities

expr

a numeric matrix containing the gene expression data

covar

a numeric matrix containing the mapping covariates

Value

list with four elements: 'pheno', 'probs', 'expr' and 'covar'. The Sample IDs will all be in the same order.

list with four elements: 'pheno', 'probs', 'expr' and 'covar'. The Sample IDs will all be in the same order.


churchill-lab/qtl2api documentation built on April 17, 2025, 3:27 a.m.