View source: R/create_top10percent_genesets_file.R
create_top10percent_genesets_file | R Documentation |
The gene covar file is the input to MAGMA for the celltype association analysis. This code was functonalised because it is called by both baseline and conditional analysis.
create_top10percent_genesets_file(
genesOutFile,
ctd,
annotLevel,
ctd_species,
verbose = TRUE
)
genesOutFile |
The output of the second call to MAGMA (performed in the map_snps_to_genes function). |
ctd |
Cell type data structure containing
|
ctd_species |
Species name relevant to the CellTypeDataset ( |
verbose |
Print messages. |
Filepath for the gene covar file
#### Prepare cell-type data ####
ctd <- ewceData::ctd()
#### Prepare GWAS MAGMA data ####
myGenesOut <- MAGMA.Celltyping::import_magma_files(ids = "ieu-a-298",
file_types = ".genes.out",
return_dir = FALSE)
ctd <- MAGMA.Celltyping::prepare_quantile_groups(ctd = ctd)
geneSetsFilePath <- MAGMA.Celltyping:::create_top10percent_genesets_file(
genesOutFile = myGenesOut,
ctd = ctd,
annotLevel = 1,
## Mapped to human orths by prepare_quantile_groups previously
ctd_species = "human"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.