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

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

data(CancerGram_predictions) pred2df(CancerGram_predictions)
#> seq_name acp amp neg decision #> 1 ACP_seq 1.00000000 0.0000000 0 ACP #> 2 AMP_seq 0.03976349 0.9602365 0 AMP #> 3 Neg_seq 0.00000000 0.0000000 1 neg