R/annotate_sce_genes.R
annotate_sce_genes.RdAdds biomaRt annotations (e.g. gene, gene_biotype) and calculates the following QC metrics:
qc_metric_ensembl_mapped - was the ensembl_gene_id found in biomaRt
qc_metric_is_mito - is the gene mitochondrial
qc_metric_is_ribosomal - is the gene ribosomal
annotate_sce_genes(
sce,
drop_unmapped = TRUE,
drop_mito = TRUE,
drop_ribo = FALSE,
ensembl_mapping_file = NULL,
species = getOption("scflow_species", default = "human")
)a SingleCellExperiment object with ensembl_gene_id rowData
set TRUE to remove unmapped ensembl_gene_id
set TRUE to remove mitochondrial genes
set TRUE to remove ribosomal genes
a local tsv file with ensembl_gene_id and additional columns for mapping ensembl_gene_id to gene info. If not provided, the biomaRt db is queried (slower).
The biological species of the sample.#'
sce a SingleCellExperiment object annotated with gene data
Other annotation functions:
.preprocess_seurat_object(),
annotate_celltype_metrics(),
annotate_integrated_sce(),
annotate_merged_sce(),
annotate_sce(),
annotate_sce_cells(),
filter_sce(),
find_cells(),
find_singlets(),
generate_sce(),
map_ensembl_gene_id(),
merge_sce(),
read_metadata(),
report_celltype_metrics(),
report_celltype_model(),
report_merged_sce(),
report_qc_sce(),
run_doubletfinder(),
sce_to_seu()