equalize_row_order: Reorder the rows of a fitness landscape according to...

Description Usage Arguments Value

View source: R/model_magellan.R

Description

Reorder the rows of a fitness landscape according to genotype_table.

Usage

1
equalize_row_order(genotype_table, fl)

Arguments

genotype_table

A matrix of 0 and 1. The rows correspond to different genotypes and the columns to the mutations that are considered for these genotypes. A genotype (at a certain row) has a given mutation when there is a 1 in the corresponding column. A row with only zeros correspond to the wild type.

fl

A matrix of logical and a last colum of reals. A fitness landscape with the first columns corresponding to a genotype_table and the last column to the fitness of the genotype of each row.

Value

A fitness landscape similar to fl with the rows reordered according to genotype_table.


YoannAnciaux/inferenceFitnessLandscape documentation built on Oct. 31, 2019, 1:19 a.m.