get_fh: get_fh

View source: R/dnam_search_index.R

get_fhR Documentation

get_fh

Description

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.

Usage

get_fh(csv_savepath, csv_openpath, ndim = 1000, lstart = 1)

Arguments

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).

Value

Path to new hashed featuers table.

Examples

# 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)

metamaden/recountmethylation documentation built on Jan. 5, 2023, 9:56 a.m.