Package 'fastmart'

Title: What the Package Does (One Line, Title Case)
Description: What the package does (one paragraph).
Authors: Sam El-Kamand [aut, cre]
Maintainer: Sam El-Kamand <[email protected]>
License: MIT + file LICENSE
Version: 0.0.0.9000
Built: 2024-11-08 03:28:00 UTC
Source: https://github.com/selkamand/fastmart

Help Index


Annotate ENSEMBL GENES with BIOTYPE

Description

Annotate ENSEMBL GENES with BIOTYPE

Usage

fastmart_annotate_biotype(
  ensemble_gene_id,
  GRCh = c("38", "37"),
  cache_dir = fastmart_default_cache()
)

Arguments

ensemble_gene_id

ensembl gene id (can be versioned / not versioned)

GRCh

assembly to use. Can only be set to

cache_dir

directory to store cache in

Value

matched biotype for each sample (character)

Examples

## Not run: 
fastmart_annotate_biotype('ENSG00000282455.1')
#> IG_D_gene

## End(Not run)

Cache Tables

Description

Cache Tables

Usage

fastmart_cache_tables(
  ensembl_version = 109,
  overwrite = FALSE,
  GRCh = c("38", "37"),
  cache_dir = fastmart_default_cache()
)

Arguments

ensembl_version

ensembl version. Older versions may not be supported. Will be ignored if GRCh != 38

overwrite

overwrite existing cache (flag)

GRCh

assembly to use. Can only be set to

cache_dir

directory to store cache in

Value

invisible(TRUE). This function is run for its side effects

Examples

## Not run: 
fastmart_cache_tables()

## End(Not run)

Convert HGNC -> ENSEMBL IDs

Description

Because ENSEMBL IDs are more granular than HGNC / HUGO symbols we require the start & stop coordinates

Usage

fastmart_convert_hgnc_to_ensembl(
  hgnc_symbols,
  chrom,
  start,
  end,
  GRCh = c("38", "37"),
  exact_match = TRUE,
  no_pos_required = FALSE,
  cache_dir = fastmart_default_cache()
)

Arguments

hgnc_symbols

HGNC symbols

chrom

Chromosome of Gene. Required to resolve ambiguous mappings (character)

start

Start position of Gene. Required to resolve ambiguous mappings (numeric)

end

End position of Gene. Required to resolve ambiguous mappings (numeric)

GRCh

assembly to use. Can only be set to

exact_match

Is an exact match between chrom-start-end required (TRUE), or should the omst similar interval be returned (FALSE) (flag)

cache_dir

directory to store cache in

Value

matched ENSEMBL IDs (character)

Examples

## Not run: 
fastmart_convert_hgnc_to_ensembl('TBCE', chrom='1', start='235530675', end='235612283', GRCh = "37")
# > ENSG00000116957.8

## End(Not run)

Default Cache

Description

Default Cache

Usage

fastmart_default_cache()

Value

default path to cache

Examples

fastmart_default_cache()

Initialise fastmart

Description

Creates a folder (by default at ~/.fastmart) where any database caches will be stored

Usage

fastmart_init(cache_dir = fastmart_default_cache())

Arguments

cache_dir

directory to store cache in

Value

path to the newly created fastmart cache