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.

Note

none

Examples

da <- "_gap_,100895,57610,_gap_,57610,47473" # get features defined as being "supra" dcSplitArch(da, feature.mode="supra")
There are 5 unique features (defined as being 'supra').
[1] "100895" "57610" "100895,57610" "47473" "57610,47473"
# get features defined as being "individual" dcSplitArch(da, feature.mode="individual")
There are 3 unique features (defined as being 'individual').
[1] "100895" "57610" "47473"
# get features defined as being "comb" dcSplitArch(da, feature.mode="comb")
There are 11 unique features (defined as being 'comb').
[1] "100895" "57610" [3] "47473" "100895,57610" [5] "100895,47473" "57610,57610" [7] "47473,57610" "100895,57610,57610" [9] "100895,47473,57610" "47473,57610,57610" [11] "100895,47473,57610,57610"