| seq_vector {bioseq.fasta} | R Documentation |
seq_vector(sgt, seqs,
as.dataframe = FALSE);
a numeric vector of the embedding result if there is only one sequence in the input sequence collection, or a data frame object(each row is the embedding vector of one sequence, and the column names are v1, v2, ...) when the as_dataframe parameter is TRUE, or a named list of the embedding vector of each sequence.
imports "bioseq.fasta" from "seqtoolkit";
# get fasta sequence data
let seqs = read.fasta("./proteins.fa");
let sgt = seq_sgt(moltype = "prot");
let vec = sgt |> seq_vector(seqs);
# run data analysis on the generated embedding vectors