| input_seq {SynMut} | R Documentation |
Constructing regioned_dna from DNAStringSet. Optionally input a
region data.frame to define restricted amino-acid region for mutation.
input_seq(object, region = NA, ...) ## S4 method for signature 'character' input_seq(object, region) ## S4 method for signature 'DNAStringSet' input_seq(object, region) ## S4 method for signature 'DNAString' input_seq(object, region)
object |
Filepath or DNAstringSet. The input sequences is suggested to be in open reading frame(ORF). |
region |
|
... |
... |
A regioned_dna-class object
get_cu, get_du,
get_region, get_dna
# Creating a input_seq class directly from system file
filepath <- system.file("extdata", "example.fasta", package = "SynMut")
rgd.seq <- input_seq(filepath)
# Optionally input with region dataframe
filepath.fasta <- system.file("extdata", "example.fasta", package = "SynMut")
fp.csv <- system.file("extdata", "target_regions.csv", package = "SynMut")
region <- read.csv(fp.csv)
rgd.seq <- input_seq(filepath.fasta, region)
# Creating from exsisting DNAStringSet object
seq <- Biostrings::DNAStringSet("ATCGATCGA")
rgd.seq <- input_seq(seq)