Skip to content
Snippets Groups Projects
Commit 26ce23d0 authored by Bianca Laker's avatar Bianca Laker
Browse files

Upload New File

parent 5ad37d3f
No related merge requests found
%% Cell type:markdown id: tags:
# Python course 2021 - Exercises D
%% Cell type:markdown id: tags:
## Part1 - writing files
%% Cell type:markdown id: tags:
---
1.1) Read the file AtCol0_Exons.fasta and write all headers (starting with '>') into a new file!
%% Cell type:code id: tags:
```
```
%% Cell type:markdown id: tags:
---
1.2) Read the file AtCol0_Exons.fasta and write the following:
* Line if it is a header
* Length of line if it is a sequence line
%% Cell type:code id: tags:
```
```
%% Cell type:markdown id: tags:
---
1.3) Calculate the number of sequences, the cumulative length and the average length in a new file! Are they matching the values of the original file?
%% Cell type:code id: tags:
```
```
%% Cell type:markdown id: tags:
---
1.4) Write sequences into a new file if their length is a multiple of 10!
%% Cell type:code id: tags:
```
```
%% Cell type:markdown id: tags:
## Part2 - characters
%% Cell type:markdown id: tags:
---
2.1) Read the file AtCol0_Exons.fasta and write the following:
* Only Arabidopsis Gene Identifier (e.g. AT1G01010)
* Gene Identifier, exon name, exon length (tab-delimited)
%% Cell type:code id: tags:
```
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment