knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

Lifecycle: experimental

library(MolBio)

Overview

MolBio is a package regarding the Central Dogma of Molecular Biology.

MolBio provides a consistent set of verbs that help you solve the most common molecular biology challenges.

You can learn more about the functions in vignette(MolBio).

If you are new to MolBio, the best place to start is this github repository.

(If you're trying to generate a protein sequence from a DNA sequence, see vignette(MolBio)

Installation

Development Version

The easiest way to get MolBio is to install the whole package:

install.packages("devtools")
devtools::install_github("rforbiodatascience22/group_20_package")

The link to the Github repository is :

https://github.com/rforbiodatascience22/group_20_package

Usage

Synthesize DNA with make_dna()

The first verb is make_dna(). It creates a string of DNA

library(MolBio)
dna_seq <- make_dna(240)
dna_seq

Transcribe RNA with make_rna()

The second verb is make_rna(). It creates a string of RNA

rna_sequence <- make_rna(dna_seq)
rna_sequence

Start Initiation and Elongation of RNA with make_codon()

The third verb is make_codon(). It creates separate strings of codons

codon_produced <- make_codon(rna_sequence)
codon_produced

Protein structure creation with make_polypeptide()

The fourth verb is make_polypeptide(). It creates a polypeptide sequence from the codons.

polypeptide_sequence <- make_polypeptide(codon_produced)
polypeptide_sequence

Find the distribution of amino acids in the polypeptide with find_aa_distribution()

The fifth verb is find_aa_distribution(). It plots a histogram of the distribution of amino acids in the polypeptide.

distrib_plot <- find_aa_distribution(polypeptide_sequence)
distrib_plot

Alternatively, the functions can be used in conjunction with one another.

make_dna(20) %>% 
  make_rna() %>% 
  make_codon() %>% 
  make_polypeptide() %>% 
  find_aa_distribution()

Getting help

If you encounter a clear bug, please file an issue with a minimal reproducible example on GitHub. For questions and other discussion, please email s172084@dtu.dk

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.



rforbiodatascience22/group_20_package documentation built on May 2, 2022, 12:44 p.m.