Default Genomes

Different scRNA-seq datasets are built using different genome references, namely different species and different genome versions. infercna comes with a number of inbuilt genomes that can be configured to work with the package. See below for more information.

Note: Additional genomes / genome versions will be added in future releases of infercna.

List available genomes with availableGenomes()

Find out which genomes are available in infercna.

Check which genome is configured with currentGenome()

Note that the default genome that infercna is built to use is genome hg19. This is the penultimate release version of the H. sapiens genome. You can always check which genome is configured with infercna::currentGenome().

Configure a different genome with useGenome()

You can configure infercna to work with one of the inbuilt genomes. Currently built-in genomes are the two latest versions of H. sapiens, hg38 and hg19 and the latest version of the M. musculus, mm10.

Genome data variables

The default genomes available in infercna have the following columns.

  1. symbol : gene name
  2. chromosome_name : chromosome name
  3. arm : chromosome arm
    • identical to chromosome_name in genome mm10
  4. start_position : of each gene
  5. end_position : of each gene
  6. band : chromosome band
  7. strand : chromosome strand
  8. ensembl_gene_id

Note: Only the first four columns amongst these are required if you intend to add your genome (discussed below in more detail).

User-defined Genomes

Add a new genome with addGenome()

In some cases you may need to configure infercna with your own genome, either because it is not built-in with infercna, or because it is a genome that you built yourself, tailored to your purposes.

Using infercna::addGenome, it is possible to configure infercna to use the genome of your choosing, so long as it meets the following requirements.

Note: addGenome will return an error if any of these requirements are not met.

  • Be a dataframe

  • Contain the following columns

    1. symbol : gene name
      • e.g. SOX11, BRAF, TP53
    2. chromosome_name : chromosome name
      • must be a factor column with chromosomes correctly ordered.
      • e.g. levels(data$chromosome_name) == c(1:22, "X", "Y")
    3. arm : chromosome arm name
      • must be a factor column with chromosome arms correctly ordered.
      • e.g. levels(data$arm) == c('1p', '1q', ..., 'Yp', 'Yq')
      • if not applicable because your genome doesn’t have arms (e.g. mouse!), instead set arm as a duplicate of chromosome_name.
    4. start_position : of each gene
  • Columns chromosome_name and arm are factor columns (see above)

Note: You can add a genome with as many additional columns as you like. For example, you may want to have end_position and band columns in addition to those listed above.

A dummy example

The default columns are those that are required for one or more of the following:

  1. Order the genes by their genomic position: chromosome_name, start_position + Note that the input ordering of symbol column does not matter.

  2. Split the genes by their chromosomal position: chromosome_name, arm + Note that you can additionally split genes by additional columns that you might add, such as band.

addGenome(genome = Data, name = 'dummyAlphabetGenome')
#> Genome has been set to dummyAlphabetGenome