StatDBAttribute: Stat Database Attributes.

View source: R/summary.R

StatDBAttributeR Documentation

Stat Database Attributes.

Description

Stat Database Attributes.

Usage

StatDBAttribute(
  df,
  filter,
  database = c("PanglaoDB", "UCSC", "CELLxGENE", "HCA")
)

Arguments

df

All metadata, can be PanglaoDBMeta and obtained with ShowCBDatasets, ShowCELLxGENEDatasets, and ShowHCAProjects.

filter

Vector of attributes.

database

Database name, choose from "PanglaoDB", "UCSC", "CELLxGENE", "HCA". Default: "PanglaoDB".

Value

List of attributes information, including attribute, value and number.

Examples

## Not run: 
# PanglaoDB
StatDBAttribute(df = PanglaoDBMeta, filter = c("species", "protocol"), database = "PanglaoDB")
# UCSC Cell Browser, need users to provide the json folder
ucsc.cb.samples <- ShowCBDatasets(lazy = TRUE, json.folder = NULL, update = FALSE)
StatDBAttribute(df = ucsc.cb.samples, filter = c("organism", "organ"), database = "UCSC")
# CELLxGENE
all.cellxgene.datasets <- ShowCELLxGENEDatasets()
StatDBAttribute(
  df = all.cellxgene.datasets, filter = c("organism", "sex"),
  database = "CELLxGENE"
)
# HCA
all.hca.projects <- ShowHCAProjects()
StatDBAttribute(df = all.hca.projects, filter = c("organism", "sex"), database = "HCA")

## End(Not run)

scfetch documentation built on Nov. 22, 2023, 1:09 a.m.