Learn R Programming

CancerGram (version 1.0.0)

pred2df: Convert predictions to data.frame Return predictions as data.frame

Description

Convert predictions to data.frame Return predictions as data.frame

Usage

pred2df(x)

Arguments

x

results of prediction as produced by predict.cancergram_model

Value

a data.frame with two columns and number of rows corresponding to the number of peptides/proteins in the results of prediction. Columns contain following information:

seq_name

Name of an analyzed sequence.

acp

Probability that a protein/peptide possesses anticancer activity.

amp

Probability that a protein/peptide possesses antimicrobial activity.

neg

Probability that a protein/peptide do not possesses anticancer or antimicrobial activity.

decision

Result of the prediction.

Examples

Run this code
# NOT RUN {
data(CancerGram_predictions)
pred2df(CancerGram_predictions)
# }

Run the code above in your browser using DataLab