### Install seqinr Package Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 This code snippet shows the command to install the seqinr package from CRAN. It is a prerequisite for using any of the package's functionalities. ```r install.packages('seqinr') ``` -------------------------------- ### Create Bitlist on Server Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 The `crelistfromclientdata` function allows the creation of a bitlist on a server from data lines sent by a client. This is likely used for data management in a client-server setup. ```r seqinr::crelistfromclientdata(data_lines) ``` -------------------------------- ### Codon Usage Analysis Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 Includes functions for analyzing codon usage, such as calculating codon usage indices (`uco`), generating synonymous coding sequences (`synsequence`), and providing toy examples of codon counts (`toycodon`). ```r seqinr::uco(coding_sequence) seqinr::synsequence(dna_sequence) seqinr::toycodon() ``` -------------------------------- ### Read FASTA Files Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 Demonstrates how to read sequences from FASTA formatted files using the `read.fasta` function. This is a common task for importing sequence data. ```r seqinr::read.fasta(file = "your_sequences.fasta", seqtype = "DNA", as.string = TRUE) ``` -------------------------------- ### Database Growth Information Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 The `get.db.growth` function retrieves the exponential growth of nucleic acid database content. This can provide insights into the rate of data accumulation. ```r seqinr::get.db.growth(database = "nucleotide") ``` -------------------------------- ### Sequence Annotation and Retrieval Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 The `GetFromSequence` function provides generic methods to obtain annotation, fragment, associated keyword(s), length, location, name, sequence, or translation for a given sequence object. ```r seqinr::GetFromSequence(sequence_object, info = "length") ``` -------------------------------- ### Write FASTA Files Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 Illustrates how to write biological sequences to a file in FASTA format using the `write.fasta` function. This is useful for exporting processed or generated sequence data. ```r seqinr::write.fasta(sequences = my_sequences, names = my_names, file = "output_sequences.fasta") ``` -------------------------------- ### Sequence Format Conversion (GenBank to FASTA) Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 The `gb2fasta` function converts a GenBank file into a FASTA file. This is useful for standardizing sequence data formats. ```r seqinr::gb2fasta(file = "input.gb", outfile = "output.fasta") ``` -------------------------------- ### Retrieve Data from NCBI Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 The `get.ncbi` function retrieves bacterial complete genome data from the NCBI FTP site. This allows direct access to genomic data for analysis. ```r seqinr::get.ncbi(organism = "Escherichia coli") ``` -------------------------------- ### Sequence Analysis Utilities Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 Contains various utility functions for sequence analysis, including `SEQINR.UTIL` for utility data, `dinucl` for dinucleotide z-scores, and `prochlo` for z-scores on Prochlorococcus strains. ```r seqinr::dinucl(nucleic_acid_sequence) seqinr::prochlo(sequence_data) ``` -------------------------------- ### Sequence Manipulation (Complement and Reverse) Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 Includes functions to compute the complement of a nucleic acid sequence (`comp`) and to reverse an alignment (`reverse.align`). ```r seqinr::comp(nucleic_acid_sequence) seqinr::reverse.align(alignment_object) ``` -------------------------------- ### Sequence Permutation Models Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 The `permutation` function allows for sequence permutation according to various models, which is crucial for statistical testing in sequence analysis. ```r seqinr::permutation(sequence = my_seq, model = "transition") ``` -------------------------------- ### Nucleotide Composition Analysis Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 Functions for analyzing nucleotide composition, including dimer/trimer composition (`count`), dinucleotide representation (`dinucleotides`), and Chargaff base composition (`chargaff`). ```r seqinr::count(nucleic_acid_sequence, wordsize = 2) seqinr::dinucleotides(nucleic_acid_sequence) seqinr::chargaff(nucleic_acid_sequence) ``` -------------------------------- ### Sequence Alignment Analysis Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 Functions for reading aligned sequence files (`read.alignment`) and calculating pairwise distances from aligned sequences (`dist.alignment`). Supports multiple alignment formats. ```r seqinr::read.alignment(file = "aligned_sequences.aln", format = "fasta") seqinr::dist.alignment(alignment_object) ``` -------------------------------- ### Sequence Data Management (ACNUC) Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 Provides utilities for interacting with ACNUC databases, including closing remote databases (`closebank`), querying sequence names (`query`), and selecting databases (`choosebank`). ```r seqinr::closebank(db_connection) seqinr::query(db_handle, "gene_name") seqinr::choosebank(db_name = "nucleotide") ``` -------------------------------- ### Sequence Comparison (Dot Plot) Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 Generates a dot plot for comparing two sequences. This visualization helps identify regions of similarity and difference between sequences. ```r seqinr::dotPlot(seq1 = sequence_a, seq2 = sequence_b, main = "Dot Plot Comparison") ``` -------------------------------- ### GenBank to Glimmer Format Conversion Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 The `gbk2g2` function converts a GenBank format file into a glimmer-like format. This is useful for compatibility with other gene prediction tools. ```r seqinr::gbk2g2(file = "input.gbk", outfile = "output.glimmer") ``` -------------------------------- ### Calculate G+C Content Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 This function calculates the fractional G+C content of nucleic acid sequences. It takes a sequence object as input and returns the G+C percentage. ```r seqinr::GC(seq = my_dna_sequence) ``` -------------------------------- ### Bacterial Genome Size Distribution Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 The `dia.bactgensize` function provides the distribution of bacterial genome sizes from the GOLD database. This is useful for comparative genomics. ```r seqinr::dia.bactgensize() ``` -------------------------------- ### Sequence Type and Information Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 Functions to determine the type of a sequence (`getType`) and to retrieve various statistics or information about protein sequences (`AAstat`). ```r seqinr::getType(sequence_object) seqinr::AAstat(protein_sequence) ``` -------------------------------- ### Sequence Type Classes Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 Defines classes for representing different types of biological sequences, such as `SeqFrag` for subsequences, `SeqFastadna` for DNA sequences in FASTA format, `SeqFastaAA` for amino acid sequences in FASTA format, and `SeqAcnucWeb` for sequences from ACNUC web databases. ```r new("SeqFrag", start = 10, end = 50) new("SeqFastadna", s = "ATGCGTACGT") new("SeqFastaAA", s = "ARNDCEQGHILKMFPSTWYV") new("SeqAcnucWeb", db = "nucleotide", id = "NM_001126") ``` -------------------------------- ### Sequence Splitting Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 The `splitseq` function splits a sequence into smaller subsequences. This can be useful for analyzing specific regions or for creating overlapping fragments. ```r seqinr::splitseq(sequence = my_sequence, chunk.size = 100) ``` -------------------------------- ### Plotting Subsequences Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 The `plot.SeqAcnucWeb` function is designed to plot subsequences on their parent sequence, specifically for sequences retrieved from ACNUC web databases. ```r plot(SeqAcnucWeb_object, start = 100, end = 500) ``` -------------------------------- ### Sequence Permutation Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 The `permutation` function shuffles sequences according to specified models. This is useful for null hypothesis testing in sequence analysis. ```r seqinr::permutation(sequence = my_sequence, model = "ப்படி") ``` -------------------------------- ### Expected Ka/Ks Results Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 The `AnoukResult` object likely stores expected numeric results for Ka and Ks computations, serving as a reference or test case for the `kaks` function. ```r data(AnoukResult) ``` -------------------------------- ### Translate Nucleic Acid Sequences Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 Translates nucleic acid sequences into amino acid sequences using the standard genetic code. It can handle different reading frames and sequence types. ```r seqinr::translate(seq = my_nucleic_acid_sequence, frame = 0, sens = "both", na.rm = TRUE) ``` -------------------------------- ### Isoelectric Point Calculation Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 The `computePI` function calculates the theoretical isoelectric point of a protein sequence. This is important for understanding protein charge properties. ```r seqinr::computePI(protein_sequence) ``` -------------------------------- ### Motif Position Finding Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 The `words.pos` function finds the positions of possibly degenerated motifs within sequences. This is useful for identifying regulatory elements or other functional sites. ```r seqinr::words.pos(sequence = my_sequence, motif = "TATAWA") ``` -------------------------------- ### Motif Extraction Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 The `words` function extracts all possible words (k-mers) from a given alphabet. This can be a preliminary step for various sequence analysis tasks. ```r seqinr::words(alphabet = c("A", "T", "G", "C"), k = 2) ``` -------------------------------- ### Synonymous Codon Weighting Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 The `ucoweight` function calculates the weight of each synonymous codon. This is relevant for understanding translational efficiency and codon bias. ```r seqinr::ucoweight(gene_sequence) ``` -------------------------------- ### Sequence Data Visualization (Dot Plot) Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 The `dotPlot.uco` function creates a Cleveland plot for codon usage tables. This helps visualize codon bias in coding sequences. ```r seqinr::dotPlot.uco(codon_usage_table) ``` -------------------------------- ### Genetic Code Plotting Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 The `tablecode` function plots the genetic code as typically found in textbooks. This is a useful reference for translation studies. ```r seqinr::tablecode() ``` -------------------------------- ### Amino Acid Cost Analysis Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 The `aacost` function calculates the aerobic cost of amino acids in Escherichia coli and their G+C classes. This relates amino acid composition to metabolic cost. ```r seqinr::aacost(protein_sequence) ``` -------------------------------- ### Sequence Data Conversion Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 Provides utility functions for converting sequence data between different formats or representations. `c2s` converts a vector of characters to a string, and `s2c` converts a string to a vector of characters. ```r seqinr::c2s(char_vector) seqinr::s2c(string_data) ``` -------------------------------- ### Convert Amino Acid Codes Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 Provides functions to convert between one-letter and three-letter amino acid codes. `aaa` converts from three-letter to one-letter, and `a` converts from one-letter to three-letter. ```r seqinr::aaa(amino_acid_three_letter_code) seqinr::a(amino_acid_one_letter_code) ``` -------------------------------- ### Protein Molecular Weight Calculation Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 The `pmw` function calculates the theoretical molecular weight of a protein sequence. This is a fundamental property for protein characterization. ```r seqinr::pmw(protein_sequence) ``` -------------------------------- ### Numeric DNA Encoding Conversion Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 Provides functions for converting DNA sequences between numeric encoding and character vectors. `n2s` converts numeric encoding to characters, and `s2n` performs the reverse conversion. ```r seqinr::n2s(numeric_sequence) seqinr::s2n(character_sequence) ``` -------------------------------- ### Ka and Ks Estimation Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 The `kaks` function is used to estimate the rates of non-synonymous (Ka) and synonymous (Ks) substitutions between two aligned sequences. This is a key metric in molecular evolution. ```r seqinr::kaks(seq1 = aligned_gene1, seq2 = aligned_gene2) ``` -------------------------------- ### Ka/Ks Estimation Source: https://rdocumentation.org/packages/seqinr/versions/1.0-5 The `kaks` function estimates Ka and Ks values, which are rates of non-synonymous and synonymous substitutions, respectively. This is important for evolutionary analysis. ```r seqinr::kaks(seq1 = gene_a, seq2 = gene_b) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.