Skip to contents

Select cross-tissue via SODA

Usage

soda_model_imp_share(
  j,
  gam,
  E,
  dat,
  pos,
  nF0 = 5,
  verbose = TRUE,
  allow_empty = TRUE
)

Arguments

j

the index of gene

gam

TODO

E

list of cell types, each element is a matrix of size n_sample x n_gene

dat

a list with three named elements.

bed

a matrix of size n_sample x n_snp

bim

a data frame with n_snp rows, each row is the info for the snp

pos

a list of genes, each element is a vector containing the SNP index that locate in the gene, and it corresponds to each row of E.info. It can be derived from E.info and dat.

nF0

TODO

verbose

whether to print running messages

allow_empty

whether to allow empty variable set