Protein FASTA Database Handling
OverviewQuestions:Objectives:
How to download protein FASTA databases of a certain organism?
How to download a contaminant database?
How to create a decoy database?
How to combine databases?
Requirements:
Creation of a protein FASTA database ready for use with database search algorithms.
Time estimation: 30 minutesLevel: Introductory IntroductorySupporting Materials:Last modification: Oct 18, 2022
Introduction
In mass spectrometry based proteomics experiments, peptides are assigned to experimentally acquired tandem mass spectra (MS2) by a method called peptide-spectral matching. Peptide spectral matching is commonly achieved by using search algorithms to match the acquired MS2 spectra to theoretical spectra. The theoretical spectra are generated from an in silico digestion and fragmentation of proteins in the FASTA database. Ideally, the protein FASTA databases will contain all proteins of the organism under investigation.
AgendaIn this tutorial, we will deal with:
Uploading a protein search Database
There are a many ways how you can upload your protein search database (FASTA file with protein sequences). Three of these ways are:
- Using Protein Database Downloader tool .
- Using a direct weblink to the database.
- Uploading a database from the data library.
In this tutorial, we will explore Protein Database Downloader tool for generating a protein search database. For this we will download the proteome of an organism of interest. In this tutorial, we will use a database of the human proteome.
Hands-on: Uploading a protein search database
Create a new history for this Database Handling exercise.
Click the new-history icon at the top of the history panel.
If the new-history is missing:
- Click on the galaxy-gear icon (History options) on the top of the history panel
- Select the option Create New from the menu
- Open Protein Database Downloader Tool: toolshed.g2.bx.psu.edu/repos/galaxyp/dbbuilder/dbbuilder/0.3.1
- Select in the drop-down menues “Taxonomy”:
Homo sapiens (Human)
andreviewed
: “UniprotKB/Swiss-Prot (reviewed only)”.- Click on
Execute
. There will be a new dataset namedProtein database
in your history, now.- Rename the
Protein database
toMain database
.Comment: Types of uniprot databasesUniprot offers several types of databases. You may choose to download only reviewed (UniProtKB/Swissprot) databases, only unreviewed (UniProtKB/TREMBL) or both (UniProtKB). In model organisms which are well-researched, e.g. Homo sapiens or D. melanogaster, reviewed (Swissprot) databases contain curated proteins and may lead to smaller databases and cleaner search results. However, if the researcher is interested in identifying proteins that are unreviewed, it might be wiser to include the TrEMBL database.
You may also include protein isoforms by setting the tick box
Include isoform data
toYes
.QuestionWhat is the difference between a “reference proteome set” and a “complete proteome set”?
- A UniProt complete proteome consists of the set of proteins thought to be expressed by an organism whose genome has been completely sequenced. A reference proteome is the complete proteome of a representative, well-studied model organism or an organism of interest for biomedical and biotechnological research. Reference proteomes constitute a representative cross-section of the taxonomic diversity to be found within UniProtKB. Species of particular importance may be represented by numerous reference proteomes for specific ecotypes or strains of interest. Link to source
Contaminant databases
In proteomic samples, some protein contaminants are commonly present. These protein contaminants are introduced into the sample during sample preparation, either from contaminated samples (e.g. mycoplasma in cell culture), chemicals or the experimenter in person. In order to avoid misidentification of spectra derived from contaminants, protein sequences of common laboratory contaminants are added to the database. This has two benefits:
- The degree of contamination can be observed, heavily contaminated samples can be excluded from analysis.
- Contaminant peptides cannot be misassigned to similar peptides in the database reducing the risk of identifying false positives.
A widely used database for common contaminants is the common Repository of Adventitious Proteins (cRAP). When using samples generated in cell cultures, it is furthermore recommended to include Mycoplasma proteomes in the search database. Mycoplasma infections are very common in cell culture and often go unnoticed (Drexler and Uphoff, Cytotechnology, 2002).
Hands-on: Contaminant databases
- Open Protein Database Downloader Tool: toolshed.g2.bx.psu.edu/repos/galaxyp/dbbuilder/dbbuilder/0.3.1
- Select “Download from”:
cRAP (contaminants)
and execute.- Rename the new database to
crap database
.To be able to distinguish contaminants from proteins of interest, you should add a tag to each contaminant protein.
- Run FASTA-to-Tabular Tool: toolshed.g2.bx.psu.edu/repos/devteam/fasta_to_tabular/fasta2tab/1.1.1 on your crap database.
- Run Add column Tool: addValue on the new output. In the field
Add this value
enter “CONTAMINANT” and execute.- Run Tabular-to-FASTA Tool: toolshed.g2.bx.psu.edu/repos/devteam/tabular_to_fasta/tab2fasta/1.1.1 .
- “Title column”:
Column 1
andColumn 3
- “Sequence column”:
Column 2
- Rename the new fasta file to
Tagged cRAP database
.Question
- The cRAP database contains some human proteins. What does it mean if you identify those typical contaminants in a human sample?
- What does it mean in a non-human sample?
- In samples stemming from a human source, identified human contaminants do not necessarily mean a contaminated sample. The proteins may as well originate from the research study sample. Users are advised to use discretion when interpreting the data.
- In samples from non-human sources, identified human contaminants do mean contamination by the experimenter.
Hands-on: Optional Hands-On: _Mycoplasma_ databases90 - 95 % of mycoplasma infection in cell culture originates from the following species: M. orale, M. hyorhinis, M. arginini, M. fermentans, M. hominis and A. laidlawii (Drexler and Uphoff, Cytotechnology, 2002).
- Run Protein Database Downloader Tool: toolshed.g2.bx.psu.edu/repos/galaxyp/dbbuilder/dbbuilder/0.3.1 five times to download all reviewed mycoplasma databases. We will merge them to the main database in the next part of the tutorial.
- Run FASTA Merge Files and Filter Unique Sequences Tool: toolshed.g2.bx.psu.edu/repos/galaxyp/fasta_merge_files_and_filter_unique_sequences/fasta_merge_files_and_filter_unique_sequences/1.2.0 to combine all mycoplasma databases into a single one.
- Tag each entry in the combined database with the string “MYCOPLASMA_CONTAMINANT” by using FASTA-to-Tabular Tool: toolshed.g2.bx.psu.edu/repos/devteam/fasta_to_tabular/fasta2tab/1.1.1 , Add column Tool: addValue and Tabular-to-FASTA Tool: toolshed.g2.bx.psu.edu/repos/devteam/tabular_to_fasta/tab2fasta/1.1.1 , as explained above.
- Rename the Tabular-to-FASTA tool output to
Tagged Mycoplasma database
.CommentThe reviewed mycoplasma databases do not contain all known proteins. It is better to also include the TREMBL database. Mycoplasma proteomes are relatively small, so even downloading TrEMBL sequences will not incraese the size of your main database by much.
Merging databases
Depending on the search algorithm in use, you might need to merge all FASTA entries (i.e. proteins of interest and contaminants) in a single database. Make sure to merge the tagged versions of your contaminant databases.
Hands-on: Merging databases
- Run FASTA Merge Files and Filter Unique Sequences Tool: toolshed.g2.bx.psu.edu/repos/galaxyp/fasta_merge_files_and_filter_unique_sequences/fasta_merge_files_and_filter_unique_sequences/1.2.0 on the main database and the tagged cRAP database.
- In “Input FASTA File(s)”:
- param-repeat Click on “Insert Input FASTA File(s)”
- In “Input FASTA File(s)”
- “FASTA file”:
tagged cRAP database
- param-repeat Click on “Insert Input FASTA File(s)”
- In “Input FASTA File(s)”
- “FASTA file”:
main database
- Set “How are sequences judged to be unique?” to
Accession Only
.Optional: Merging mycoplasma databases
At this step you may also merge the mycoplasma protein databases that you downloaded earlier on. Simply enter them as additional inputs in FASTA Merge Files and Filter Unique Sequences tool. You can enter any number of protein databases when you click on
Insert Input FASTA file(s)
.
Creating a Decoy Database
The most common method of peptide and protein False Discovery Rate (FDR) calculation is by adding protein sequences that are not expected to be present in the sample. These are also called decoy protein sequences. This can be done by generating reverse sequences of the target protein entries and appending these protein entries to the protein database. Some search algoritmms use premade target-decoy protein sequences while others can generate a target-decoy protein sequence database from a target protein sequence database before using them for peptide spectral matching.
Hands-on: Creating a Decoy Database
- Run DecoyDatabase Tool: toolshed.g2.bx.psu.edu/repos/galaxyp/openms_decoydatabase/DecoyDatabase/2.6+galaxy0 on the merged database.
- Rename the final database to
human reviewed cRAP decoy database
, orhuman reviewed cRAP mycoplasma decoy database
The string you enter as a decoy tag will be added as a prefix or suffix (your choice) to the description of each decoy protein entry. Thus you can see from which entry in the target database the decoy was computed.
CommentDecoyDatabase tool may also take several databases as input which are then automatically merged into one database.
Concluding remarks
In order to keep your protein databases up-to-date, it is recommended to create a workflow out of the hands-on sections (to learn about workflows see this tutorial). You might also want to combine the mycoplasma databases to a single file, which you then easily can add to each of your main databases.
Often you may not want to use the most recent database for reasons of reproducibility. If so, you can transfer the final database of this tutorial into other histories to work with it.
Further reading about construction of the optimal database: (Kumar et al., Methods in molecular biology, 2017).
This tutorial is based upon parts of the GalaxyP-101 tutorial (https://usegalaxyp.readthedocs.io/en/latest/sections/galaxyp_101.html).
Key points
There are several types of Uniprot databases.
Search databases should always include possible contaminants.
For analyzing cell culture or organic samples, search databases should include mycoplasma databases.
Some peptide search engines depend on decoys to calculate the FDR.
Frequently Asked Questions
Have questions about this tutorial? Check out the tutorial FAQ page or the FAQ page for the Proteomics topic to see if your question is listed there. If not, please ask your question on the GTN Gitter Channel or the Galaxy Help ForumUseful literature
Further information, including links to documentation and original publications, regarding the tools, analysis techniques and the interpretation of results described in this tutorial can be found here.
Feedback
Did you use this material as an instructor? Feel free to give us feedback on how it went.
Did you use this material as a learner or student? Click the form below to leave feedback.
Citing this Tutorial
- Florian Christoph Sigloch, Björn Grüning, 2022 Protein FASTA Database Handling (Galaxy Training Materials). https://training.galaxyproject.org/training-material/topics/proteomics/tutorials/database-handling/tutorial.html Online; accessed TODAY
- Batut et al., 2018 Community-Driven Data Analysis Training for Biology Cell Systems 10.1016/j.cels.2018.05.012
Congratulations on successfully completing this tutorial!@misc{proteomics-database-handling, author = "Florian Christoph Sigloch and Björn Grüning", title = "Protein FASTA Database Handling (Galaxy Training Materials)", year = "2022", month = "10", day = "18" url = "\url{https://training.galaxyproject.org/training-material/topics/proteomics/tutorials/database-handling/tutorial.html}", note = "[Online; accessed TODAY]" } @article{Batut_2018, doi = {10.1016/j.cels.2018.05.012}, url = {https://doi.org/10.1016%2Fj.cels.2018.05.012}, year = 2018, month = {jun}, publisher = {Elsevier {BV}}, volume = {6}, number = {6}, pages = {752--758.e1}, author = {B{\'{e}}r{\'{e}}nice Batut and Saskia Hiltemann and Andrea Bagnacani and Dannon Baker and Vivek Bhardwaj and Clemens Blank and Anthony Bretaudeau and Loraine Brillet-Gu{\'{e}}guen and Martin {\v{C}}ech and John Chilton and Dave Clements and Olivia Doppelt-Azeroual and Anika Erxleben and Mallory Ann Freeberg and Simon Gladman and Youri Hoogstrate and Hans-Rudolf Hotz and Torsten Houwaart and Pratik Jagtap and Delphine Larivi{\`{e}}re and Gildas Le Corguill{\'{e}} and Thomas Manke and Fabien Mareuil and Fidel Ram{\'{\i}}rez and Devon Ryan and Florian Christoph Sigloch and Nicola Soranzo and Joachim Wolff and Pavankumar Videm and Markus Wolfien and Aisanjiang Wubuli and Dilmurat Yusuf and James Taylor and Rolf Backofen and Anton Nekrutenko and Björn Grüning}, title = {Community-Driven Data Analysis Training for Biology}, journal = {Cell Systems} }