Difference between revisions of "RPR-FASTA"

From "A B C"
Jump to navigation Jump to search
m
m
Line 28: Line 28:
 
== Abstract ==
 
== Abstract ==
 
<section begin=abstract />
 
<section begin=abstract />
<!-- included from "../components/RPR-FASTA.components.wtxt", section: "abstract" -->
+
<!-- included from "./components/RPR-FASTA.components.txt", section: "abstract" -->
 
FASTA is file format for sequence data. In this unit we show reading, interpreting and writing FASTA data.
 
FASTA is file format for sequence data. In this unit we show reading, interpreting and writing FASTA data.
 
<section end=abstract />
 
<section end=abstract />
Line 37: Line 37:
 
== This unit ... ==
 
== This unit ... ==
 
=== Prerequisites ===
 
=== Prerequisites ===
<!-- included from "../components/RPR-FASTA.components.wtxt", section: "prerequisites" -->
+
<!-- included from "./components/RPR-FASTA.components.txt", section: "prerequisites" -->
<!-- included from "ABC-unit_components.wtxt", section: "notes-prerequisites" -->
+
<!-- included from "./data/ABC-unit_components.txt", section: "notes-prerequisites" -->
 
You need to complete the following units before beginning this one:
 
You need to complete the following units before beginning this one:
 
*[[BIN-Sequence|BIN-Sequence (Sequence)]]
 
*[[BIN-Sequence|BIN-Sequence (Sequence)]]
Line 46: Line 46:
  
 
=== Objectives ===
 
=== Objectives ===
<!-- included from "../components/RPR-FASTA.components.wtxt", section: "objectives" -->
+
<!-- included from "./components/RPR-FASTA.components.txt", section: "objectives" -->
 
This unit will ...
 
This unit will ...
 
* ... introduce the FASTA format and some of its quirks and variations;
 
* ... introduce the FASTA format and some of its quirks and variations;
Line 55: Line 55:
  
 
=== Outcomes ===
 
=== Outcomes ===
<!-- included from "../components/RPR-FASTA.components.wtxt", section: "outcomes" -->
+
<!-- included from "./components/RPR-FASTA.components.txt", section: "outcomes" -->
 
After working through this unit you ...
 
After working through this unit you ...
 
* ... can write code to read FASTA and multi-FASTA files;
 
* ... can write code to read FASTA and multi-FASTA files;
Line 66: Line 66:
  
 
=== Deliverables ===
 
=== Deliverables ===
<!-- included from "../components/RPR-FASTA.components.wtxt", section: "deliverables" -->
+
<!-- included from "./components/RPR-FASTA.components.txt", section: "deliverables" -->
<!-- included from "ABC-unit_components.wtxt", section: "deliverables-time_management" -->
+
<!-- included from "./data/ABC-unit_components.txt", section: "deliverables-time_management" -->
 
*<b>Time management</b>: 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.
 
*<b>Time management</b>: 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.
<!-- included from "ABC-unit_components.wtxt", section: "deliverables-journal" -->
+
<!-- included from "./data/ABC-unit_components.txt", section: "deliverables-journal" -->
 
*<b>Journal</b>: Document your progress in your [[FND-Journal|Course Journal]]. Some tasks may ask you to include specific items in your journal. Don't overlook these.
 
*<b>Journal</b>: Document your progress in your [[FND-Journal|Course Journal]]. Some tasks may ask you to include specific items in your journal. Don't overlook these.
<!-- included from "ABC-unit_components.wtxt", section: "deliverables-insights" -->
+
<!-- included from "./data/ABC-unit_components.txt", section: "deliverables-insights" -->
 
*<b>Insights</b>: If you find something particularly noteworthy about this unit, make a note in your [[ABC-Insights|'''insights!''' page]].
 
*<b>Insights</b>: If you find something particularly noteworthy about this unit, make a note in your [[ABC-Insights|'''insights!''' page]].
 
{{Vspace}}
 
 
 
=== Evaluation ===
 
<!-- included from "../components/RPR-FASTA.components.wtxt", section: "evaluation" -->
 
<!-- included from "ABC-unit_components.wtxt", section: "eval-none" -->
 
<b>Evaluation: NA</b><br />
 
:This unit is not evaluated for course marks.
 
  
 
{{Vspace}}
 
{{Vspace}}
Line 89: Line 80:
 
<div id="BIO">
 
<div id="BIO">
 
== Contents ==
 
== Contents ==
<!-- included from "../components/RPR-FASTA.components.wtxt", section: "contents" -->
+
<!-- included from "./components/RPR-FASTA.components.txt", section: "contents" -->
  
 
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.
 
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.
Line 108: Line 99:
  
 
== Notes ==
 
== Notes ==
<!-- included from "../components/RPR-FASTA.components.wtxt", section: "notes" -->
+
<!-- included from "./components/RPR-FASTA.components.txt", section: "notes" -->
<!-- included from "ABC-unit_components.wtxt", section: "notes" -->
+
<!-- included from "./data/ABC-unit_components.txt", section: "notes" -->
 
<references />
 
<references />
  
Line 118: Line 109:
 
<div id="ABC-unit-framework">
 
<div id="ABC-unit-framework">
 
== Self-evaluation ==
 
== Self-evaluation ==
<!-- included from "../components/RPR-FASTA.components.wtxt", section: "self-evaluation" -->
+
<!-- included from "./components/RPR-FASTA.components.txt", section: "self-evaluation" -->
 
<!--
 
<!--
 
=== Question 1===
 
=== Question 1===
Line 143: Line 134:
  
  
<!-- included from "ABC-unit_components.wtxt", section: "ABC-unit_ask" -->
+
<!-- included from "./data/ABC-unit_components.txt", section: "ABC-unit_ask" -->
  
 
----
 
----
Line 171: Line 162:
 
</div>
 
</div>
 
[[Category:ABC-units]]
 
[[Category:ABC-units]]
<!-- included from "ABC-unit_components.wtxt", section: "ABC-unit_footer" -->
+
<!-- included from "./data/ABC-unit_components.txt", section: "ABC-unit_footer" -->
  
 
{{CC-BY}}
 
{{CC-BY}}

Revision as of 01:26, 6 January 2018

FASTA files with R


 

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


 



 


 


Abstract

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


 


This unit ...

Prerequisites

You need to complete the following units before beginning this one:


 


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.


 


Contents

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.
  • 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.


 


 


Further reading, links and resources

 


Notes


 


Self-evaluation

 



 




 

If in doubt, ask! If anything about this learning unit is not clear to you, do not proceed blindly but ask for clarification. Post your question on the course mailing list: others are likely to have similar problems. Or send an email to your instructor.



 

About ...
 
Author:

Boris Steipe <boris.steipe@utoronto.ca>

Created:

2017-08-05

Modified:

2017-08-05

Version:

1.0

Version history:

  • 1.0 First live version
  • 0.1 First stub

CreativeCommonsBy.png This copyrighted material is licensed under a Creative Commons Attribution 4.0 International License. Follow the link to learn more.