Protein FASTA Database Handling
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?
Creation of a protein FASTA database ready for use with database search algorithms.
time Time estimation: 30 minutes
level Level: Introductory level level level
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.
In 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 Hands-on: Uploading a protein search database
Create a new history for this Database Handling exercise.
tip Tip: Creating a new history
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
- Select in the drop-down menues
Taxonomy: “Homo sapiens (Human)” and
reviewed: “UniprotKB/Swiss-Prot (reviewed only)”.
- Click on
Execute. There will be a new dataset named
Protein databasein your history, now.
- Rename the
comment Types of uniprot databases
Uniprot 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 datato
What 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
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 Hands-on: Contaminant databases
- Open Protein Database Downloader tool.
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 on your crap database.
- Run Add column tool on the new output. In the field
Add this valueenter “CONTAMINANT” and execute.
- Run Tabular-to-FASTA tool. Use column 1 and column 3 as Title columns and column 2 as sequence column.
- Rename the Tabular-to-FASTA tool output to “Tagged cRAP database”.
- 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 databases
90 - 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).
- Use Protein Database Downloader tool to download the six 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 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, Add column tool and Tabular-to-FASTA tool, as explained above.
- Rename the Tabular-to-FASTA tool output to “Tagged Mycoplasma database”.
The 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.
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 Hands-on: Merging databases
- Run FASTA Merge Files and Filter Unique Sequences tool on the main database and the tagged cRAP database.
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 Hands-on: Creating a Decoy Database
- Run DecoyDatabase tool on the merged database.
comment Decoy tags
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.
DecoyDatabase tool may also take several databases as input which are then automatically merged into one database.
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).
keypoints 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.
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.
congratulations Congratulations on successfully completing this tutorial!
feedback Give us even more feedback on this content!
To give us more detailed feedback about these materials, please take a moment to fill in the extended Feedback Form.