clust_all: Build mclust models for multiple fragments

Description Usage Arguments Details Value Examples

View source: R/functions.R

Description

Build mclust models for multiple fragments

Usage

1
2
3
4
5
6
clust_all(
  data,
  fragnames,
  contrib_col_name = "Contribution",
  mol_col_name = "MolID"
)

Arguments

data

input data.frame

fragnames

column of the data.frame containing fragments names (i.e. FragID or full_name)

contrib_col_name

name of a column with contribution values

mol_col_name

name of a column with names (ids) of molecules

Details

If all contributions of a fragment are identical the model for that fragment will not be built.

Value

list containing mclust models for fragments contained in data.frame

Examples

1
2
3
4
5
file_name <- system.file("extdata", "BBB_frag_contributions.txt", package = "rspci")
df <- load_data(file_name)
df <- dplyr::filter(df, Model == "consensus", Property == "overall")
df <- add_full_names(df)
models <- clust_all(df, "full_name")

DrrDom/rspci documentation built on April 27, 2021, 4:26 a.m.