Description Usage Arguments Value See Also Examples
View source: R/prepare_data_from_FASTA.R
Get the one-hot encoding representation of the given sequences.
1 | get_one_hot_encoded_seqs(seqs, sinuc_or_dinuc = "sinuc")
|
seqs |
A |
sinuc_or_dinuc |
character string, 'sinuc' or 'dinuc' to select for mono- or dinucleotide profiles. |
A sparse matrix of sequences represented with one-hot-encoding
prepare_data_from_FASTA
for generating one-hot
encoding of sequences from a FASTA file
Other input functions:
prepare_data_from_FASTA()
1 2 3 4 5 6 7 8 9 10 | fname <- system.file("extdata", "example_data.fa",
package = "archR", mustWork = TRUE)
rawSeqs <- prepare_data_from_FASTA(fasta_fname = fname,
raw_seq = TRUE)
seqs_dinuc <- get_one_hot_encoded_seqs(seqs = rawSeqs,
sinuc_or_dinuc = "dinuc")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.