Learn R Programming

dcGOR (version 1.0.6)

dcSplitArch: Function to obtain a list of features via splitting an input architecture

Description

dcSplitArch is supposed to obtain a list of features via splitting an input architecture.

Usage

dcSplitArch(da, feature.mode = c("supra", "individual", "comb"), sep = ",", ignore = "_gap_", verbose = T)

Arguments

da
an input architecture. For example, a comma-separated string
feature.mode
the mode of how to define the features thereof. It can be: "supra" for combinations of one or two successive domains (including individual domains; considering the order), "individual" for individual domains only, and "comb" for all possible combinations (including individual domains; ignoring the order)
sep
a character string to separate. By default, it is comma ','
ignore
a character string to ignore. By default, it is '_gap_'. Ihis ignored character will affect the features defined as being 'supra' (see examples below)
verbose
logical to indicate whether the messages will be displayed in the screen. By default, it sets to TRUE for display

Value

a vector containing splitted features.

See Also

dcAlgo, dcAlgoPredict

Examples

Run this code
da <- "_gap_,100895,57610,_gap_,57610,47473"
# get features defined as being "supra"
dcSplitArch(da, feature.mode="supra")
# get features defined as being "individual"
dcSplitArch(da, feature.mode="individual")
# get features defined as being "comb"
dcSplitArch(da, feature.mode="comb")

Run the code above in your browser using DataLab