pred2df {AmpGram} | R Documentation |
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 |
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
- probability
Probability that a protein/peptide possesses antimicrobial activity. It assumes values from 0 (non-AMP) to 1 (AMP).
Row names contain sequence name and decision if a peptide/protein is classified
as AMP (TRUE
) or non-AMP (FALSE
).
Examples
data(AmpGram_predictions)
pred2df(AmpGram_predictions)
[Package AmpGram version 1.0 Index]