View source: R/convert_to_coord.R
convert_to_coord | R Documentation |
Convert the 'symbol' column (gene names) into three columns with gene coordinates 'chr', 'start' and 'end'.
convert_to_coord(ge_df, genes_coord, chrs = c(1:22, "X", "Y"), rm_dup = TRUE)
ge_df |
the data.frame with gene expression and one column 'symbol' with gene names. |
genes_coord |
either a file name or a data.frame with coordinates and gene names. |
chrs |
the chromosome names to keep. NULL to include all the chromosomes. |
rm_dup |
remove duplicated coordinates? Default is TRUE. |
If genes_coord is a filename, the file is expected to be a tab-delimited file with four columns: 'chr', 'start', 'end', 'symbol'. The order of the columns is not important.
The gene names in column 'symbol' should match the gene names in the input ge_df.
a data.frame with columns 'chr', 'start', 'end' columns with genes coordinates (and still one column per barcode).
Jean Monlong
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.