check_cds | R Documentation |
check_cds
performs comprehensive quality control on coding sequences (CDS)
by filtering sequences based on various criteria and optionally removing start
or stop codons. This function ensures that sequences meet the requirements for
downstream codon usage analysis.
check_cds(
seqs,
codon_table = get_codon_table(),
min_len = 6,
check_len = TRUE,
check_start = TRUE,
check_stop = TRUE,
check_istop = TRUE,
rm_start = TRUE,
rm_stop = TRUE,
start_codons = c("ATG")
)
seqs |
Input CDS sequences as a DNAStringSet or compatible object. |
codon_table |
Codon table matching the genetic code of the input sequences.
Generated using |
min_len |
Minimum CDS length in nucleotides (default: 6). |
check_len |
Logical. Check whether CDS length is divisible by 3 (default: TRUE). |
check_start |
Logical. Check whether CDSs begin with valid start codons (default: TRUE). |
check_stop |
Logical. Check whether CDSs end with valid stop codons (default: TRUE). |
check_istop |
Logical. Check for internal stop codons (default: TRUE). |
rm_start |
Logical. Remove start codons from the sequences (default: TRUE). |
rm_stop |
Logical. Remove stop codons from the sequences (default: TRUE). |
start_codons |
Character vector specifying valid start codons (default: "ATG"). |
A DNAStringSet containing filtered and optionally trimmed CDS sequences that pass all quality control checks.
# Perform CDS sequence quality control for a sample of yeast genes
s <- head(yeast_cds, 10)
print(s)
check_cds(s)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.