lmpy.tools.convert_csv_to_lmm

Convert a numeric (.csv) file to a lmpy Matrix (.lmm) file.

Module Contents

Functions

cli()

Provide a command-line tool for converting csvs to lmms.

convert_csv_to_lmm(csv_filename, num_header_rows, num_header_cols)

Convert a CSV file to a lmpy lmm Matrix.

lmpy.tools.convert_csv_to_lmm.cli()[source]

Provide a command-line tool for converting csvs to lmms.

lmpy.tools.convert_csv_to_lmm.convert_csv_to_lmm(csv_filename, num_header_rows, num_header_cols)[source]

Convert a CSV file to a lmpy lmm Matrix.

Parameters
  • csv_filename (str) – The file location of the csv to convert.

  • num_header_rows (int) – The number of header rows in the csv.

  • num_header_cols (int) – The number of header columns in the csv.

Returns

A matrix from the converted csv file.

Return type

Matrix