getEmbeddingMatrix: getEmbeddingMatrix

View source: R/getEmbeddingMatrix.R

getEmbeddingMatrixR Documentation

getEmbeddingMatrix

Description

Function reads in the embedding_file given by the user.

Usage

getEmbeddingMatrix(embedding_file_name)

Arguments

embedding_file_name

This should given as the file path, and needs to be in quotes.

Ex: getEmbeddingMatrix("directory/embedding_file_name")

Author(s)

Christine Tataru

Examples

## The function is currently defined as
function (embedding_file_name)
{
    embedding_matrix <- read.csv(embedding_file_name, row.names = 1,
        sep = "")
    return(embedding_matrix)
  }

## To read in the example file that comes preinstalled with the package,
    type the following command:
    getEmbeddingMatrix(system.file("extdata", "embed_.07_100dim.txt", package = "GMEmbeddings"))


MaudeDavidLab/gut_microbiome_embeddings_package documentation built on April 1, 2022, 4:48 a.m.