build_model {LncFinder} | R Documentation |
Build Users' Own Model
Description
This function is used to build new models with users' own data.
Usage
build_model(
lncRNA.seq,
mRNA.seq,
frequencies.file,
SS.features = FALSE,
lncRNA.format = "DNA",
mRNA.format = "DNA",
parallel.cores = 2,
folds.num = 10,
seed = 1,
gamma.range = (2^seq(-5, 0, 1)),
cost.range = c(1, 4, 8, 16, 24, 32),
...
)
Arguments
lncRNA.seq |
Long non-coding sequences. Can be a FASTA file loaded by
|
mRNA.seq |
mRNA sequences. FASTA file loaded by |
frequencies.file |
String or a list obtained from function
|
SS.features |
Logical. If |
lncRNA.format |
String. Define the format of |
mRNA.format |
String. Define the format of |
parallel.cores |
Integer. The number of cores for parallel computation.
By default the number of cores is |
folds.num |
Integer. Specify the number of folds for cross-validation.
(Default: |
seed |
Integer. Used to set the seed for cross-validation. (Default: |
gamma.range |
The range of gamma. (Default: |
cost.range |
The range of cost. (Default: |
... |
Additional arguments passed to function |
Details
This function is used to build a new model with users' own sequences.
Users can use function lnc_finder
to predict the sequences with
new models.
For the details of frequencies.file
, please refer to function
make_frequencies
.
For the details of the features, please refer to function
extract_features
.
For the details of svm tuning, please refer to function svm_tune
.
Value
Returns a svm model.
References
Siyu Han, Yanchun Liang, Qin Ma, Yangyi Xu, Yu Zhang, Wei Du, Cankun Wang & Ying Li. LncFinder: an integrated platform for long non-coding RNA identification utilizing sequence intrinsic composition, structural information, and physicochemical property. Briefings in Bioinformatics, 2019, 20(6):2009-2027.
Author(s)
HAN Siyu
See Also
make_frequencies
, lnc_finder
,
extract_features
, svm_tune
,
svm
.
Examples
## Not run:
data(demo_DNA.seq)
Seqs <- demo_DNA.seq
### Build the model with pre-build frequencies.file:
my_model <- build_model(lncRNA.seq = Seqs[1:5], mRNA.seq = Seqs[6:10],
frequencies.file = "human", SS.features = FALSE,
lncRNA.format = "DNA", mRNA.format = "DNA",
parallel.cores = 2, folds.num = 2, seed = 1,
gamma.range = (2 ^ seq(-5, -1, 2)),
cost.range = c(2, 6, 12, 20))
### Users can use default values of gamma.range and cost.range to find the
best parameters.
### Use your own frequencies file by assigning frequencies list to parameter
### "frequencies.file".
## End(Not run)