Accessing and Manipulating Biological Databases Exercises (Part 2)

[This article was first published on R-exercises, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

In the exercises below we cover how we can Access and Manipulate Biological Data bases through rentrez & Seqinr packages

Install Packages
rentrez
seqinr

Answers to the exercises are available here.

If you obtained a different (correct) answer than those listed on the solutions page, please feel free to post your answer as a comment on that page.

Exercise 1
Read a Fasta File in your current directory and print the sequence

Exercise 2

Read a Fasta File in your current directory and print the length of the sequences

Exercise 3

Read a Fasta File in your current directory and count each nucleotide in the file.

Exercise 4

Read a Fasta File in your current directory and print the details of the sequences
Exercise 5

Read a Fasta File in your current directory and count all dinucleotides in the file.

Learn more about Data Pre-Processing in the online course R Data Pre-Processing & Data Management – Shape your Data!. In this course you will learn how to:

  • import data into R in several ways while also beeing able to identify a suitable import tool
  • use SQL code within R
  • And much more

Exercise 6

Read a Fasta File in your current directory and print the GC contents

Exercise 7

Read a Fasta File in your current directory and print sequences as characters.

Exercise 8

Open the Nucleotide Fasta file and translate the sequences to Amino acids in Forward Translation

Exercise 9

Open the Nucleotide Fasta file and translate the sequences to Amino acids in Reverse Translation

Exercise 10

Open the Nucleotide Fasta file and translate the sequences to Amino acids and print the three letter codons of the translated amino acids

To leave a comment for the author, please follow the link and comment on their blog: R-exercises.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)