expand2genes | R Documentation |
This function interpolates the bins into an interpretable gene copy number matrix. All genes within the bin coordinates get assigned the same value. Some genes sit between bins without copy number data and will be marked as NA
expand2genes(X, gene.index, bin.id = "bin.id", gene.id = "hgnc.symbol")
X |
the X bins data.frame |
gene.index |
gene index with bin.id and hgnc.symbol |
bin.id |
name of the bin.id column (the bin.id is the row in the bins data.frame) |
gene.id |
string noting which gene ID you want to use e.g. hgnc.symbol, ensembl_gene_id |
The gene copy number matrix is core to the cnr object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.