View source: R/dnam_search_index.R
get_fh | R Documentation |
Get the hashed features for a data table. Uses reticulate package to call the Python script to do feature hashing on a table of data. It is assumed the input table has sample data in rows, with probe data in columns. The input data table should have row names but not column names.
get_fh(csv_savepath, csv_openpath, ndim = 1000, lstart = 1)
csv_savepath |
Name/path of hashed features table to write (required, string, writes new csv where rows = samples, cols = hashed features). |
csv_openpath |
Name/path of table to hash (required, string, assumes a csv where rows = samples, cols = probes). |
ndim |
Number of hashed features (integer, 1000). |
lstart |
Line index to start on (0-based for Python, required, int, 0). |
Path to new hashed featuers table.
# get example bval csv # of_fpath <- system.file("extdata", "fhtest", # package = "recountmethylation") # of_fpath <- file.path(of_fpath, "tbval_test.csv") # write new hashed features results # get_fh(csv_savepath = "bval_fn.csv", csv_openpath = of_fpath, ndim = 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.