> For the complete documentation index, see [llms.txt](https://igb.mit.edu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://igb.mit.edu/mini-courses/python/biopython/example-projects/translating-a-eukaryotic-fasta-file-of-cds-entries.md).

# Translating a eukaryotic FASTA file of CDS entries

From DNA sequence to predicted protein is an example in [Biopython Cookbook "From gene sequence to predicted protein with the GFF module"](https://biopython.org/wiki/Gene_predictions_to_protein_sequences). Basing on DNA sequence and [GlimmerHMM](http://ccb.jhu.edu/software/glimmerhmm/) output in [GFF3](https://github.com/The-Sequence-Ontology/Specifications/blob/master/gff3.md) format, the project script outputs protein coding sequences in fasta format.

The project script and example input files are available from: <https://ki-data.mit.edu/bcc/teaching/Biopython>

Login and password will be distributed during class

```
** install GFF module: pip install bcbio-gff

** Download reference DNA sequence file: ref.fa

** Download GlimmerHMM GFF3 output file: glimmer.gff

** Download project script: glimmergff_to_proteins.py 

** run glimmergff_to_proteins.py with GFF3 file as the 1st argument and reference DNA file as the second argument

** The output protein sequence is a fasta file with the same suffix as the gff file and with the ending as proteins.fa
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://igb.mit.edu/mini-courses/python/biopython/example-projects/translating-a-eukaryotic-fasta-file-of-cds-entries.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
