final_score: function to format the final df of scores

Description Usage Arguments Value Examples

View source: R/format_score_df.R

Description

function to format the final df of scores. The adjustment and filtering steps are executed. It is automatically called by the geNet() function

Usage

1
2
3
4
5
6
final_score(
  final_df_phi_score,
  sel_weight = "coeff",
  pval_thr_pos = 0.01,
  pval_thr_neg = 0.1
)

Arguments

final_df_phi_score

the dataframe of scores generated by the generate_final_df() function. Mandatory argument

sel_weight

select the type of weights of the edges. Possible values: logpvalue: choose the negative log-pvalues as weights of the edges coeff: choose the correlation coefficients as weights of the edges Default to "coeff"

pval_thr_pos

threhold p-value positive edges. Default to 0.01.

pval_thr_neg

threshold p-value negative edges. Default to 0.1.

Value

Object of class "ffdf", containing the connections between the nodes. The connections have been filtered and correctly formatted to be converted in an igraph object

Examples

1
## Not run: final_score(final_df_phi_score,sel_weight="coeff")

haneylab/geNet documentation built on Oct. 4, 2020, 8:40 a.m.