Learn R Programming

powerHaDeX (version 1.0)

test_hadex_data: Apply tests for HaDeX data

Description

This function converts the data from HaDeX in order to make it compatible with the input of test functions and perform the testing procedures of provided tests.

Usage

test_hadex_data(
  dat,
  states = unique(dat[["State"]])[1:2],
  tests = list(test_houde)
)

Arguments

dat

data.table. The data of hdx_data class from the HaDeX package.

states

a character vector containing two states from provided `dat` that should be tested. By default the first two states (if exist) from `dat` are chosen.

tests

a list of testing functions. In the `powerHaDeX` package the following tests are implemented:

- test_houde,

- test_hdx_analyzer,

- test_memhdx_model,

-test_semiparametric.

Value

This function returns a data table of variables:

- Test - name of test,

- State_1, State_2 - tested states from states,

- Significant_difference - TRUE or FALSE, indicating whether the null hypothesis is rejected

- Sequence - amino acid sequence that was tested