Difference between revisions of "RPR-FASTA"
m |
m |
||
Line 29: | Line 29: | ||
<section begin=abstract /> | <section begin=abstract /> | ||
<!-- included from "../components/RPR-FASTA.components.wtxt", section: "abstract" --> | <!-- included from "../components/RPR-FASTA.components.wtxt", section: "abstract" --> | ||
− | . | + | 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 40: | Line 40: | ||
<!-- included from "ABC-unit_components.wtxt", section: "notes-prerequisites" --> | <!-- included from "ABC-unit_components.wtxt", 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|BIN-Sequence (Sequence)]] |
{{Vspace}} | {{Vspace}} | ||
Line 47: | Line 47: | ||
=== Objectives === | === Objectives === | ||
<!-- included from "../components/RPR-FASTA.components.wtxt", section: "objectives" --> | <!-- included from "../components/RPR-FASTA.components.wtxt", section: "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; | ||
{{Vspace}} | {{Vspace}} | ||
Line 54: | Line 56: | ||
=== Outcomes === | === Outcomes === | ||
<!-- included from "../components/RPR-FASTA.components.wtxt", section: "outcomes" --> | <!-- included from "../components/RPR-FASTA.components.wtxt", section: "outcomes" --> | ||
− | ... | + | After working through this unit you ... |
+ | * ... can write code to read FASTA and multi-FASTA files; | ||
+ | * ... are familar with a number of pittfalls 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. | ||
{{Vspace}} | {{Vspace}} | ||
Line 84: | Line 90: | ||
== Contents == | == Contents == | ||
<!-- included from "../components/RPR-FASTA.components.wtxt", section: "contents" --> | <!-- included from "../components/RPR-FASTA.components.wtxt", 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. | ||
+ | |||
+ | {{ABC-unit|RPR-FASTA.R}} | ||
+ | |||
{{Vspace}} | {{Vspace}} | ||
Line 155: | Line 165: | ||
:2017-08-05 | :2017-08-05 | ||
<b>Version:</b><br /> | <b>Version:</b><br /> | ||
− | :0 | + | :1.0 |
<b>Version history:</b><br /> | <b>Version history:</b><br /> | ||
+ | *1.0 First live version | ||
*0.1 First stub | *0.1 First stub | ||
</div> | </div> |
Revision as of 22:23, 14 October 2017
FASTA files with R
Keywords: R coding for the FASTA format and its aligned and multi-fasta variants
Contents
This page is only a stub; it is here as a placeholder to establish the logical framework of the site but there is no significant content as yet. Do not work with this material until it is updated to "live" status.
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 pittfalls 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
Evaluation: NA
- This unit is not evaluated for course marks.
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 File → Recent projects → ABC-Units. If you have not loaded it before, follow the instructions in the RPR-Introduction unit. - Choose Tools → Version Control → Pull 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
This copyrighted material is licensed under a Creative Commons Attribution 4.0 International License. Follow the link to learn more.