Expected Preparations:

  [BIN]
Sequence
 
  The units listed above are part of this course and contain important preparatory material.  

Keywords: R coding for the FASTA format and its aligned and multi-FASTA variants

Objectives:

This unit will …

  • … introduce the FASTA format and some of its quirks and variations;

  • … teach how to read, process and write FASTA formatted files;

Outcomes:

After working through this unit you …

  • … can write code to read FASTA and multi-FASTA files;

  • … are familar with a number of pitfalls of doing so;

  • … can write code to analyze the sequences you have read;

  • … can write code to write the sequences to the console or to a file in chunks of defined width.


Deliverables:

Time management: Before you begin, estimate how long it will take you to complete this unit. Then, record in your course journal: the number of hours you estimated, the number of hours you worked on the unit, and the amount of time that passed between start and completion of this unit.

Journal: Document your progress in your Course Journal. Some tasks may ask you to include specific items in your journal. Don’t overlook these.

Insights: If you find something particularly noteworthy about this unit, make a note in your insights! page.


Evaluation:

NA: This unit is not evaluated for course marks.

Contents

FASTA is file format for sequence data. In this unit we show reading, interpreting and writing FASTA data.

The FASTA format is a text-based, compact format for nucleotide or protein sequences. Due to its simple, compact structure, it is ubiquitous in bioinformatics.

Task…

  • Open RStudio and load the ABC-units R project. If you have loaded it before, choose FileRecent projectsABC-Units. If you have not loaded it before, follow the instructions in the RPR-Introduction unit.
  • Choose ToolsVersion ControlPull Branches to fetch the most recent version of the project from its GitHub repository with all changes and bug fixes included. This ensures that your data and code remain up to date when we update, or fix bugs.
  • Type init() if requested.
  • Open the file RPR-FASTA.R and follow the instructions.

     

    Note: take care that you understand all of the code in the script. Evaluation in this course is cumulative and you may be asked to explain any part of code.

Questions, comments

If in doubt, ask! If anything about this contents is not clear to you, do not proceed but ask for clarification. If you have ideas about how to make this material better, let’s hear them. We are aiming to compile a list of FAQs for all learning units, and your contributions will count towards your participation marks.

Improve this page! If you have questions or comments, please post them on the Quercus Discussion board with a subject line that includes the name of the unit.

References

Page ID: RPR-FASTA

Author:
Boris Steipe ( <boris.steipe@utoronto.ca> )
Created:
2017-08-05
Last modified:
2022-09-14
Version:
1.0.1
Version History:
–  1.0.1 2020 maintenance
–  1.0 First live version
–  0.1 First stub
Tagged with:
–  Unit
–  Live
–  Links to R course project

 

[END]