This R project includes several functions for analyzing DNA sequences. It covers the generation of random DNA sequences, calculation of sequence sizes, percentage composition of DNA bases, transcription from DNA to RNA, and the translation from RNA to a protein sequence. Additionally, it contains functions for generating the reverse and complementary strands of DNA sequences.
randomDNA()
: Generates a random DNA sequence of size "n".size(DNA)
: Calculates the size of a DNA sequence.porcentajes(DNA, sizeDNA)
: Prints the percentage of each base in the DNA sequence.complemento(DNA)
: Transcribes DNA to its complementary DNA sequence.transcribir(DNA)
: Transcribes DNA to RNA.traduce(i)
: Translates a three-nucleotide RNA sequence to its corresponding amino acid.traduccion_proteina(DNA)
: Translates an RNA sequence into a protein sequence.lista_inversa(lista)
: Generates the reverse sequence of the given DNA sequence.lista_complementaria(lista)
: Generates the complementary strand of a given DNA sequence.
Each function can be called individually with the appropriate inputs. Examples are provided within the script to demonstrate the usage of each function.
# Generate a random DNA sequence
ADN = randomDNA()
# Calculate the size
tam_ADN = size(ADN)
# Get the percentage of each nucleotide
porcentajes(ADN, tam_ADN)
Please refer to the script comments for more detailed usage instructions.
R environment
Inés Alejandro Garcia Mosqueda Fernanda Elizabeth Romo Alarcon César Arnaldo Cabrera Chávez Javier Hernández Garza José Antonio Juárez Pacheco