formatSeq | R Documentation |
This function generates a list of sequences according to the specified indices. The sequence list can be used as input for feature extraction or prediction.
formatSeq(idx, seqs)
idx |
specifying the sequence indices. |
seqs |
sequences loaded by function |
This function is useful for formatting the sequences using the specified indices (or names) and a sequence list.
For example, the names of RNA-protein interaction pairs have been provided, but the sequences
are randomly listed in one file. This function can generate a list containing the sequences whose names are listed
in idx
object.
See examples below.
This function returns a list.
data(demoIDX)
data(demoPositiveSeq)
new_RNA <- formatSeq(demoIDX$RNA_index, demoPositiveSeq$RNA.positive)
new_Pro <- formatSeq(demoIDX$Pro_index, demoPositiveSeq$Pro.positive)
names(demoPositiveSeq$Pro.positive)
names(demoPositiveSeq$RNA.positive)
names(new_RNA)
names(new_Pro)
# new_RNA and new_Pro can be further used to extract features.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.