Tables like expression and sample_covariate house different datapoints per sample, and we often want to only retreive data points over a subset of samples.

join_samples(x, samples = NULL, semi = FALSE, distinct.samples = FALSE)

Arguments

x

likely a tbl_sqlite object, but a tbl_df-like object should work as well.

samples

a sample descriptor tbl_df-like object (likely a tbl_sqlite object) that has "dataset" and "samle_id" columns.

semi

if TRUE, appropximates a semi-join on the samples, otherwise does an inner_join between x and samples (default FALSE).

Value

joined result between x and samples