convert

package
Version: v1.0.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2021 License: BSD-3-Clause, MIT Imports: 6 Imported by: 0

Documentation

Overview

Package convert has functions for convert to matrix format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromTable

func FromTable(table *[]map[string]string, settings ConversionSettings) *types.Matrices

FromTable generates a 2D matrix of conditions v readouts (conditions = columns, readouts = rows). If the rows and columns should be sorted alphabetically, set resort to true. It generates matrices for both the abundance and score column, and can generate row ratios as well if requested. It also returns lists of the conditions and readouts.

Types

type ConversionSettings

type ConversionSettings struct {
	CalculateRatios bool
	KeepReps        bool
	Resort          bool
	ScoreType       string
}

ConversionSettings stores parameters for converting from a table to a matrix.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL