<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://teaching.healthtech.dtu.dk/22111/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Carol</id>
	<title>22111 - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://teaching.healthtech.dtu.dk/22111/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Carol"/>
	<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php/Special:Contributions/Carol"/>
	<updated>2026-09-23T00:10:02Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1101</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1101"/>
		<updated>2026-09-22T08:57:59Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Random protein sequences and BLASTP */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using two approaches; the Web interface to &#039;&#039;&#039;BLAST&#039;&#039;&#039; hosted by the &#039;&#039;&#039;NCBI&#039;&#039;&#039;, and using the &#039;&#039;&#039;BioPython library&#039;&#039; in a Notebook using &#039;&#039;&#039;Google Colab&#039;&#039;&#039;. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds. &lt;br /&gt;
&lt;br /&gt;
:If you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can copy the pre-saved searches under &#039;&#039;&#039;Blast Job ID:XXX&#039;&#039;&#039; and use them on the link from BLAST called &#039;&#039;&#039;Saved Strategies&#039;&#039;&#039;. Please notice that these links will only work for the duration of the exercise session.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_Saved_Strategies.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from a close relative, the common macaque (&#039;&#039;Macaca fascicularis&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;J00336.1 Monkey (M. fascicularis) preproinsulin mRNA, complete cds&lt;br /&gt;
 AACCCTCCGGGACAGGCTGCATCAGAAGAGGTCAGCAAGCAGGTCACTGTCCTTCGGCTATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGCGCTGCTGGCCCTCTGGGGACCTGACCCGGCCCCGGCCTTTGTGAAC&lt;br /&gt;
 CAGCACCTGTGCGGCTCCCACCTAGTGGAAGCTCTCTACCTGGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCCTCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGCGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCGCTGGAGGGGTCCCTGCAGAAGCGCGGCATCGTGGAGCAGTGCTGCACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAA&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2C1HZPV014&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? J00336.1&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 708&lt;br /&gt;
:* What is the percent identity and query coverage? 100% and 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the human hit you found now.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 7e-168&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2CCWWRV014&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? Human G+T (2 databases)&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 3e-170&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.6&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
Generate 10 random DNA sequence of length 25bp using Google Colab.&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using each random sequence as query. &lt;br /&gt;
&lt;br /&gt;
In Google Colab, this will be analogous to the web browser using the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. And in this case we will select &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. In addition we will have to modify the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;E_VALUE_THRESH&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
In the Google Colab we do this inadvertently setting the parameter &amp;quot;&amp;lt;u&amp;gt;short_query=False&amp;lt;/u&amp;gt;&amp;quot;. In the web browser version this will be analogous as going into the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options, and &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
In our Google colab we will now select &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, and the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Note 1:&#039;&#039;&#039; In our random generated sequences, the distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
:&#039;&#039;&#039;Note 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).  We also need to tweak the parameters this time. We are doing this by &amp;quot;&amp;lt;u&amp;gt;short_query =False&amp;lt;/u&amp;gt;&amp;quot;, which will be analogous to set in the Web browser version &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Perform the BLAST search.&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Please &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.1)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)? Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID (blastn): B4C91VW4016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID (blastp): B4CMGVXT016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B4D0NJAJ016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B4D73S06016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=ExBlast-Answers_new&amp;diff=1100</id>
		<title>ExBlast-Answers new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=ExBlast-Answers_new&amp;diff=1100"/>
		<updated>2026-09-22T08:48:16Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* QUESTION 2.3 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Answers to the BLAST exercise. Values for database sizes etc. retrieved&lt;br /&gt;
September 21, 2026&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.1===&lt;br /&gt;
The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.2===&lt;br /&gt;
* &#039;&#039;Which database did you use?&#039;&#039; &lt;br /&gt;
:core_nt&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:J00336.1 (Note that the latter was also part of the sequence name for your query sequence!)&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;Max score in bits&amp;quot;)?&#039;&#039;&lt;br /&gt;
:The max score is 708 bits &lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:100% and 100%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:0.0 (actually, a number so small that it is rounded off to 0.0)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:No, of course not, since the sequences are identical&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.3===&lt;br /&gt;
* &#039;&#039;Which database did you use?&#039;&#039; &lt;br /&gt;
:core_nt&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:NM_000207.3&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;max score&amp;quot;)?&#039;&#039;&lt;br /&gt;
:603&lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:identity: 94.34% and query coverage: 99%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:7e-168 (meaning 7&amp;amp;times;10&amp;lt;sup&amp;gt;-168&amp;lt;/sup&amp;gt;)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:No&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.4===&lt;br /&gt;
* &#039;&#039;Which database did you use?&#039;&#039; &lt;br /&gt;
:Human G+T (2 databases)&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:NM_000207.3, they have the same score and are therefore equally good. Note that these are among the equally good hits found in the previous question.&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;max score&amp;quot;)?&#039;&#039;&lt;br /&gt;
:603&lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:identity: 94.34% and query coverage: 99%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:3e-170 (meaning 3&amp;amp;times;10&amp;lt;sup&amp;gt;-170&amp;lt;/sup&amp;gt;)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:No&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.5===&lt;br /&gt;
&#039;&#039;What are the sizes (in basepairs) of the databases we used for the two BLAST searches?&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
nt(Human): 1,081,933,534,067 letters (= basepairs), Human G+T: 4,017,001,775 letters (= basepairs).&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.6===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the ratio between the database sizes in the two BLAST searches?&#039;&#039;&lt;br /&gt;
: 1,081,933,534,067 / 4,017,001,775 = &amp;lt;u&amp;gt;~269&amp;lt;/u&amp;gt;&lt;br /&gt;
*&#039;&#039;What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &#039;&#039;&lt;br /&gt;
:7e-168 / 3e-170 = &amp;lt;u&amp;gt;~233&amp;lt;/u&amp;gt;&lt;br /&gt;
:Note: since the E-values have only three significant digits, you cannot expect to get the exact same result.&lt;br /&gt;
:Also note, you can google &amp;quot;7e-168 / 3e-170&amp;quot; directly and the answer will show up in the results.&lt;br /&gt;
*&#039;&#039;What is the relationship between database size and E-value for hits with identical alignment score?&#039;&#039;&lt;br /&gt;
:The E-value is directly proportional to the database size. &lt;br /&gt;
:Note: Conceptually this means that an alignment within the given score (603 bits) is more SIGNIFICANT in the smaller database. In larger database there is a larger chance of randomly picking up matches.&lt;br /&gt;
*&#039;&#039;In conclusion: if the database size is doubled, what will happen to the E-value?&#039;&#039;&lt;br /&gt;
:Each time the database size doubles, the E-value doubles as well.&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.1===&lt;br /&gt;
&lt;br /&gt;
 ****Alignment**** 1&lt;br /&gt;
 Title: gi|2440392781|emb|OX421481.1| Eilema caniola genome assembly, chromosome: 20&lt;br /&gt;
 Accession: OX421481&lt;br /&gt;
 Length: 22119023&lt;br /&gt;
 Max Score: 44.0&lt;br /&gt;
 Bits: 40.9604&lt;br /&gt;
 Identities: 22&lt;br /&gt;
 Align_length: 22&lt;br /&gt;
 Gaps: 0&lt;br /&gt;
 %Ident: 100.00 %&lt;br /&gt;
 Query Cover: 88 %&lt;br /&gt;
 E value: 1.88e+00&lt;br /&gt;
 TTCTGAAAGGTCCTCTCGATAC&lt;br /&gt;
 ||||||||||||||||||||||&lt;br /&gt;
 TTCTGAAAGGTCCTCTCGATAC&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the typical length of the hits (the alignment length)?&#039;&#039;:&lt;br /&gt;
:Typically around 17-24 base pairs.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the typical % identity?&#039;&#039;:&lt;br /&gt;
:90% - 100%&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;In what range are the bit-scores (&amp;quot;max score)?&#039;&#039;:&lt;br /&gt;
:typically 30-45 bits.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the range of the E-values?&#039;&#039;:&lt;br /&gt;
:1-15&lt;br /&gt;
:usually varying from 1 to 50 (occasionally, you might find hits as &amp;quot;good&amp;quot; as 0.1).&lt;br /&gt;
:&#039;&#039;&#039;Note&#039;&#039;&#039; that here we choose to use an E-value threshold of 50.0 as a cut-off. That means that some sequences do not give an output if the E-value of the best alignment is higher than that. Also note that when running BLAST to identify homologous sequences the default cut-off is 0.05.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.2===&lt;br /&gt;
&#039;&#039;What is the biological significance of the hits you found / is there any biological meaning?&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
This makes absolutely NO biological sense(!) The hits are real enough as such, they represent sequences that actually are in the database. But we know that our query sequences are completely random and therefore have no evolutionary relationship with the hits. The only reason we found our hits is that the database is so vast that we for for purely stochastic reasons happen upon sequences that are similar.&lt;br /&gt;
&lt;br /&gt;
The E-values tell us precisely this: As described in the BLAST lecture, the alignment score will follow an extreme value distribution for those sequences that are not related to our query sequences, and the E-value is &#039;&#039;the expected number&#039;&#039; of spurious (unrelated) hits with the given alignment score or better, given the database size.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; Don&#039;t be confused by the difference between alignment score and bit score; bit score is simply the alignment score normalized by a constant factor which gives a result expressible in bits.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.3===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
*&#039;&#039;How big is the database this time? &#039;&#039;:&lt;br /&gt;
:Number of letters (amino acids): 243,461,748,389&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
*&#039;&#039;What is the typical length of the alignment and do they contain gaps?&#039;&#039;:&lt;br /&gt;
:Typically 15-23. Rarely gaps, but several mismatches.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the range of E-values?&#039;&#039;:&lt;br /&gt;
:Typically 100-1000 &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar) - do you find any that look plausible, if we for a moment ignore the length/E-value?&#039;&#039;&lt;br /&gt;
:Yes, maybe. See &#039;&#039;e.g.&#039;&#039; the alignment below, it has 56.5% identities (but it is way too short to be significant, as the E-value tells us).&lt;br /&gt;
&lt;br /&gt;
 Generating Random Sequence 1 for BLAST...&lt;br /&gt;
 DTGVHDAQEIGITCQFQPVCFLFSP&lt;br /&gt;
 ****Alignment**** 1&lt;br /&gt;
 Title: ref|WP_243336483.1| class III lanthionine synthetase LanKC [Streptomyces sp. AP-93] &amp;gt;gb|MCJ0871799.1| class III lanthionine synthetase LanKC [Streptomyces sp. AP-93]&lt;br /&gt;
 Accession: WP_243336483&lt;br /&gt;
 Length: 827&lt;br /&gt;
 Max Score: 69.0&lt;br /&gt;
 Bits: 31.187&lt;br /&gt;
 Identities: 13&lt;br /&gt;
 Align_length: 23&lt;br /&gt;
 Gaps: 0&lt;br /&gt;
 %Ident: 56.52 %&lt;br /&gt;
 Query Cover: 92 %&lt;br /&gt;
 E value: 1.12e+02&lt;br /&gt;
 Query:    TGVHDAQEIGITCQFQPVCFLFS&lt;br /&gt;
 Match:    T VHDA  I +T QF P C LF+&lt;br /&gt;
 Subject:  TAVHDALLIDLTSQFHPACGLFT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;If we had used the default E-value cutoff of 10 would any hits have been found?&#039;&#039;:&lt;br /&gt;
:No (note: the default is actually 0.05 now). Note the difference from the nucleotide database searches (whose E-values were typically in the range 1-50): if we had run BLASTN with an E-value threshold of 1000, we would have had many pages of hits for each query sequence.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.4===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&#039;&#039;:&lt;br /&gt;
:The risk of getting a false hit (an unrelated sequence with a &amp;quot;decent&amp;quot; E-value) is much larger when working with DNA sequences. Remember than we used 50 as E-value cut-off for BLASTN, while we used 1000 with BLASTP in order to see any hits at all.&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ===QUESTION 3.1===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we get any significant hits?&#039;&#039;&lt;br /&gt;
:Yes, there are 20 hits with an E-value of &amp;quot;0.0&amp;quot; (&#039;&#039;i.e.&#039;&#039; so small that is is rounded to zero) — and the next hits are also extremely significant. The first hit (S48754) furthermore has a query coverage of 100% and an identity of 100% (this is actually the source of our query).&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What kind of genes (function) do we find?&#039;&#039;&lt;br /&gt;
:All the high-quality hits are alkaline serine proteases from the genera &#039;&#039;Bacillus&#039;&#039; or &#039;&#039;Alkalihalobacillus&#039;&#039; — except some hits that are whole genome sequences.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 3.2===&lt;br /&gt;
Note 1: remember to use the ORF Finder in Virtual Ribosome! Since we are told the sequence is a full-length transcript, we can assume that the START and STOP codons are included and set the ORF finder to &amp;quot;&amp;lt;u&amp;gt;Start codon: Any&amp;lt;/u&amp;gt;&amp;quot; (in this case, it would have given the same result to use  &amp;quot;&amp;lt;u&amp;gt;Start codon: Strict&amp;lt;/u&amp;gt;&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
Note 2: you can choose the standard genetic code (Table 1) or alternatively Table 11 (&amp;lt;u&amp;gt;Bacterial and Plant Plastid&amp;lt;/u&amp;gt;). The only difference is that Table 11 allows some extra, rarely occurring, start codons.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Report your translated protein sequence in FASTA format.&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01_rframe2_ORF&lt;br /&gt;
 MKKPLGKIVASTALLISVAFSSSIASAAEEAKEKYLIGFNEQEAVSEFVEQVEANDEVAI&lt;br /&gt;
 LSEEEEVEIELLHEFETIPVLSVELSPEDVDALELDPAISYIEEDAEVTTMAQSVPWGIS&lt;br /&gt;
 RVQAPAAHNRGLTGSGVKVAVLDTGISTHPDLNIRGGASFVPGEPSTQDGNGHGTHVAGT&lt;br /&gt;
 IAALNNSIGVLGVAPSAELYAVKVLGASGSGSVSSIAQGLEWAGNNGMHVANLSLGSPSP&lt;br /&gt;
 SATLEQAVNSATSRGVLVVAASGNSGAGSISYPARYANAMAVGATDQNNNRASFSQYGAG&lt;br /&gt;
 LDIVAPGVNVQSTYPGSTYASLNGTSMATPHVAGAAALVKQKNPSWSNVQIRNHLKNTAT&lt;br /&gt;
 SLGSTNLYGSGLVNAEAATR&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we find any conserved protein domains?&#039;&#039;:&lt;br /&gt;
:Yes, there is a &amp;quot;Peptidase S8&amp;quot; domain. You can see it by clicking the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab.&lt;br /&gt;
&lt;br /&gt;
[[image:Peptidases_S8.png|center|frame|Conserved protein domains found by the NCBI Blast server]]&lt;br /&gt;
&amp;lt;!-- [[image:NCBI_BLAST_ProtDomains_Updated.JPG|center|frame|Conserved protein domains found by the NCBI Blast server]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we find any significant hits? (E-value?)&#039;&#039;:&lt;br /&gt;
:Yes, a lot. The first many hits have an E-value of 0.0, and hit #100 is still very significant (3e-98) — note that by default, only the top 100 hits are shown!&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Are all the best hits the same category of enzymes?&#039;&#039;:&lt;br /&gt;
:Yes, they are alkaline proteases (except a few that are hypothetical proteins).&lt;br /&gt;
:Note that you can click the Accession code for a hit and go directly to the corresponding entry in the database.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&#039;&#039;:&lt;br /&gt;
:Protein BLAST (BLASTP). If you have very high quality hits, they can be identified by both methods, but if the evolutionary distance is larger, BLASTP is clearly better.&lt;br /&gt;
:Note: Recall from the PyMOL exercises that information between distant genes/proteins are conserved from: Structure &amp;gt; Peptide Sequence &amp;gt; Nucleotide sequence. So when the evolutionary distance is larger, blastp would generally give better hits than blastn.&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===QUESTION 3.1===&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence: &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Subquestion: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
 &amp;gt;CLONE12&lt;br /&gt;
 AACGGGCACGGGACGCATGTAGCTGGAACAGTGGCAGCCGTAAATAATAATGGTATCGGA&lt;br /&gt;
 GTTGCCGGGGTTGCAGGAGGAAACGGCTCTACCAATAGTGGAGCAAGGTTAATGTCCACA&lt;br /&gt;
 CAAATTTTTAATAGTGATGGGGATTATACAAATAGCGAAACTCTTGTGTACAGAGCCATT&lt;br /&gt;
 GTTTATGGTGCAGATAACGGAGCTGTGATCTCGCAAAATAGCTGGGGTAGTCAGTCTCTG&lt;br /&gt;
 ACTATTAAGGAGTTGCAGAAAGCTGCGATCGACTATTTCATTGATTATGCAGGAATGGAC&lt;br /&gt;
 GAAACAGGAGAAATACAGACAGGCCCTATGAGGGGAGGTATATTTATAGCTGCCGCCGGA&lt;br /&gt;
 AACGATAACGTTTCCACTCCAAATATGCCTTCAGCTTATGAACGGGTTTTAGCTGTGGCC&lt;br /&gt;
 TCAATGGGACCAGATTTTACTAAGGCAAGCTATAGCACTTTTGGAACATGGACTGATATT&lt;br /&gt;
 ACTGCTCCTGGCGGAGATATTGACAAATTTGATTTGTCAGAATACGGAGTTCTCAGCACT&lt;br /&gt;
 TATGCCGATAATTATTATGCTTATGGAGAGGGAACATCCATGGCTTGTCCACATGTCGCC&lt;br /&gt;
 GGCGCCGCC&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task: &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Subquestion: Give a summary of your considerations.&#039;&#039;&lt;br /&gt;
**&#039;&#039;Based on the information given: is the sequence protein-coding? &#039;&#039;&lt;br /&gt;
::Yes — we know this because the PCR primers used to clone the sequence target &#039;&#039;&#039;known enzymes&#039;&#039;&#039;. Therefore, it will make sense to try to translate the sequence using Virtual Ribosome.&lt;br /&gt;
:*&#039;&#039;If it is, can you trust it will contain both a START and STOP codon? &#039;&#039;&lt;br /&gt;
::No — the PCR primers used to clone the sequence target &#039;&#039;&#039;the middle of the sequence&#039;&#039;&#039;, in other words we must assume that our sequence is a fragment. Therefore, the ORF finder in Virtual Ribosome should be set to &amp;lt;u&amp;gt;Start codon: None&amp;lt;/u&amp;gt;.&lt;br /&gt;
:*&#039;&#039;Do we know if the sequence is sense or anti-sense? &#039;&#039;&lt;br /&gt;
::No — the PCR process amplifies a stretch of double-stranded DNA. Therefore, we should let Virtual Ribosome search in &#039;&#039;&#039;all 6 reading frames&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
We want to use BLAST to search the large databases. Let&#039;s therefore try the following:&lt;br /&gt;
# BLASTN &lt;br /&gt;
# Translate to protein (using Virtual Ribosome).&lt;br /&gt;
# BLASTP&lt;br /&gt;
Both when doing BLASTN and BLASTP we will use the NR database in order to search as broadly as possible. It would not make sense to use an organism-specific database when we don&#039;t know which organism our sequence stems from.&lt;br /&gt;
&lt;br /&gt;
1) BLASTN. When trying BLASTN against NR we get some borderline significant results, but observe how small the query coverage percentages are (check also the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab!). &lt;br /&gt;
&lt;br /&gt;
[[image:NCBI BlastN_CLONE12 new_version.png]]&lt;br /&gt;
[[image:NCBI BlastN_CLONE12 Graphic Summary.png]]&lt;br /&gt;
&lt;br /&gt;
There is simply nothing in the entire NR database that has enough similarity to our whole query sequence. A search on the DNA level is only suited for finding very close hits.&lt;br /&gt;
&lt;br /&gt;
2) Translate using Virtual Ribosome with the settings we chose under Step 2 above.&lt;br /&gt;
&lt;br /&gt;
The result from the ORF finder:&lt;br /&gt;
 &lt;br /&gt;
 VIRTUAL RIBOSOME&lt;br /&gt;
 ----------------&lt;br /&gt;
 Translation table: Standard SGC0 &lt;br /&gt;
 &lt;br /&gt;
 &amp;gt;CLONE12_rframe1_ORF&lt;br /&gt;
 Reading frame: 1&lt;br /&gt;
 &lt;br /&gt;
     N  G  H  G  T  H  V  A  G  T  V  A  A  V  N  N  N  G  I  G  V  A  G  V  A  G  G  N  G  S  &lt;br /&gt;
 5&#039; AACGGGCACGGGACGCATGTAGCTGGAACAGTGGCAGCCGTAAATAATAATGGTATCGGAGTTGCCGGGGTTGCAGGAGGAAACGGCTCT 90&lt;br /&gt;
    .......................................................................................... &lt;br /&gt;
 &lt;br /&gt;
     T  N  S  G  A  R  L  M  S  T  Q  I  F  N  S  D  G  D  Y  T  N  S  E  T  L  V  Y  R  A  I  &lt;br /&gt;
 5&#039; ACCAATAGTGGAGCAAGGTTAATGTCCACACAAATTTTTAATAGTGATGGGGATTATACAAATAGCGAAACTCTTGTGTACAGAGCCATT 180&lt;br /&gt;
    .....................&amp;gt;&amp;gt;&amp;gt;.................................................................. &lt;br /&gt;
 &lt;br /&gt;
     V  Y  G  A  D  N  G  A  V  I  S  Q  N  S  W  G  S  Q  S  L  T  I  K  E  L  Q  K  A  A  I  &lt;br /&gt;
 5&#039; GTTTATGGTGCAGATAACGGAGCTGTGATCTCGCAAAATAGCTGGGGTAGTCAGTCTCTGACTATTAAGGAGTTGCAGAAAGCTGCGATC 270&lt;br /&gt;
    .........................................................)))............)))............... &lt;br /&gt;
 &lt;br /&gt;
     D  Y  F  I  D  Y  A  G  M  D  E  T  G  E  I  Q  T  G  P  M  R  G  G  I  F  I  A  A  A  G  &lt;br /&gt;
 5&#039; GACTATTTCATTGATTATGCAGGAATGGACGAAACAGGAGAAATACAGACAGGCCCTATGAGGGGAGGTATATTTATAGCTGCCGCCGGA 360&lt;br /&gt;
    ........................&amp;gt;&amp;gt;&amp;gt;..............................&amp;gt;&amp;gt;&amp;gt;.............................. &lt;br /&gt;
 &lt;br /&gt;
     N  D  N  V  S  T  P  N  M  P  S  A  Y  E  R  V  L  A  V  A  S  M  G  P  D  F  T  K  A  S  &lt;br /&gt;
 5&#039; AACGATAACGTTTCCACTCCAAATATGCCTTCAGCTTATGAACGGGTTTTAGCTGTGGCCTCAATGGGACCAGATTTTACTAAGGCAAGC 450&lt;br /&gt;
    ........................&amp;gt;&amp;gt;&amp;gt;....................................&amp;gt;&amp;gt;&amp;gt;........................ &lt;br /&gt;
 &lt;br /&gt;
     Y  S  T  F  G  T  W  T  D  I  T  A  P  G  G  D  I  D  K  F  D  L  S  E  Y  G  V  L  S  T  &lt;br /&gt;
 5&#039; TATAGCACTTTTGGAACATGGACTGATATTACTGCTCCTGGCGGAGATATTGACAAATTTGATTTGTCAGAATACGGAGTTCTCAGCACT 540&lt;br /&gt;
    ...............................................................)))........................ &lt;br /&gt;
 &lt;br /&gt;
     Y  A  D  N  Y  Y  A  Y  G  E  G  T  S  M  A  C  P  H  V  A  G  A  A  &lt;br /&gt;
 5&#039; TATGCCGATAATTATTATGCTTATGGAGAGGGAACATCCATGGCTTGTCCACATGTCGCCGGCGCCGCC 609&lt;br /&gt;
    .......................................&amp;gt;&amp;gt;&amp;gt;........................... &lt;br /&gt;
&lt;br /&gt;
(&#039;&#039;&#039;Tip:&#039;&#039;&#039; Remember that you can get the sequence in FASTA format via the &amp;lt;u&amp;gt;FASTA&amp;lt;/u&amp;gt; link on the result page):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;CLONE12_rframe1_ORF&lt;br /&gt;
 NGHGTHVAGTVAAVNNNGIGVAGVAGGNGSTNSGARLMSTQIFNSDGDYTNSETLVYRAI&lt;br /&gt;
 VYGADNGAVISQNSWGSQSLTIKELQKAAIDYFIDYAGMDETGEIQTGPMRGGIFIAAAG&lt;br /&gt;
 NDNVSTPNMPSAYERVLAVASMGPDFTKASYSTFGTWTDITAPGGDIDKFDLSEYGVLST&lt;br /&gt;
 YADNYYAYGEGTSMACPHVAGAA&lt;br /&gt;
&lt;br /&gt;
3) BLASTP&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- The first thing we notice (already while the search is running) is that there is a &amp;quot;Peptidases_S8_S53&amp;quot; domain. This is a very strong indicator of the function. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We get several very significant hits. When looking at the top hits and disregarding &amp;quot;hypothetical&amp;quot; and &amp;quot;uncharacterized&amp;quot; proteins, we can see that the rest are almost all serine proteases. Some of them are described as belonging to the of the S8 family.&lt;br /&gt;
&lt;br /&gt;
[[image:NCBI BlastP_CLONE12_rframe1_ORF new version.png]]&lt;br /&gt;
&lt;br /&gt;
Let&#039;s take a closer look at the first hit that is not &amp;quot;uncharacterized&amp;quot;:&lt;br /&gt;
[[image:NCBI_BlastP_CLONE12_best_hit.png]]&lt;br /&gt;
&lt;br /&gt;
Note that although it is not a perfect hit (our query sequence not existing in the database) it looks reasonable: the alignment covers a large part of the query with Identity of 54% and Similarity (Positives) of 69%.&lt;br /&gt;
&lt;br /&gt;
Taken together with the fact that almost all the best non-hypothetical hits are serine proteases, we have a very strong indication that our mystery sequence, CLONE12, is a peptidase or protease of the S8 family.&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.1===&lt;br /&gt;
&#039;&#039;What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
They are nearly identical (&amp;quot;one of two nearly identical (see also HTA1) subtypes&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
Protein sequence: &lt;br /&gt;
 &amp;gt;YBL003C  &lt;br /&gt;
 MSGGKGGKAGSAAKASQSRSAKAGLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTAVLEYL&lt;br /&gt;
 AAEILELAGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPK&lt;br /&gt;
 KSAKTAKASQEL*&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.2===&lt;br /&gt;
*&#039;&#039;How many high-confidence hits do we get?&#039;&#039;:&lt;br /&gt;
:3 — HTA1, HTA2 and HTZ1.&lt;br /&gt;
:Note: If you click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links for the two top hits, you will see that one is HTA1 and the other is HTA2.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&#039;&#039;:&lt;br /&gt;
:Yes; HTA1 and HTA2 are indeed nearly identical (only 2 amino acids differ).&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.3===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found?&#039;&#039;&lt;br /&gt;
:Answer: 29.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
Lad os ligesom før kræve at hits skal have en e-value på 1e-10 eller bedre (mindre) for at vi regner det for pålideligt. Dette passer også fint med, at disse hits er enige om at der er tale om en histon.&lt;br /&gt;
&lt;br /&gt;
Som udgangspunkt er der derfor 26 gode hits. Man kan dog godt argumentere for at man skal passe på hits der kun har en forudsagt funktion (&amp;quot;PREDICTED&amp;quot;) - dem har vi en enkelt af. Som det også ses er der en række af hits&#039;ne der dækker over variationer af samme protein (fx alle dem der hedder: &amp;lt;tt&amp;gt;histone H2A type-XYZ&amp;lt;/tt&amp;gt;). Det er ikke altid at alle detaljerne kommer med i den korte form af overskrifter - nogen gange kan det være nødvendigt mauelt at inspicere et hit (klikke på link&#039;et og læse hvad der står af information i det bagvedliggende database entry).&lt;br /&gt;
&lt;br /&gt;
Lad os arbejde videre med alle 26 gode hits i de næste analyser.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;These protein originates from a number of genes - but how many UNIQUE genes?&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Svar: Trick&#039;et er her af en del af hits&#039;ne er fra isoformer af det sammen protein. Et protein med to isofomer stammer stadig kun fra en enkelt gen&lt;br /&gt;
&lt;br /&gt;
Lad os fx kigge på følgende hits:&lt;br /&gt;
&lt;br /&gt;
 ref|NP_613075.1|  core histone macro-H2A.1 isoform 1 [Homo sap...   152    7e-38&lt;br /&gt;
 ref|NP_004884.1|  core histone macro-H2A.1 isoform 2 [Homo sap...   152    8e-38&lt;br /&gt;
&lt;br /&gt;
Hvis man gå ind og læser sekvens-entry&#039;et for disse hits kan man faktisk direkte se, at de stammer fra sammen gen (/gene=&amp;quot;H2AFY&amp;quot;, /gene=&amp;quot;H2AFY&amp;quot;). BEMÆRK: Her er vi heldige og alt den information vi har burg for står faktisk i overskrifterne.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
En hurtig optælling afslører følgende isoformet i vores set af BLAST hits:&lt;br /&gt;
&lt;br /&gt;
 ref|NP_613075.1|  core histone macro-H2A.1 isoform 1 [Homo sap...   152    7e-38&lt;br /&gt;
 ref|NP_004884.1|  core histone macro-H2A.1 isoform 2 [Homo sap...   152    8e-38&lt;br /&gt;
 ref|NP_613258.2|  core histone macro-H2A.1 isoform 3 [Homo sap...   152    8e-38&lt;br /&gt;
&lt;br /&gt;
 ref|NP_036544.1|  histone H2A.V isoform 1 [Homo sapiens]            133    4e-32&lt;br /&gt;
 ref|NP_619541.1|  histone H2A.V isoform 2 [Homo sapiens]            114    2e-26&lt;br /&gt;
 ref|NP_958844.1|  histone H2A.V isoform 3 [Homo sapiens]            112    8e-26&lt;br /&gt;
 ref|NP_958925.1|  histone H2A.V isoform 5 [Homo sapiens]           75.9    8e-15&lt;br /&gt;
 ref|NP_958924.1|  histone H2A.V isoform 4 [Homo sapiens]           62.8    7e-11&lt;br /&gt;
&lt;br /&gt;
Dvs at vi i alt har 27 - 2 - 4 = 21 unikke hits til gener.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===QUESTION 4.4===&lt;br /&gt;
&#039;&#039;&#039;Langt svar&#039;&#039;&#039;: Et lavt komplekst område er et stykke sekvens der ikke indeholder særligt meget information (fx. TTTTAAAA i human – findes milioner af gange i genomet).&lt;br /&gt;
&lt;br /&gt;
BLAST har et indbygget filter der masker disse områder ud i søgningen.&lt;br /&gt;
&lt;br /&gt;
Ud over at kunne slå det til og fra – har NCBI valgt et tredie mulighed (som default) – slå det fra men at vise hvor områderne er (små bogstaver):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  194 bits (494),  Expect = 1e-50, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 96/125 (76%), Positives = 108/125 (86%), Gaps = 0/125 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  4    gkggkagsaakasqsrsakagLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTavleylaae  63&lt;br /&gt;
             G+G + G A   ++SRS++AGL FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AE&lt;br /&gt;
 Sbjct  3    GRGKQGGKARAKAKSRSSRAGLQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAE  62&lt;br /&gt;
 &lt;br /&gt;
 Query  64   ilelaGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSA  123&lt;br /&gt;
             ILELAGNAARDNKKTRIIPRHLQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+ &lt;br /&gt;
 Sbjct  63   ILELAGNAARDNKKTRIIPRHLQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTE  122&lt;br /&gt;
 &lt;br /&gt;
 Query  124  KTAKA  128&lt;br /&gt;
                KA&lt;br /&gt;
 Sbjct  123  SHHKA  127&lt;br /&gt;
&lt;br /&gt;
Hvis man gentager søgningen med filteret slået til giver det følgende (jeg har også valgt at viser X’er i det filtrerede område – hvilket NORMALT er standard i BLAST):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  147 bits (372),  Expect = 2e-36, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 87/104 (83%), Positives = 93/104 (89%), Gaps = 0/104 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  25   LTFPVGRVHRLLRRGNYAQRIGSGAPVYLTXXXXXXXXXXXXXXGNAARDNKKTRIIPRH  84&lt;br /&gt;
             L FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AEILELAGNAARDNKKTRIIPRH&lt;br /&gt;
 Sbjct  24   LQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAEILELAGNAARDNKKTRIIPRH  83&lt;br /&gt;
 &lt;br /&gt;
 Query  85   LQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSAKTAKA  128&lt;br /&gt;
             LQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+    KA&lt;br /&gt;
 Sbjct  84   LQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTESHHKA  127&lt;br /&gt;
&lt;br /&gt;
Bemærk det kortere alignment og den ændrede E-værdi. &lt;br /&gt;
&lt;br /&gt;
Hvis man eksplicit slår filteret fra, ser resultatet således ud:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  194 bits (494),  Expect = 1e-50, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 96/125 (76%), Positives = 108/125 (86%), Gaps = 0/125 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  4    GKGGKAGSAAKASQSRSAKAGLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTAVLEYLAAE  63&lt;br /&gt;
             G+G + G A   ++SRS++AGL FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AE&lt;br /&gt;
 Sbjct  3    GRGKQGGKARAKAKSRSSRAGLQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAE  62&lt;br /&gt;
 &lt;br /&gt;
 Query  64   ILELAGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSA  123&lt;br /&gt;
             ILELAGNAARDNKKTRIIPRHLQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+ &lt;br /&gt;
 Sbjct  63   ILELAGNAARDNKKTRIIPRHLQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTE  122&lt;br /&gt;
 &lt;br /&gt;
 Query  124  KTAKA  128&lt;br /&gt;
                KA&lt;br /&gt;
 Sbjct  123  SHHKA  127&lt;br /&gt;
&lt;br /&gt;
Præcis samme længde, e-værdi mm. som i det første alignment.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kort svar&#039;&#039;&#039;: Ja, alignmentet bliver kortere når low-complexity filteret er slået til.&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=ExBlast-Answers_new&amp;diff=1099</id>
		<title>ExBlast-Answers new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=ExBlast-Answers_new&amp;diff=1099"/>
		<updated>2026-09-22T08:47:40Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* QUESTION 2.3 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Answers to the BLAST exercise. Values for database sizes etc. retrieved&lt;br /&gt;
September 21, 2026&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.1===&lt;br /&gt;
The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.2===&lt;br /&gt;
* &#039;&#039;Which database did you use?&#039;&#039; &lt;br /&gt;
:core_nt&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:J00336.1 (Note that the latter was also part of the sequence name for your query sequence!)&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;Max score in bits&amp;quot;)?&#039;&#039;&lt;br /&gt;
:The max score is 708 bits &lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:100% and 100%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:0.0 (actually, a number so small that it is rounded off to 0.0)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:No, of course not, since the sequences are identical&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.3===&lt;br /&gt;
* &#039;&#039;Which database did you use?&#039;&#039; &lt;br /&gt;
:core_nt&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:NM_000207.3&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;max score&amp;quot;)?&#039;&#039;&lt;br /&gt;
:603&lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:identity: 94.34% and query coverage: 99%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:7e-168 (meaning 7&amp;amp;times;10&amp;lt;sup&amp;gt;-168&amp;lt;/sup&amp;gt;)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:No&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.4===&lt;br /&gt;
* &#039;&#039;Which database did you use?&#039;&#039; &lt;br /&gt;
:Human G+T (2 databases)&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:NM_000207.3, they have the same score and are therefore equally good. Note that these are among the equally good hits found in the previous question.&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;max score&amp;quot;)?&#039;&#039;&lt;br /&gt;
:603&lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:identity: 94.34% and query coverage: 99%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:3e-170 (meaning 3&amp;amp;times;10&amp;lt;sup&amp;gt;-170&amp;lt;/sup&amp;gt;)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:No&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.5===&lt;br /&gt;
&#039;&#039;What are the sizes (in basepairs) of the databases we used for the two BLAST searches?&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
nt(Human): 1,081,933,534,067 letters (= basepairs), Human G+T: 4,017,001,775 letters (= basepairs).&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.6===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the ratio between the database sizes in the two BLAST searches?&#039;&#039;&lt;br /&gt;
: 1,081,933,534,067 / 4,017,001,775 = &amp;lt;u&amp;gt;~269&amp;lt;/u&amp;gt;&lt;br /&gt;
*&#039;&#039;What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &#039;&#039;&lt;br /&gt;
:7e-168 / 3e-170 = &amp;lt;u&amp;gt;~233&amp;lt;/u&amp;gt;&lt;br /&gt;
:Note: since the E-values have only three significant digits, you cannot expect to get the exact same result.&lt;br /&gt;
:Also note, you can google &amp;quot;7e-168 / 3e-170&amp;quot; directly and the answer will show up in the results.&lt;br /&gt;
*&#039;&#039;What is the relationship between database size and E-value for hits with identical alignment score?&#039;&#039;&lt;br /&gt;
:The E-value is directly proportional to the database size. &lt;br /&gt;
:Note: Conceptually this means that an alignment within the given score (603 bits) is more SIGNIFICANT in the smaller database. In larger database there is a larger chance of randomly picking up matches.&lt;br /&gt;
*&#039;&#039;In conclusion: if the database size is doubled, what will happen to the E-value?&#039;&#039;&lt;br /&gt;
:Each time the database size doubles, the E-value doubles as well.&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.1===&lt;br /&gt;
&lt;br /&gt;
 ****Alignment**** 1&lt;br /&gt;
 Title: gi|2440392781|emb|OX421481.1| Eilema caniola genome assembly, chromosome: 20&lt;br /&gt;
 Accession: OX421481&lt;br /&gt;
 Length: 22119023&lt;br /&gt;
 Max Score: 44.0&lt;br /&gt;
 Bits: 40.9604&lt;br /&gt;
 Identities: 22&lt;br /&gt;
 Align_length: 22&lt;br /&gt;
 Gaps: 0&lt;br /&gt;
 %Ident: 100.00 %&lt;br /&gt;
 Query Cover: 88 %&lt;br /&gt;
 E value: 1.88e+00&lt;br /&gt;
 TTCTGAAAGGTCCTCTCGATAC&lt;br /&gt;
 ||||||||||||||||||||||&lt;br /&gt;
 TTCTGAAAGGTCCTCTCGATAC&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the typical length of the hits (the alignment length)?&#039;&#039;:&lt;br /&gt;
:Typically around 17-24 base pairs.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the typical % identity?&#039;&#039;:&lt;br /&gt;
:90% - 100%&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;In what range are the bit-scores (&amp;quot;max score)?&#039;&#039;:&lt;br /&gt;
:typically 30-45 bits.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the range of the E-values?&#039;&#039;:&lt;br /&gt;
:1-15&lt;br /&gt;
:usually varying from 1 to 50 (occasionally, you might find hits as &amp;quot;good&amp;quot; as 0.1).&lt;br /&gt;
:&#039;&#039;&#039;Note&#039;&#039;&#039; that here we choose to use an E-value threshold of 50.0 as a cut-off. That means that some sequences do not give an output if the E-value of the best alignment is higher than that. Also note that when running BLAST to identify homologous sequences the default cut-off is 0.05.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.2===&lt;br /&gt;
&#039;&#039;What is the biological significance of the hits you found / is there any biological meaning?&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
This makes absolutely NO biological sense(!) The hits are real enough as such, they represent sequences that actually are in the database. But we know that our query sequences are completely random and therefore have no evolutionary relationship with the hits. The only reason we found our hits is that the database is so vast that we for for purely stochastic reasons happen upon sequences that are similar.&lt;br /&gt;
&lt;br /&gt;
The E-values tell us precisely this: As described in the BLAST lecture, the alignment score will follow an extreme value distribution for those sequences that are not related to our query sequences, and the E-value is &#039;&#039;the expected number&#039;&#039; of spurious (unrelated) hits with the given alignment score or better, given the database size.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; Don&#039;t be confused by the difference between alignment score and bit score; bit score is simply the alignment score normalized by a constant factor which gives a result expressible in bits.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.3===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
*&#039;&#039;How big is the database this time? &#039;&#039;:&lt;br /&gt;
:Number of letters (amino acids): 243,461,748,389&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
*&#039;&#039;What is the typical length of the alignment and do they contain gaps?&#039;&#039;:&lt;br /&gt;
:Typically 15-23. Rarely gaps, but several mismatches.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the range of E-values?&#039;&#039;:&lt;br /&gt;
:Typically 100-1000 &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar) - do you find any that look plausible, if we for a moment ignore the length/E-value?&#039;&#039;&lt;br /&gt;
:Yes, maybe. See &#039;&#039;e.g.&#039;&#039; the alignment below, it has 56.5% identities (but it is way too short to be significant, as the E-value tells us).&lt;br /&gt;
&lt;br /&gt;
Generating Random Sequence 1 for BLAST...&lt;br /&gt;
DTGVHDAQEIGITCQFQPVCFLFSP&lt;br /&gt;
****Alignment**** 1&lt;br /&gt;
Title: ref|WP_243336483.1| class III lanthionine synthetase LanKC [Streptomyces sp. AP-93] &amp;gt;gb|MCJ0871799.1| class III lanthionine synthetase LanKC [Streptomyces sp. AP-93]&lt;br /&gt;
Accession: WP_243336483&lt;br /&gt;
Length: 827&lt;br /&gt;
Max Score: 69.0&lt;br /&gt;
Bits: 31.187&lt;br /&gt;
Identities: 13&lt;br /&gt;
Align_length: 23&lt;br /&gt;
Gaps: 0&lt;br /&gt;
%Ident: 56.52 %&lt;br /&gt;
Query Cover: 92 %&lt;br /&gt;
E value: 1.12e+02&lt;br /&gt;
Query:    TGVHDAQEIGITCQFQPVCFLFS&lt;br /&gt;
Match:    T VHDA  I +T QF P C LF+&lt;br /&gt;
Subject:  TAVHDALLIDLTSQFHPACGLFT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;If we had used the default E-value cutoff of 10 would any hits have been found?&#039;&#039;:&lt;br /&gt;
:No (note: the default is actually 0.05 now). Note the difference from the nucleotide database searches (whose E-values were typically in the range 1-50): if we had run BLASTN with an E-value threshold of 1000, we would have had many pages of hits for each query sequence.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.4===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&#039;&#039;:&lt;br /&gt;
:The risk of getting a false hit (an unrelated sequence with a &amp;quot;decent&amp;quot; E-value) is much larger when working with DNA sequences. Remember than we used 50 as E-value cut-off for BLASTN, while we used 1000 with BLASTP in order to see any hits at all.&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ===QUESTION 3.1===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we get any significant hits?&#039;&#039;&lt;br /&gt;
:Yes, there are 20 hits with an E-value of &amp;quot;0.0&amp;quot; (&#039;&#039;i.e.&#039;&#039; so small that is is rounded to zero) — and the next hits are also extremely significant. The first hit (S48754) furthermore has a query coverage of 100% and an identity of 100% (this is actually the source of our query).&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What kind of genes (function) do we find?&#039;&#039;&lt;br /&gt;
:All the high-quality hits are alkaline serine proteases from the genera &#039;&#039;Bacillus&#039;&#039; or &#039;&#039;Alkalihalobacillus&#039;&#039; — except some hits that are whole genome sequences.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 3.2===&lt;br /&gt;
Note 1: remember to use the ORF Finder in Virtual Ribosome! Since we are told the sequence is a full-length transcript, we can assume that the START and STOP codons are included and set the ORF finder to &amp;quot;&amp;lt;u&amp;gt;Start codon: Any&amp;lt;/u&amp;gt;&amp;quot; (in this case, it would have given the same result to use  &amp;quot;&amp;lt;u&amp;gt;Start codon: Strict&amp;lt;/u&amp;gt;&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
Note 2: you can choose the standard genetic code (Table 1) or alternatively Table 11 (&amp;lt;u&amp;gt;Bacterial and Plant Plastid&amp;lt;/u&amp;gt;). The only difference is that Table 11 allows some extra, rarely occurring, start codons.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Report your translated protein sequence in FASTA format.&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01_rframe2_ORF&lt;br /&gt;
 MKKPLGKIVASTALLISVAFSSSIASAAEEAKEKYLIGFNEQEAVSEFVEQVEANDEVAI&lt;br /&gt;
 LSEEEEVEIELLHEFETIPVLSVELSPEDVDALELDPAISYIEEDAEVTTMAQSVPWGIS&lt;br /&gt;
 RVQAPAAHNRGLTGSGVKVAVLDTGISTHPDLNIRGGASFVPGEPSTQDGNGHGTHVAGT&lt;br /&gt;
 IAALNNSIGVLGVAPSAELYAVKVLGASGSGSVSSIAQGLEWAGNNGMHVANLSLGSPSP&lt;br /&gt;
 SATLEQAVNSATSRGVLVVAASGNSGAGSISYPARYANAMAVGATDQNNNRASFSQYGAG&lt;br /&gt;
 LDIVAPGVNVQSTYPGSTYASLNGTSMATPHVAGAAALVKQKNPSWSNVQIRNHLKNTAT&lt;br /&gt;
 SLGSTNLYGSGLVNAEAATR&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we find any conserved protein domains?&#039;&#039;:&lt;br /&gt;
:Yes, there is a &amp;quot;Peptidase S8&amp;quot; domain. You can see it by clicking the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab.&lt;br /&gt;
&lt;br /&gt;
[[image:Peptidases_S8.png|center|frame|Conserved protein domains found by the NCBI Blast server]]&lt;br /&gt;
&amp;lt;!-- [[image:NCBI_BLAST_ProtDomains_Updated.JPG|center|frame|Conserved protein domains found by the NCBI Blast server]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we find any significant hits? (E-value?)&#039;&#039;:&lt;br /&gt;
:Yes, a lot. The first many hits have an E-value of 0.0, and hit #100 is still very significant (3e-98) — note that by default, only the top 100 hits are shown!&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Are all the best hits the same category of enzymes?&#039;&#039;:&lt;br /&gt;
:Yes, they are alkaline proteases (except a few that are hypothetical proteins).&lt;br /&gt;
:Note that you can click the Accession code for a hit and go directly to the corresponding entry in the database.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&#039;&#039;:&lt;br /&gt;
:Protein BLAST (BLASTP). If you have very high quality hits, they can be identified by both methods, but if the evolutionary distance is larger, BLASTP is clearly better.&lt;br /&gt;
:Note: Recall from the PyMOL exercises that information between distant genes/proteins are conserved from: Structure &amp;gt; Peptide Sequence &amp;gt; Nucleotide sequence. So when the evolutionary distance is larger, blastp would generally give better hits than blastn.&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===QUESTION 3.1===&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence: &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Subquestion: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
 &amp;gt;CLONE12&lt;br /&gt;
 AACGGGCACGGGACGCATGTAGCTGGAACAGTGGCAGCCGTAAATAATAATGGTATCGGA&lt;br /&gt;
 GTTGCCGGGGTTGCAGGAGGAAACGGCTCTACCAATAGTGGAGCAAGGTTAATGTCCACA&lt;br /&gt;
 CAAATTTTTAATAGTGATGGGGATTATACAAATAGCGAAACTCTTGTGTACAGAGCCATT&lt;br /&gt;
 GTTTATGGTGCAGATAACGGAGCTGTGATCTCGCAAAATAGCTGGGGTAGTCAGTCTCTG&lt;br /&gt;
 ACTATTAAGGAGTTGCAGAAAGCTGCGATCGACTATTTCATTGATTATGCAGGAATGGAC&lt;br /&gt;
 GAAACAGGAGAAATACAGACAGGCCCTATGAGGGGAGGTATATTTATAGCTGCCGCCGGA&lt;br /&gt;
 AACGATAACGTTTCCACTCCAAATATGCCTTCAGCTTATGAACGGGTTTTAGCTGTGGCC&lt;br /&gt;
 TCAATGGGACCAGATTTTACTAAGGCAAGCTATAGCACTTTTGGAACATGGACTGATATT&lt;br /&gt;
 ACTGCTCCTGGCGGAGATATTGACAAATTTGATTTGTCAGAATACGGAGTTCTCAGCACT&lt;br /&gt;
 TATGCCGATAATTATTATGCTTATGGAGAGGGAACATCCATGGCTTGTCCACATGTCGCC&lt;br /&gt;
 GGCGCCGCC&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task: &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Subquestion: Give a summary of your considerations.&#039;&#039;&lt;br /&gt;
**&#039;&#039;Based on the information given: is the sequence protein-coding? &#039;&#039;&lt;br /&gt;
::Yes — we know this because the PCR primers used to clone the sequence target &#039;&#039;&#039;known enzymes&#039;&#039;&#039;. Therefore, it will make sense to try to translate the sequence using Virtual Ribosome.&lt;br /&gt;
:*&#039;&#039;If it is, can you trust it will contain both a START and STOP codon? &#039;&#039;&lt;br /&gt;
::No — the PCR primers used to clone the sequence target &#039;&#039;&#039;the middle of the sequence&#039;&#039;&#039;, in other words we must assume that our sequence is a fragment. Therefore, the ORF finder in Virtual Ribosome should be set to &amp;lt;u&amp;gt;Start codon: None&amp;lt;/u&amp;gt;.&lt;br /&gt;
:*&#039;&#039;Do we know if the sequence is sense or anti-sense? &#039;&#039;&lt;br /&gt;
::No — the PCR process amplifies a stretch of double-stranded DNA. Therefore, we should let Virtual Ribosome search in &#039;&#039;&#039;all 6 reading frames&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
We want to use BLAST to search the large databases. Let&#039;s therefore try the following:&lt;br /&gt;
# BLASTN &lt;br /&gt;
# Translate to protein (using Virtual Ribosome).&lt;br /&gt;
# BLASTP&lt;br /&gt;
Both when doing BLASTN and BLASTP we will use the NR database in order to search as broadly as possible. It would not make sense to use an organism-specific database when we don&#039;t know which organism our sequence stems from.&lt;br /&gt;
&lt;br /&gt;
1) BLASTN. When trying BLASTN against NR we get some borderline significant results, but observe how small the query coverage percentages are (check also the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab!). &lt;br /&gt;
&lt;br /&gt;
[[image:NCBI BlastN_CLONE12 new_version.png]]&lt;br /&gt;
[[image:NCBI BlastN_CLONE12 Graphic Summary.png]]&lt;br /&gt;
&lt;br /&gt;
There is simply nothing in the entire NR database that has enough similarity to our whole query sequence. A search on the DNA level is only suited for finding very close hits.&lt;br /&gt;
&lt;br /&gt;
2) Translate using Virtual Ribosome with the settings we chose under Step 2 above.&lt;br /&gt;
&lt;br /&gt;
The result from the ORF finder:&lt;br /&gt;
 &lt;br /&gt;
 VIRTUAL RIBOSOME&lt;br /&gt;
 ----------------&lt;br /&gt;
 Translation table: Standard SGC0 &lt;br /&gt;
 &lt;br /&gt;
 &amp;gt;CLONE12_rframe1_ORF&lt;br /&gt;
 Reading frame: 1&lt;br /&gt;
 &lt;br /&gt;
     N  G  H  G  T  H  V  A  G  T  V  A  A  V  N  N  N  G  I  G  V  A  G  V  A  G  G  N  G  S  &lt;br /&gt;
 5&#039; AACGGGCACGGGACGCATGTAGCTGGAACAGTGGCAGCCGTAAATAATAATGGTATCGGAGTTGCCGGGGTTGCAGGAGGAAACGGCTCT 90&lt;br /&gt;
    .......................................................................................... &lt;br /&gt;
 &lt;br /&gt;
     T  N  S  G  A  R  L  M  S  T  Q  I  F  N  S  D  G  D  Y  T  N  S  E  T  L  V  Y  R  A  I  &lt;br /&gt;
 5&#039; ACCAATAGTGGAGCAAGGTTAATGTCCACACAAATTTTTAATAGTGATGGGGATTATACAAATAGCGAAACTCTTGTGTACAGAGCCATT 180&lt;br /&gt;
    .....................&amp;gt;&amp;gt;&amp;gt;.................................................................. &lt;br /&gt;
 &lt;br /&gt;
     V  Y  G  A  D  N  G  A  V  I  S  Q  N  S  W  G  S  Q  S  L  T  I  K  E  L  Q  K  A  A  I  &lt;br /&gt;
 5&#039; GTTTATGGTGCAGATAACGGAGCTGTGATCTCGCAAAATAGCTGGGGTAGTCAGTCTCTGACTATTAAGGAGTTGCAGAAAGCTGCGATC 270&lt;br /&gt;
    .........................................................)))............)))............... &lt;br /&gt;
 &lt;br /&gt;
     D  Y  F  I  D  Y  A  G  M  D  E  T  G  E  I  Q  T  G  P  M  R  G  G  I  F  I  A  A  A  G  &lt;br /&gt;
 5&#039; GACTATTTCATTGATTATGCAGGAATGGACGAAACAGGAGAAATACAGACAGGCCCTATGAGGGGAGGTATATTTATAGCTGCCGCCGGA 360&lt;br /&gt;
    ........................&amp;gt;&amp;gt;&amp;gt;..............................&amp;gt;&amp;gt;&amp;gt;.............................. &lt;br /&gt;
 &lt;br /&gt;
     N  D  N  V  S  T  P  N  M  P  S  A  Y  E  R  V  L  A  V  A  S  M  G  P  D  F  T  K  A  S  &lt;br /&gt;
 5&#039; AACGATAACGTTTCCACTCCAAATATGCCTTCAGCTTATGAACGGGTTTTAGCTGTGGCCTCAATGGGACCAGATTTTACTAAGGCAAGC 450&lt;br /&gt;
    ........................&amp;gt;&amp;gt;&amp;gt;....................................&amp;gt;&amp;gt;&amp;gt;........................ &lt;br /&gt;
 &lt;br /&gt;
     Y  S  T  F  G  T  W  T  D  I  T  A  P  G  G  D  I  D  K  F  D  L  S  E  Y  G  V  L  S  T  &lt;br /&gt;
 5&#039; TATAGCACTTTTGGAACATGGACTGATATTACTGCTCCTGGCGGAGATATTGACAAATTTGATTTGTCAGAATACGGAGTTCTCAGCACT 540&lt;br /&gt;
    ...............................................................)))........................ &lt;br /&gt;
 &lt;br /&gt;
     Y  A  D  N  Y  Y  A  Y  G  E  G  T  S  M  A  C  P  H  V  A  G  A  A  &lt;br /&gt;
 5&#039; TATGCCGATAATTATTATGCTTATGGAGAGGGAACATCCATGGCTTGTCCACATGTCGCCGGCGCCGCC 609&lt;br /&gt;
    .......................................&amp;gt;&amp;gt;&amp;gt;........................... &lt;br /&gt;
&lt;br /&gt;
(&#039;&#039;&#039;Tip:&#039;&#039;&#039; Remember that you can get the sequence in FASTA format via the &amp;lt;u&amp;gt;FASTA&amp;lt;/u&amp;gt; link on the result page):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;CLONE12_rframe1_ORF&lt;br /&gt;
 NGHGTHVAGTVAAVNNNGIGVAGVAGGNGSTNSGARLMSTQIFNSDGDYTNSETLVYRAI&lt;br /&gt;
 VYGADNGAVISQNSWGSQSLTIKELQKAAIDYFIDYAGMDETGEIQTGPMRGGIFIAAAG&lt;br /&gt;
 NDNVSTPNMPSAYERVLAVASMGPDFTKASYSTFGTWTDITAPGGDIDKFDLSEYGVLST&lt;br /&gt;
 YADNYYAYGEGTSMACPHVAGAA&lt;br /&gt;
&lt;br /&gt;
3) BLASTP&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- The first thing we notice (already while the search is running) is that there is a &amp;quot;Peptidases_S8_S53&amp;quot; domain. This is a very strong indicator of the function. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We get several very significant hits. When looking at the top hits and disregarding &amp;quot;hypothetical&amp;quot; and &amp;quot;uncharacterized&amp;quot; proteins, we can see that the rest are almost all serine proteases. Some of them are described as belonging to the of the S8 family.&lt;br /&gt;
&lt;br /&gt;
[[image:NCBI BlastP_CLONE12_rframe1_ORF new version.png]]&lt;br /&gt;
&lt;br /&gt;
Let&#039;s take a closer look at the first hit that is not &amp;quot;uncharacterized&amp;quot;:&lt;br /&gt;
[[image:NCBI_BlastP_CLONE12_best_hit.png]]&lt;br /&gt;
&lt;br /&gt;
Note that although it is not a perfect hit (our query sequence not existing in the database) it looks reasonable: the alignment covers a large part of the query with Identity of 54% and Similarity (Positives) of 69%.&lt;br /&gt;
&lt;br /&gt;
Taken together with the fact that almost all the best non-hypothetical hits are serine proteases, we have a very strong indication that our mystery sequence, CLONE12, is a peptidase or protease of the S8 family.&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.1===&lt;br /&gt;
&#039;&#039;What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
They are nearly identical (&amp;quot;one of two nearly identical (see also HTA1) subtypes&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
Protein sequence: &lt;br /&gt;
 &amp;gt;YBL003C  &lt;br /&gt;
 MSGGKGGKAGSAAKASQSRSAKAGLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTAVLEYL&lt;br /&gt;
 AAEILELAGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPK&lt;br /&gt;
 KSAKTAKASQEL*&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.2===&lt;br /&gt;
*&#039;&#039;How many high-confidence hits do we get?&#039;&#039;:&lt;br /&gt;
:3 — HTA1, HTA2 and HTZ1.&lt;br /&gt;
:Note: If you click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links for the two top hits, you will see that one is HTA1 and the other is HTA2.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&#039;&#039;:&lt;br /&gt;
:Yes; HTA1 and HTA2 are indeed nearly identical (only 2 amino acids differ).&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.3===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found?&#039;&#039;&lt;br /&gt;
:Answer: 29.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
Lad os ligesom før kræve at hits skal have en e-value på 1e-10 eller bedre (mindre) for at vi regner det for pålideligt. Dette passer også fint med, at disse hits er enige om at der er tale om en histon.&lt;br /&gt;
&lt;br /&gt;
Som udgangspunkt er der derfor 26 gode hits. Man kan dog godt argumentere for at man skal passe på hits der kun har en forudsagt funktion (&amp;quot;PREDICTED&amp;quot;) - dem har vi en enkelt af. Som det også ses er der en række af hits&#039;ne der dækker over variationer af samme protein (fx alle dem der hedder: &amp;lt;tt&amp;gt;histone H2A type-XYZ&amp;lt;/tt&amp;gt;). Det er ikke altid at alle detaljerne kommer med i den korte form af overskrifter - nogen gange kan det være nødvendigt mauelt at inspicere et hit (klikke på link&#039;et og læse hvad der står af information i det bagvedliggende database entry).&lt;br /&gt;
&lt;br /&gt;
Lad os arbejde videre med alle 26 gode hits i de næste analyser.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;These protein originates from a number of genes - but how many UNIQUE genes?&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Svar: Trick&#039;et er her af en del af hits&#039;ne er fra isoformer af det sammen protein. Et protein med to isofomer stammer stadig kun fra en enkelt gen&lt;br /&gt;
&lt;br /&gt;
Lad os fx kigge på følgende hits:&lt;br /&gt;
&lt;br /&gt;
 ref|NP_613075.1|  core histone macro-H2A.1 isoform 1 [Homo sap...   152    7e-38&lt;br /&gt;
 ref|NP_004884.1|  core histone macro-H2A.1 isoform 2 [Homo sap...   152    8e-38&lt;br /&gt;
&lt;br /&gt;
Hvis man gå ind og læser sekvens-entry&#039;et for disse hits kan man faktisk direkte se, at de stammer fra sammen gen (/gene=&amp;quot;H2AFY&amp;quot;, /gene=&amp;quot;H2AFY&amp;quot;). BEMÆRK: Her er vi heldige og alt den information vi har burg for står faktisk i overskrifterne.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
En hurtig optælling afslører følgende isoformet i vores set af BLAST hits:&lt;br /&gt;
&lt;br /&gt;
 ref|NP_613075.1|  core histone macro-H2A.1 isoform 1 [Homo sap...   152    7e-38&lt;br /&gt;
 ref|NP_004884.1|  core histone macro-H2A.1 isoform 2 [Homo sap...   152    8e-38&lt;br /&gt;
 ref|NP_613258.2|  core histone macro-H2A.1 isoform 3 [Homo sap...   152    8e-38&lt;br /&gt;
&lt;br /&gt;
 ref|NP_036544.1|  histone H2A.V isoform 1 [Homo sapiens]            133    4e-32&lt;br /&gt;
 ref|NP_619541.1|  histone H2A.V isoform 2 [Homo sapiens]            114    2e-26&lt;br /&gt;
 ref|NP_958844.1|  histone H2A.V isoform 3 [Homo sapiens]            112    8e-26&lt;br /&gt;
 ref|NP_958925.1|  histone H2A.V isoform 5 [Homo sapiens]           75.9    8e-15&lt;br /&gt;
 ref|NP_958924.1|  histone H2A.V isoform 4 [Homo sapiens]           62.8    7e-11&lt;br /&gt;
&lt;br /&gt;
Dvs at vi i alt har 27 - 2 - 4 = 21 unikke hits til gener.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===QUESTION 4.4===&lt;br /&gt;
&#039;&#039;&#039;Langt svar&#039;&#039;&#039;: Et lavt komplekst område er et stykke sekvens der ikke indeholder særligt meget information (fx. TTTTAAAA i human – findes milioner af gange i genomet).&lt;br /&gt;
&lt;br /&gt;
BLAST har et indbygget filter der masker disse områder ud i søgningen.&lt;br /&gt;
&lt;br /&gt;
Ud over at kunne slå det til og fra – har NCBI valgt et tredie mulighed (som default) – slå det fra men at vise hvor områderne er (små bogstaver):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  194 bits (494),  Expect = 1e-50, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 96/125 (76%), Positives = 108/125 (86%), Gaps = 0/125 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  4    gkggkagsaakasqsrsakagLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTavleylaae  63&lt;br /&gt;
             G+G + G A   ++SRS++AGL FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AE&lt;br /&gt;
 Sbjct  3    GRGKQGGKARAKAKSRSSRAGLQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAE  62&lt;br /&gt;
 &lt;br /&gt;
 Query  64   ilelaGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSA  123&lt;br /&gt;
             ILELAGNAARDNKKTRIIPRHLQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+ &lt;br /&gt;
 Sbjct  63   ILELAGNAARDNKKTRIIPRHLQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTE  122&lt;br /&gt;
 &lt;br /&gt;
 Query  124  KTAKA  128&lt;br /&gt;
                KA&lt;br /&gt;
 Sbjct  123  SHHKA  127&lt;br /&gt;
&lt;br /&gt;
Hvis man gentager søgningen med filteret slået til giver det følgende (jeg har også valgt at viser X’er i det filtrerede område – hvilket NORMALT er standard i BLAST):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  147 bits (372),  Expect = 2e-36, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 87/104 (83%), Positives = 93/104 (89%), Gaps = 0/104 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  25   LTFPVGRVHRLLRRGNYAQRIGSGAPVYLTXXXXXXXXXXXXXXGNAARDNKKTRIIPRH  84&lt;br /&gt;
             L FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AEILELAGNAARDNKKTRIIPRH&lt;br /&gt;
 Sbjct  24   LQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAEILELAGNAARDNKKTRIIPRH  83&lt;br /&gt;
 &lt;br /&gt;
 Query  85   LQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSAKTAKA  128&lt;br /&gt;
             LQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+    KA&lt;br /&gt;
 Sbjct  84   LQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTESHHKA  127&lt;br /&gt;
&lt;br /&gt;
Bemærk det kortere alignment og den ændrede E-værdi. &lt;br /&gt;
&lt;br /&gt;
Hvis man eksplicit slår filteret fra, ser resultatet således ud:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  194 bits (494),  Expect = 1e-50, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 96/125 (76%), Positives = 108/125 (86%), Gaps = 0/125 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  4    GKGGKAGSAAKASQSRSAKAGLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTAVLEYLAAE  63&lt;br /&gt;
             G+G + G A   ++SRS++AGL FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AE&lt;br /&gt;
 Sbjct  3    GRGKQGGKARAKAKSRSSRAGLQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAE  62&lt;br /&gt;
 &lt;br /&gt;
 Query  64   ILELAGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSA  123&lt;br /&gt;
             ILELAGNAARDNKKTRIIPRHLQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+ &lt;br /&gt;
 Sbjct  63   ILELAGNAARDNKKTRIIPRHLQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTE  122&lt;br /&gt;
 &lt;br /&gt;
 Query  124  KTAKA  128&lt;br /&gt;
                KA&lt;br /&gt;
 Sbjct  123  SHHKA  127&lt;br /&gt;
&lt;br /&gt;
Præcis samme længde, e-værdi mm. som i det første alignment.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kort svar&#039;&#039;&#039;: Ja, alignmentet bliver kortere når low-complexity filteret er slået til.&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1098</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1098"/>
		<updated>2026-09-22T08:36:24Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Random DNA sequences and BLASTN */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using two approaches; the Web interface to &#039;&#039;&#039;BLAST&#039;&#039;&#039; hosted by the &#039;&#039;&#039;NCBI&#039;&#039;&#039;, and using the &#039;&#039;&#039;BioPython library&#039;&#039; in a Notebook using &#039;&#039;&#039;Google Colab&#039;&#039;&#039;. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds. &lt;br /&gt;
&lt;br /&gt;
:If you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can copy the pre-saved searches under &#039;&#039;&#039;Blast Job ID:XXX&#039;&#039;&#039; and use them on the link from BLAST called &#039;&#039;&#039;Saved Strategies&#039;&#039;&#039;. Please notice that these links will only work for the duration of the exercise session.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_Saved_Strategies.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from a close relative, the common macaque (&#039;&#039;Macaca fascicularis&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;J00336.1 Monkey (M. fascicularis) preproinsulin mRNA, complete cds&lt;br /&gt;
 AACCCTCCGGGACAGGCTGCATCAGAAGAGGTCAGCAAGCAGGTCACTGTCCTTCGGCTATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGCGCTGCTGGCCCTCTGGGGACCTGACCCGGCCCCGGCCTTTGTGAAC&lt;br /&gt;
 CAGCACCTGTGCGGCTCCCACCTAGTGGAAGCTCTCTACCTGGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCCTCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGCGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCGCTGGAGGGGTCCCTGCAGAAGCGCGGCATCGTGGAGCAGTGCTGCACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAA&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2C1HZPV014&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? J00336.1&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 708&lt;br /&gt;
:* What is the percent identity and query coverage? 100% and 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the human hit you found now.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 7e-168&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2CCWWRV014&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? Human G+T (2 databases)&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 3e-170&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.6&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
Generate 10 random DNA sequence of length 25bp using Google Colab.&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using each random sequence as query. &lt;br /&gt;
&lt;br /&gt;
In Google Colab, this will be analogous to the web browser using the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. And in this case we will select &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. In addition we will have to modify the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;E_VALUE_THRESH&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
In the Google Colab we do this inadvertently setting the parameter &amp;quot;&amp;lt;u&amp;gt;short_query=False&amp;lt;/u&amp;gt;&amp;quot;. In the web browser version this will be analogous as going into the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options, and &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
:&#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
Perform the BLAST search.&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.1)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)? Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID (blastn): B4C91VW4016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID (blastp): B4CMGVXT016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B4D0NJAJ016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B4D73S06016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1097</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1097"/>
		<updated>2026-09-22T08:35:52Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Random DNA sequences and BLASTN */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using two approaches; the Web interface to &#039;&#039;&#039;BLAST&#039;&#039;&#039; hosted by the &#039;&#039;&#039;NCBI&#039;&#039;&#039;, and using the &#039;&#039;&#039;BioPython library&#039;&#039; in a Notebook using &#039;&#039;&#039;Google Colab&#039;&#039;&#039;. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds. &lt;br /&gt;
&lt;br /&gt;
:If you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can copy the pre-saved searches under &#039;&#039;&#039;Blast Job ID:XXX&#039;&#039;&#039; and use them on the link from BLAST called &#039;&#039;&#039;Saved Strategies&#039;&#039;&#039;. Please notice that these links will only work for the duration of the exercise session.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_Saved_Strategies.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from a close relative, the common macaque (&#039;&#039;Macaca fascicularis&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;J00336.1 Monkey (M. fascicularis) preproinsulin mRNA, complete cds&lt;br /&gt;
 AACCCTCCGGGACAGGCTGCATCAGAAGAGGTCAGCAAGCAGGTCACTGTCCTTCGGCTATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGCGCTGCTGGCCCTCTGGGGACCTGACCCGGCCCCGGCCTTTGTGAAC&lt;br /&gt;
 CAGCACCTGTGCGGCTCCCACCTAGTGGAAGCTCTCTACCTGGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCCTCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGCGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCGCTGGAGGGGTCCCTGCAGAAGCGCGGCATCGTGGAGCAGTGCTGCACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAA&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2C1HZPV014&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? J00336.1&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 708&lt;br /&gt;
:* What is the percent identity and query coverage? 100% and 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the human hit you found now.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 7e-168&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2CCWWRV014&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? Human G+T (2 databases)&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 3e-170&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.6&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
Generate 10 random DNA sequence of length 25bp using Google Colab.&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using each random sequence as query. &lt;br /&gt;
&lt;br /&gt;
In Google Colab, this will be analogous to the web browser using the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. And in this case we will select &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. In addition we will have to modify the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;E_VALUE_THRESH&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
In the Google colab we do this inadvertently setting the parameter &amp;quot;&amp;lt;u&amp;gt;short_query=False&amp;lt;/u&amp;gt;&amp;quot;. In the web browser version this will be analogous as going into the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options, and &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
:&#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
Perform the BLAST search.&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.1)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)? Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID (blastn): B4C91VW4016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID (blastp): B4CMGVXT016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B4D0NJAJ016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B4D73S06016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1096</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1096"/>
		<updated>2026-09-22T08:33:43Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Random DNA sequences and BLASTN */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using two approaches; the Web interface to &#039;&#039;&#039;BLAST&#039;&#039;&#039; hosted by the &#039;&#039;&#039;NCBI&#039;&#039;&#039;, and using the &#039;&#039;&#039;BioPython library&#039;&#039; in a Notebook using &#039;&#039;&#039;Google Colab&#039;&#039;&#039;. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds. &lt;br /&gt;
&lt;br /&gt;
:If you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can copy the pre-saved searches under &#039;&#039;&#039;Blast Job ID:XXX&#039;&#039;&#039; and use them on the link from BLAST called &#039;&#039;&#039;Saved Strategies&#039;&#039;&#039;. Please notice that these links will only work for the duration of the exercise session.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_Saved_Strategies.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from a close relative, the common macaque (&#039;&#039;Macaca fascicularis&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;J00336.1 Monkey (M. fascicularis) preproinsulin mRNA, complete cds&lt;br /&gt;
 AACCCTCCGGGACAGGCTGCATCAGAAGAGGTCAGCAAGCAGGTCACTGTCCTTCGGCTATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGCGCTGCTGGCCCTCTGGGGACCTGACCCGGCCCCGGCCTTTGTGAAC&lt;br /&gt;
 CAGCACCTGTGCGGCTCCCACCTAGTGGAAGCTCTCTACCTGGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCCTCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGCGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCGCTGGAGGGGTCCCTGCAGAAGCGCGGCATCGTGGAGCAGTGCTGCACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAA&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2C1HZPV014&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? J00336.1&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 708&lt;br /&gt;
:* What is the percent identity and query coverage? 100% and 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the human hit you found now.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 7e-168&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2CCWWRV014&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? Human G+T (2 databases)&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 3e-170&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.6&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
Generate 10 random DNA sequence of length 25bp using Google Colab.&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using each random sequence as query. &lt;br /&gt;
&lt;br /&gt;
In Google Colab, this will be analogous to the web browser using the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. And in this case we will select &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
In the Google colab we do this inadvertently setting the parameter &amp;quot;&amp;lt;u&amp;gt;short_query=False&amp;lt;/u&amp;gt;&amp;quot;. In the web browser version this will be analogous as going into the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options, and &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
:&#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
Perform the BLAST search.&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.1)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)? Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID (blastn): B4C91VW4016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID (blastp): B4CMGVXT016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B4D0NJAJ016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B4D73S06016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1095</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1095"/>
		<updated>2026-09-22T08:33:21Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Random DNA sequences and BLASTN */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using two approaches; the Web interface to &#039;&#039;&#039;BLAST&#039;&#039;&#039; hosted by the &#039;&#039;&#039;NCBI&#039;&#039;&#039;, and using the &#039;&#039;&#039;BioPython library&#039;&#039; in a Notebook using &#039;&#039;&#039;Google Colab&#039;&#039;&#039;. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds. &lt;br /&gt;
&lt;br /&gt;
:If you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can copy the pre-saved searches under &#039;&#039;&#039;Blast Job ID:XXX&#039;&#039;&#039; and use them on the link from BLAST called &#039;&#039;&#039;Saved Strategies&#039;&#039;&#039;. Please notice that these links will only work for the duration of the exercise session.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_Saved_Strategies.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from a close relative, the common macaque (&#039;&#039;Macaca fascicularis&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;J00336.1 Monkey (M. fascicularis) preproinsulin mRNA, complete cds&lt;br /&gt;
 AACCCTCCGGGACAGGCTGCATCAGAAGAGGTCAGCAAGCAGGTCACTGTCCTTCGGCTATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGCGCTGCTGGCCCTCTGGGGACCTGACCCGGCCCCGGCCTTTGTGAAC&lt;br /&gt;
 CAGCACCTGTGCGGCTCCCACCTAGTGGAAGCTCTCTACCTGGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCCTCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGCGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCGCTGGAGGGGTCCCTGCAGAAGCGCGGCATCGTGGAGCAGTGCTGCACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAA&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2C1HZPV014&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? J00336.1&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 708&lt;br /&gt;
:* What is the percent identity and query coverage? 100% and 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the human hit you found now.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 7e-168&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2CCWWRV014&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? Human G+T (2 databases)&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 3e-170&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.6&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
Generate 10 random DNA sequence of length 25bp using Google Colab.&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
Generate 10 random DNA sequence of length 25bp using Google Colab.&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using each random sequence as query. &lt;br /&gt;
&lt;br /&gt;
In Google Colab, this will be analogous to the web browser using the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. And in this case we will select &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
In the Google colab we do this inadvertently setting the parameter &amp;quot;&amp;lt;u&amp;gt;short_query=False&amp;lt;/u&amp;gt;&amp;quot;. In the web browser version this will be analogous as going into the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options, and &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
:&#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
Perform the BLAST search.&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.1)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)? Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID (blastn): B4C91VW4016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID (blastp): B4CMGVXT016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B4D0NJAJ016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B4D73S06016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1094</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1094"/>
		<updated>2026-09-22T08:27:21Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Part 2.0: Create your first Python Notebook */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using two approaches; the Web interface to &#039;&#039;&#039;BLAST&#039;&#039;&#039; hosted by the &#039;&#039;&#039;NCBI&#039;&#039;&#039;, and using the &#039;&#039;&#039;BioPython library&#039;&#039; in a Notebook using &#039;&#039;&#039;Google Colab&#039;&#039;&#039;. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds. &lt;br /&gt;
&lt;br /&gt;
:If you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can copy the pre-saved searches under &#039;&#039;&#039;Blast Job ID:XXX&#039;&#039;&#039; and use them on the link from BLAST called &#039;&#039;&#039;Saved Strategies&#039;&#039;&#039;. Please notice that these links will only work for the duration of the exercise session.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_Saved_Strategies.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from a close relative, the common macaque (&#039;&#039;Macaca fascicularis&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;J00336.1 Monkey (M. fascicularis) preproinsulin mRNA, complete cds&lt;br /&gt;
 AACCCTCCGGGACAGGCTGCATCAGAAGAGGTCAGCAAGCAGGTCACTGTCCTTCGGCTATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGCGCTGCTGGCCCTCTGGGGACCTGACCCGGCCCCGGCCTTTGTGAAC&lt;br /&gt;
 CAGCACCTGTGCGGCTCCCACCTAGTGGAAGCTCTCTACCTGGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCCTCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGCGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCGCTGGAGGGGTCCCTGCAGAAGCGCGGCATCGTGGAGCAGTGCTGCACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAA&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2C1HZPV014&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? J00336.1&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 708&lt;br /&gt;
:* What is the percent identity and query coverage? 100% and 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the human hit you found now.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 7e-168&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2CCWWRV014&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? Human G+T (2 databases)&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 3e-170&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.6&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
Generate 10 random DNA sequence of length 25bp using Google Colab.&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
:&#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
Perform the BLAST search.&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.1)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)? Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID (blastn): B4C91VW4016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID (blastp): B4CMGVXT016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B4D0NJAJ016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B4D73S06016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1093</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1093"/>
		<updated>2026-09-22T07:57:58Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* NCBI */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using two approaches; the Web interface to &#039;&#039;&#039;BLAST&#039;&#039;&#039; hosted by the &#039;&#039;&#039;NCBI&#039;&#039;&#039;, and using the &#039;&#039;&#039;BioPython library&#039;&#039; in a Notebook using &#039;&#039;&#039;Google Colab&#039;&#039;&#039;. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds. &lt;br /&gt;
&lt;br /&gt;
:If you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can copy the pre-saved searches under &#039;&#039;&#039;Blast Job ID:XXX&#039;&#039;&#039; and use them on the link from BLAST called &#039;&#039;&#039;Saved Strategies&#039;&#039;&#039;. Please notice that these links will only work for the duration of the exercise session.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_Saved_Strategies.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from a close relative, the common macaque (&#039;&#039;Macaca fascicularis&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;J00336.1 Monkey (M. fascicularis) preproinsulin mRNA, complete cds&lt;br /&gt;
 AACCCTCCGGGACAGGCTGCATCAGAAGAGGTCAGCAAGCAGGTCACTGTCCTTCGGCTATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGCGCTGCTGGCCCTCTGGGGACCTGACCCGGCCCCGGCCTTTGTGAAC&lt;br /&gt;
 CAGCACCTGTGCGGCTCCCACCTAGTGGAAGCTCTCTACCTGGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCCTCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGCGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCGCTGGAGGGGTCCCTGCAGAAGCGCGGCATCGTGGAGCAGTGCTGCACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAA&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2C1HZPV014&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? J00336.1&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 708&lt;br /&gt;
:* What is the percent identity and query coverage? 100% and 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the human hit you found now.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 7e-168&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2CCWWRV014&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? Human G+T (2 databases)&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 3e-170&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.6&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
Generate 10 random DNA sequence of length 25bp using Google Colab.&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
:&#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
Perform the BLAST search.&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.1)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)? Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID (blastn): B4C91VW4016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID (blastp): B4CMGVXT016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B4D0NJAJ016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B4D73S06016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1092</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1092"/>
		<updated>2026-09-22T07:54:38Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* NCBI */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using two approaches; the Web interface to &#039;&#039;&#039;BLAST&#039;&#039;&#039; hosted by the &#039;&#039;&#039;NCBI&#039;&#039;&#039;, and using the &#039;&#039;&#039;BioPython library&#039;&#039; in a Notebook using &#039;&#039;&#039;Google Colab&#039;&#039;&#039;. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds. &lt;br /&gt;
&lt;br /&gt;
:If you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can copy the pre-saved searches under &#039;&#039;&#039;Blast Job ID:XXX&#039;&#039;&#039; and use them on the link from BLAST called &#039;&#039;&#039;Saved Strategies&#039;&#039;&#039;. Please notice that these links will only work for the duration of the exercise session.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_Saved_Strategies.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from a close relative, the common macaque (&#039;&#039;Macaca fascicularis&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;J00336.1 Monkey (M. fascicularis) preproinsulin mRNA, complete cds&lt;br /&gt;
 AACCCTCCGGGACAGGCTGCATCAGAAGAGGTCAGCAAGCAGGTCACTGTCCTTCGGCTATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGCGCTGCTGGCCCTCTGGGGACCTGACCCGGCCCCGGCCTTTGTGAAC&lt;br /&gt;
 CAGCACCTGTGCGGCTCCCACCTAGTGGAAGCTCTCTACCTGGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCCTCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGCGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCGCTGGAGGGGTCCCTGCAGAAGCGCGGCATCGTGGAGCAGTGCTGCACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAA&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2C1HZPV014&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? J00336.1&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 708&lt;br /&gt;
:* What is the percent identity and query coverage? 100% and 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the human hit you found now.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 7e-168&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2CCWWRV014&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? Human G+T (2 databases)&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 3e-170&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.6&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
Generate 10 random DNA sequence of length 25bp using Google Colab.&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
:&#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
Perform the BLAST search.&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.1)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)? Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID (blastn): B4C91VW4016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID (blastp): B4CMGVXT016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B4D0NJAJ016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR65XVA0016&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1091</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1091"/>
		<updated>2026-09-22T07:48:54Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* BLAST example 2 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using two approaches; the Web interface to &#039;&#039;&#039;BLAST&#039;&#039;&#039; hosted by the &#039;&#039;&#039;NCBI&#039;&#039;&#039;, and using the &#039;&#039;&#039;BioPython library&#039;&#039; in a Notebook using &#039;&#039;&#039;Google Colab&#039;&#039;&#039;. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds. &lt;br /&gt;
&lt;br /&gt;
:If you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can copy the pre-saved searches under &#039;&#039;&#039;Blast Job ID:XXX&#039;&#039;&#039; and use them on the link from BLAST called &#039;&#039;&#039;Saved Strategies&#039;&#039;&#039;. Please notice that these links will only work for the duration of the exercise session.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_Saved_Strategies.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from a close relative, the common macaque (&#039;&#039;Macaca fascicularis&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;J00336.1 Monkey (M. fascicularis) preproinsulin mRNA, complete cds&lt;br /&gt;
 AACCCTCCGGGACAGGCTGCATCAGAAGAGGTCAGCAAGCAGGTCACTGTCCTTCGGCTATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGCGCTGCTGGCCCTCTGGGGACCTGACCCGGCCCCGGCCTTTGTGAAC&lt;br /&gt;
 CAGCACCTGTGCGGCTCCCACCTAGTGGAAGCTCTCTACCTGGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCCTCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGCGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCGCTGGAGGGGTCCCTGCAGAAGCGCGGCATCGTGGAGCAGTGCTGCACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAA&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2C1HZPV014&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? J00336.1&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 708&lt;br /&gt;
:* What is the percent identity and query coverage? 100% and 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the human hit you found now.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 7e-168&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2CCWWRV014&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? Human G+T (2 databases)&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 3e-170&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.6&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
Generate 10 random DNA sequence of length 25bp using Google Colab.&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
:&#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
Perform the BLAST search.&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.1)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)? Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID (blastn): B4C91VW4016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID (blastp): B4CMGVXT016&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR6NDFMJ013&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR65XVA0016&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1090</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1090"/>
		<updated>2026-09-22T06:26:30Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Links */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using two approaches; the Web interface to &#039;&#039;&#039;BLAST&#039;&#039;&#039; hosted by the &#039;&#039;&#039;NCBI&#039;&#039;&#039;, and using the &#039;&#039;&#039;BioPython library&#039;&#039; in a Notebook using &#039;&#039;&#039;Google Colab&#039;&#039;&#039;. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds. &lt;br /&gt;
&lt;br /&gt;
:If you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can copy the pre-saved searches under &#039;&#039;&#039;Blast Job ID:XXX&#039;&#039;&#039; and use them on the link from BLAST called &#039;&#039;&#039;Saved Strategies&#039;&#039;&#039;. Please notice that these links will only work for the duration of the exercise session.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_Saved_Strategies.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from a close relative, the common macaque (&#039;&#039;Macaca fascicularis&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;J00336.1 Monkey (M. fascicularis) preproinsulin mRNA, complete cds&lt;br /&gt;
 AACCCTCCGGGACAGGCTGCATCAGAAGAGGTCAGCAAGCAGGTCACTGTCCTTCGGCTATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGCGCTGCTGGCCCTCTGGGGACCTGACCCGGCCCCGGCCTTTGTGAAC&lt;br /&gt;
 CAGCACCTGTGCGGCTCCCACCTAGTGGAAGCTCTCTACCTGGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCCTCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGCGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCGCTGGAGGGGTCCCTGCAGAAGCGCGGCATCGTGGAGCAGTGCTGCACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAA&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2C1HZPV014&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? J00336.1&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 708&lt;br /&gt;
:* What is the percent identity and query coverage? 100% and 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the human hit you found now.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 7e-168&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2CCWWRV014&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? Human G+T (2 databases)&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 3e-170&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.6&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
Generate 10 random DNA sequence of length 25bp using Google Colab.&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
:&#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
Perform the BLAST search.&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.1)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)? Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastn): DU9XHV8H014&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastp): DU9T4K44014&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR6NDFMJ013&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR65XVA0016&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1089</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1089"/>
		<updated>2026-09-21T16:40:17Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Random protein sequences and BLASTP */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using two approaches; the Web interface to &#039;&#039;&#039;BLAST&#039;&#039;&#039; hosted by the &#039;&#039;&#039;NCBI&#039;&#039;&#039;, and using the &#039;&#039;&#039;BioPython library&#039;&#039; in a Notebook using &#039;&#039;&#039;Google Colab&#039;&#039;&#039;. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds. &lt;br /&gt;
&lt;br /&gt;
:If you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can copy the pre-saved searches under &#039;&#039;&#039;Blast Job ID:XXX&#039;&#039;&#039; and use them on the link from BLAST called &#039;&#039;&#039;Saved Strategies&#039;&#039;&#039;. Please notice that these links will only work for the duration of the exercise session.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_Saved_Strategies.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from a close relative, the common macaque (&#039;&#039;Macaca fascicularis&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;J00336.1 Monkey (M. fascicularis) preproinsulin mRNA, complete cds&lt;br /&gt;
 AACCCTCCGGGACAGGCTGCATCAGAAGAGGTCAGCAAGCAGGTCACTGTCCTTCGGCTATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGCGCTGCTGGCCCTCTGGGGACCTGACCCGGCCCCGGCCTTTGTGAAC&lt;br /&gt;
 CAGCACCTGTGCGGCTCCCACCTAGTGGAAGCTCTCTACCTGGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCCTCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGCGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCGCTGGAGGGGTCCCTGCAGAAGCGCGGCATCGTGGAGCAGTGCTGCACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAA&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2C1HZPV014&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? J00336.1&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 708&lt;br /&gt;
:* What is the percent identity and query coverage? 100% and 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the human hit you found now.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 7e-168&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2CCWWRV014&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? Human G+T (2 databases)&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 3e-170&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.6&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
* A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
Generate 10 random DNA sequence of length 25bp using Google Colab.&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
:&#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
Perform the BLAST search.&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.1)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)? Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastn): DU9XHV8H014&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastp): DU9T4K44014&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR6NDFMJ013&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR65XVA0016&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=ExBlast-Answers_new&amp;diff=1088</id>
		<title>ExBlast-Answers new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=ExBlast-Answers_new&amp;diff=1088"/>
		<updated>2026-09-21T16:36:27Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* QUESTION 2.1 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Answers to the BLAST exercise. Values for database sizes etc. retrieved&lt;br /&gt;
September 21, 2026&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.1===&lt;br /&gt;
The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.2===&lt;br /&gt;
* &#039;&#039;Which database did you use?&#039;&#039; &lt;br /&gt;
:core_nt&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:J00336.1 (Note that the latter was also part of the sequence name for your query sequence!)&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;Max score in bits&amp;quot;)?&#039;&#039;&lt;br /&gt;
:The max score is 708 bits &lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:100% and 100%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:0.0 (actually, a number so small that it is rounded off to 0.0)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:No, of course not, since the sequences are identical&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.3===&lt;br /&gt;
* &#039;&#039;Which database did you use?&#039;&#039; &lt;br /&gt;
:core_nt&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:NM_000207.3&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;max score&amp;quot;)?&#039;&#039;&lt;br /&gt;
:603&lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:identity: 94.34% and query coverage: 99%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:7e-168 (meaning 7&amp;amp;times;10&amp;lt;sup&amp;gt;-168&amp;lt;/sup&amp;gt;)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:No&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.4===&lt;br /&gt;
* &#039;&#039;Which database did you use?&#039;&#039; &lt;br /&gt;
:Human G+T (2 databases)&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:NM_000207.3, they have the same score and are therefore equally good. Note that these are among the equally good hits found in the previous question.&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;max score&amp;quot;)?&#039;&#039;&lt;br /&gt;
:603&lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:identity: 94.34% and query coverage: 99%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:3e-170 (meaning 3&amp;amp;times;10&amp;lt;sup&amp;gt;-170&amp;lt;/sup&amp;gt;)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:No&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.5===&lt;br /&gt;
&#039;&#039;What are the sizes (in basepairs) of the databases we used for the two BLAST searches?&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
nt(Human): 1,081,933,534,067 letters (= basepairs), Human G+T: 4,017,001,775 letters (= basepairs).&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.6===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the ratio between the database sizes in the two BLAST searches?&#039;&#039;&lt;br /&gt;
: 1,081,933,534,067 / 4,017,001,775 = &amp;lt;u&amp;gt;~269&amp;lt;/u&amp;gt;&lt;br /&gt;
*&#039;&#039;What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &#039;&#039;&lt;br /&gt;
:7e-168 / 3e-170 = &amp;lt;u&amp;gt;~233&amp;lt;/u&amp;gt;&lt;br /&gt;
:Note: since the E-values have only three significant digits, you cannot expect to get the exact same result.&lt;br /&gt;
:Also note, you can google &amp;quot;7e-168 / 3e-170&amp;quot; directly and the answer will show up in the results.&lt;br /&gt;
*&#039;&#039;What is the relationship between database size and E-value for hits with identical alignment score?&#039;&#039;&lt;br /&gt;
:The E-value is directly proportional to the database size. &lt;br /&gt;
:Note: Conceptually this means that an alignment within the given score (603 bits) is more SIGNIFICANT in the smaller database. In larger database there is a larger chance of randomly picking up matches.&lt;br /&gt;
*&#039;&#039;In conclusion: if the database size is doubled, what will happen to the E-value?&#039;&#039;&lt;br /&gt;
:Each time the database size doubles, the E-value doubles as well.&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.1===&lt;br /&gt;
&lt;br /&gt;
 ****Alignment**** 1&lt;br /&gt;
 Title: gi|2440392781|emb|OX421481.1| Eilema caniola genome assembly, chromosome: 20&lt;br /&gt;
 Accession: OX421481&lt;br /&gt;
 Length: 22119023&lt;br /&gt;
 Max Score: 44.0&lt;br /&gt;
 Bits: 40.9604&lt;br /&gt;
 Identities: 22&lt;br /&gt;
 Align_length: 22&lt;br /&gt;
 Gaps: 0&lt;br /&gt;
 %Ident: 100.00 %&lt;br /&gt;
 Query Cover: 88 %&lt;br /&gt;
 E value: 1.88e+00&lt;br /&gt;
 TTCTGAAAGGTCCTCTCGATAC&lt;br /&gt;
 ||||||||||||||||||||||&lt;br /&gt;
 TTCTGAAAGGTCCTCTCGATAC&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the typical length of the hits (the alignment length)?&#039;&#039;:&lt;br /&gt;
:Typically around 17-24 base pairs.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the typical % identity?&#039;&#039;:&lt;br /&gt;
:90% - 100%&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;In what range are the bit-scores (&amp;quot;max score)?&#039;&#039;:&lt;br /&gt;
:typically 30-45 bits.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the range of the E-values?&#039;&#039;:&lt;br /&gt;
:1-15&lt;br /&gt;
:usually varying from 1 to 50 (occasionally, you might find hits as &amp;quot;good&amp;quot; as 0.1).&lt;br /&gt;
:&#039;&#039;&#039;Note&#039;&#039;&#039; that here we choose to use an E-value threshold of 50.0 as a cut-off. That means that some sequences do not give an output if the E-value of the best alignment is higher than that. Also note that when running BLAST to identify homologous sequences the default cut-off is 0.05.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.2===&lt;br /&gt;
&#039;&#039;What is the biological significance of the hits you found / is there any biological meaning?&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
This makes absolutely NO biological sense(!) The hits are real enough as such, they represent sequences that actually are in the database. But we know that our query sequences are completely random and therefore have no evolutionary relationship with the hits. The only reason we found our hits is that the database is so vast that we for for purely stochastic reasons happen upon sequences that are similar.&lt;br /&gt;
&lt;br /&gt;
The E-values tell us precisely this: As described in the BLAST lecture, the alignment score will follow an extreme value distribution for those sequences that are not related to our query sequences, and the E-value is &#039;&#039;the expected number&#039;&#039; of spurious (unrelated) hits with the given alignment score or better, given the database size.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; Don&#039;t be confused by the difference between alignment score and bit score; bit score is simply the alignment score normalized by a constant factor which gives a result expressible in bits.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.3===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
*&#039;&#039;How big is the database this time? &#039;&#039;:&lt;br /&gt;
:Number of letters (amino acids): 243,461,748,389&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
*&#039;&#039;What is the typical length of the alignment and do they contain gaps?&#039;&#039;:&lt;br /&gt;
:Typically 15-22. Rarely gaps, but several mismatches.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the range of E-values?&#039;&#039;:&lt;br /&gt;
:Typically 100-1000 &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar) - do you find any that look plausible, if we for a moment ignore the length/E-value?&#039;&#039;&lt;br /&gt;
:Yes, maybe. See &#039;&#039;e.g.&#039;&#039; the alignment below, it has 77% identities (but it is way too short to be significant, as the E-value tells us).&lt;br /&gt;
&lt;br /&gt;
 ****Alignment**** 1&lt;br /&gt;
 Title: ref|WP_179589105.1| non-ribosomal peptide synthetase [Pigmentiphaga litoralis] &amp;gt;gb|NYE25977.1| amino acid adenylation domain-containing protein [Pigmentiphaga litoralis] &amp;gt;gb|NYE85097.1| amino acid adenylation domain- containing protein [Pigmentiphaga litoralis]&lt;br /&gt;
 Accession: WP_179589105&lt;br /&gt;
 Length: 1782&lt;br /&gt;
 Max Score: 67.0&lt;br /&gt;
 Bits: 30.4166&lt;br /&gt;
 Identities: 8&lt;br /&gt;
 Align_length: 22&lt;br /&gt;
 Gaps: 0&lt;br /&gt;
 %Ident: 36.36 %&lt;br /&gt;
 Query Cover: 88 %&lt;br /&gt;
 E value: 1.25e+02&lt;br /&gt;
 LTNNVNMHWTLPYTVSHVYVNP&lt;br /&gt;
 L   ++ HW +P+T+SH++ +P&lt;br /&gt;
 LAARISQHWCVPFTISHIFDHP&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;If we had used the default E-value cutoff of 10 would any hits have been found?&#039;&#039;:&lt;br /&gt;
:No (note: the default is actually 0.05 now). Note the difference from the nucleotide database searches (whose E-values were typically in the range 1-50): if we had run BLASTN with an E-value threshold of 1000, we would have had many pages of hits for each query sequence.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.4===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&#039;&#039;:&lt;br /&gt;
:The risk of getting a false hit (an unrelated sequence with a &amp;quot;decent&amp;quot; E-value) is much larger when working with DNA sequences. Remember than we used 50 as E-value cut-off for BLASTN, while we used 1000 with BLASTP in order to see any hits at all.&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ===QUESTION 3.1===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we get any significant hits?&#039;&#039;&lt;br /&gt;
:Yes, there are 20 hits with an E-value of &amp;quot;0.0&amp;quot; (&#039;&#039;i.e.&#039;&#039; so small that is is rounded to zero) — and the next hits are also extremely significant. The first hit (S48754) furthermore has a query coverage of 100% and an identity of 100% (this is actually the source of our query).&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What kind of genes (function) do we find?&#039;&#039;&lt;br /&gt;
:All the high-quality hits are alkaline serine proteases from the genera &#039;&#039;Bacillus&#039;&#039; or &#039;&#039;Alkalihalobacillus&#039;&#039; — except some hits that are whole genome sequences.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 3.2===&lt;br /&gt;
Note 1: remember to use the ORF Finder in Virtual Ribosome! Since we are told the sequence is a full-length transcript, we can assume that the START and STOP codons are included and set the ORF finder to &amp;quot;&amp;lt;u&amp;gt;Start codon: Any&amp;lt;/u&amp;gt;&amp;quot; (in this case, it would have given the same result to use  &amp;quot;&amp;lt;u&amp;gt;Start codon: Strict&amp;lt;/u&amp;gt;&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
Note 2: you can choose the standard genetic code (Table 1) or alternatively Table 11 (&amp;lt;u&amp;gt;Bacterial and Plant Plastid&amp;lt;/u&amp;gt;). The only difference is that Table 11 allows some extra, rarely occurring, start codons.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Report your translated protein sequence in FASTA format.&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01_rframe2_ORF&lt;br /&gt;
 MKKPLGKIVASTALLISVAFSSSIASAAEEAKEKYLIGFNEQEAVSEFVEQVEANDEVAI&lt;br /&gt;
 LSEEEEVEIELLHEFETIPVLSVELSPEDVDALELDPAISYIEEDAEVTTMAQSVPWGIS&lt;br /&gt;
 RVQAPAAHNRGLTGSGVKVAVLDTGISTHPDLNIRGGASFVPGEPSTQDGNGHGTHVAGT&lt;br /&gt;
 IAALNNSIGVLGVAPSAELYAVKVLGASGSGSVSSIAQGLEWAGNNGMHVANLSLGSPSP&lt;br /&gt;
 SATLEQAVNSATSRGVLVVAASGNSGAGSISYPARYANAMAVGATDQNNNRASFSQYGAG&lt;br /&gt;
 LDIVAPGVNVQSTYPGSTYASLNGTSMATPHVAGAAALVKQKNPSWSNVQIRNHLKNTAT&lt;br /&gt;
 SLGSTNLYGSGLVNAEAATR&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we find any conserved protein domains?&#039;&#039;:&lt;br /&gt;
:Yes, there is a &amp;quot;Peptidase S8&amp;quot; domain. You can see it by clicking the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab.&lt;br /&gt;
&lt;br /&gt;
[[image:Peptidases_S8.png|center|frame|Conserved protein domains found by the NCBI Blast server]]&lt;br /&gt;
&amp;lt;!-- [[image:NCBI_BLAST_ProtDomains_Updated.JPG|center|frame|Conserved protein domains found by the NCBI Blast server]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we find any significant hits? (E-value?)&#039;&#039;:&lt;br /&gt;
:Yes, a lot. The first many hits have an E-value of 0.0, and hit #100 is still very significant (3e-98) — note that by default, only the top 100 hits are shown!&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Are all the best hits the same category of enzymes?&#039;&#039;:&lt;br /&gt;
:Yes, they are alkaline proteases (except a few that are hypothetical proteins).&lt;br /&gt;
:Note that you can click the Accession code for a hit and go directly to the corresponding entry in the database.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&#039;&#039;:&lt;br /&gt;
:Protein BLAST (BLASTP). If you have very high quality hits, they can be identified by both methods, but if the evolutionary distance is larger, BLASTP is clearly better.&lt;br /&gt;
:Note: Recall from the PyMOL exercises that information between distant genes/proteins are conserved from: Structure &amp;gt; Peptide Sequence &amp;gt; Nucleotide sequence. So when the evolutionary distance is larger, blastp would generally give better hits than blastn.&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===QUESTION 3.1===&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence: &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Subquestion: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
 &amp;gt;CLONE12&lt;br /&gt;
 AACGGGCACGGGACGCATGTAGCTGGAACAGTGGCAGCCGTAAATAATAATGGTATCGGA&lt;br /&gt;
 GTTGCCGGGGTTGCAGGAGGAAACGGCTCTACCAATAGTGGAGCAAGGTTAATGTCCACA&lt;br /&gt;
 CAAATTTTTAATAGTGATGGGGATTATACAAATAGCGAAACTCTTGTGTACAGAGCCATT&lt;br /&gt;
 GTTTATGGTGCAGATAACGGAGCTGTGATCTCGCAAAATAGCTGGGGTAGTCAGTCTCTG&lt;br /&gt;
 ACTATTAAGGAGTTGCAGAAAGCTGCGATCGACTATTTCATTGATTATGCAGGAATGGAC&lt;br /&gt;
 GAAACAGGAGAAATACAGACAGGCCCTATGAGGGGAGGTATATTTATAGCTGCCGCCGGA&lt;br /&gt;
 AACGATAACGTTTCCACTCCAAATATGCCTTCAGCTTATGAACGGGTTTTAGCTGTGGCC&lt;br /&gt;
 TCAATGGGACCAGATTTTACTAAGGCAAGCTATAGCACTTTTGGAACATGGACTGATATT&lt;br /&gt;
 ACTGCTCCTGGCGGAGATATTGACAAATTTGATTTGTCAGAATACGGAGTTCTCAGCACT&lt;br /&gt;
 TATGCCGATAATTATTATGCTTATGGAGAGGGAACATCCATGGCTTGTCCACATGTCGCC&lt;br /&gt;
 GGCGCCGCC&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task: &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Subquestion: Give a summary of your considerations.&#039;&#039;&lt;br /&gt;
**&#039;&#039;Based on the information given: is the sequence protein-coding? &#039;&#039;&lt;br /&gt;
::Yes — we know this because the PCR primers used to clone the sequence target &#039;&#039;&#039;known enzymes&#039;&#039;&#039;. Therefore, it will make sense to try to translate the sequence using Virtual Ribosome.&lt;br /&gt;
:*&#039;&#039;If it is, can you trust it will contain both a START and STOP codon? &#039;&#039;&lt;br /&gt;
::No — the PCR primers used to clone the sequence target &#039;&#039;&#039;the middle of the sequence&#039;&#039;&#039;, in other words we must assume that our sequence is a fragment. Therefore, the ORF finder in Virtual Ribosome should be set to &amp;lt;u&amp;gt;Start codon: None&amp;lt;/u&amp;gt;.&lt;br /&gt;
:*&#039;&#039;Do we know if the sequence is sense or anti-sense? &#039;&#039;&lt;br /&gt;
::No — the PCR process amplifies a stretch of double-stranded DNA. Therefore, we should let Virtual Ribosome search in &#039;&#039;&#039;all 6 reading frames&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
We want to use BLAST to search the large databases. Let&#039;s therefore try the following:&lt;br /&gt;
# BLASTN &lt;br /&gt;
# Translate to protein (using Virtual Ribosome).&lt;br /&gt;
# BLASTP&lt;br /&gt;
Both when doing BLASTN and BLASTP we will use the NR database in order to search as broadly as possible. It would not make sense to use an organism-specific database when we don&#039;t know which organism our sequence stems from.&lt;br /&gt;
&lt;br /&gt;
1) BLASTN. When trying BLASTN against NR we get some borderline significant results, but observe how small the query coverage percentages are (check also the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab!). &lt;br /&gt;
&lt;br /&gt;
[[image:NCBI BlastN_CLONE12 new_version.png]]&lt;br /&gt;
[[image:NCBI BlastN_CLONE12 Graphic Summary.png]]&lt;br /&gt;
&lt;br /&gt;
There is simply nothing in the entire NR database that has enough similarity to our whole query sequence. A search on the DNA level is only suited for finding very close hits.&lt;br /&gt;
&lt;br /&gt;
2) Translate using Virtual Ribosome with the settings we chose under Step 2 above.&lt;br /&gt;
&lt;br /&gt;
The result from the ORF finder:&lt;br /&gt;
 &lt;br /&gt;
 VIRTUAL RIBOSOME&lt;br /&gt;
 ----------------&lt;br /&gt;
 Translation table: Standard SGC0 &lt;br /&gt;
 &lt;br /&gt;
 &amp;gt;CLONE12_rframe1_ORF&lt;br /&gt;
 Reading frame: 1&lt;br /&gt;
 &lt;br /&gt;
     N  G  H  G  T  H  V  A  G  T  V  A  A  V  N  N  N  G  I  G  V  A  G  V  A  G  G  N  G  S  &lt;br /&gt;
 5&#039; AACGGGCACGGGACGCATGTAGCTGGAACAGTGGCAGCCGTAAATAATAATGGTATCGGAGTTGCCGGGGTTGCAGGAGGAAACGGCTCT 90&lt;br /&gt;
    .......................................................................................... &lt;br /&gt;
 &lt;br /&gt;
     T  N  S  G  A  R  L  M  S  T  Q  I  F  N  S  D  G  D  Y  T  N  S  E  T  L  V  Y  R  A  I  &lt;br /&gt;
 5&#039; ACCAATAGTGGAGCAAGGTTAATGTCCACACAAATTTTTAATAGTGATGGGGATTATACAAATAGCGAAACTCTTGTGTACAGAGCCATT 180&lt;br /&gt;
    .....................&amp;gt;&amp;gt;&amp;gt;.................................................................. &lt;br /&gt;
 &lt;br /&gt;
     V  Y  G  A  D  N  G  A  V  I  S  Q  N  S  W  G  S  Q  S  L  T  I  K  E  L  Q  K  A  A  I  &lt;br /&gt;
 5&#039; GTTTATGGTGCAGATAACGGAGCTGTGATCTCGCAAAATAGCTGGGGTAGTCAGTCTCTGACTATTAAGGAGTTGCAGAAAGCTGCGATC 270&lt;br /&gt;
    .........................................................)))............)))............... &lt;br /&gt;
 &lt;br /&gt;
     D  Y  F  I  D  Y  A  G  M  D  E  T  G  E  I  Q  T  G  P  M  R  G  G  I  F  I  A  A  A  G  &lt;br /&gt;
 5&#039; GACTATTTCATTGATTATGCAGGAATGGACGAAACAGGAGAAATACAGACAGGCCCTATGAGGGGAGGTATATTTATAGCTGCCGCCGGA 360&lt;br /&gt;
    ........................&amp;gt;&amp;gt;&amp;gt;..............................&amp;gt;&amp;gt;&amp;gt;.............................. &lt;br /&gt;
 &lt;br /&gt;
     N  D  N  V  S  T  P  N  M  P  S  A  Y  E  R  V  L  A  V  A  S  M  G  P  D  F  T  K  A  S  &lt;br /&gt;
 5&#039; AACGATAACGTTTCCACTCCAAATATGCCTTCAGCTTATGAACGGGTTTTAGCTGTGGCCTCAATGGGACCAGATTTTACTAAGGCAAGC 450&lt;br /&gt;
    ........................&amp;gt;&amp;gt;&amp;gt;....................................&amp;gt;&amp;gt;&amp;gt;........................ &lt;br /&gt;
 &lt;br /&gt;
     Y  S  T  F  G  T  W  T  D  I  T  A  P  G  G  D  I  D  K  F  D  L  S  E  Y  G  V  L  S  T  &lt;br /&gt;
 5&#039; TATAGCACTTTTGGAACATGGACTGATATTACTGCTCCTGGCGGAGATATTGACAAATTTGATTTGTCAGAATACGGAGTTCTCAGCACT 540&lt;br /&gt;
    ...............................................................)))........................ &lt;br /&gt;
 &lt;br /&gt;
     Y  A  D  N  Y  Y  A  Y  G  E  G  T  S  M  A  C  P  H  V  A  G  A  A  &lt;br /&gt;
 5&#039; TATGCCGATAATTATTATGCTTATGGAGAGGGAACATCCATGGCTTGTCCACATGTCGCCGGCGCCGCC 609&lt;br /&gt;
    .......................................&amp;gt;&amp;gt;&amp;gt;........................... &lt;br /&gt;
&lt;br /&gt;
(&#039;&#039;&#039;Tip:&#039;&#039;&#039; Remember that you can get the sequence in FASTA format via the &amp;lt;u&amp;gt;FASTA&amp;lt;/u&amp;gt; link on the result page):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;CLONE12_rframe1_ORF&lt;br /&gt;
 NGHGTHVAGTVAAVNNNGIGVAGVAGGNGSTNSGARLMSTQIFNSDGDYTNSETLVYRAI&lt;br /&gt;
 VYGADNGAVISQNSWGSQSLTIKELQKAAIDYFIDYAGMDETGEIQTGPMRGGIFIAAAG&lt;br /&gt;
 NDNVSTPNMPSAYERVLAVASMGPDFTKASYSTFGTWTDITAPGGDIDKFDLSEYGVLST&lt;br /&gt;
 YADNYYAYGEGTSMACPHVAGAA&lt;br /&gt;
&lt;br /&gt;
3) BLASTP&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- The first thing we notice (already while the search is running) is that there is a &amp;quot;Peptidases_S8_S53&amp;quot; domain. This is a very strong indicator of the function. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We get several very significant hits. When looking at the top hits and disregarding &amp;quot;hypothetical&amp;quot; and &amp;quot;uncharacterized&amp;quot; proteins, we can see that the rest are almost all serine proteases. Some of them are described as belonging to the of the S8 family.&lt;br /&gt;
&lt;br /&gt;
[[image:NCBI BlastP_CLONE12_rframe1_ORF new version.png]]&lt;br /&gt;
&lt;br /&gt;
Let&#039;s take a closer look at the first hit that is not &amp;quot;uncharacterized&amp;quot;:&lt;br /&gt;
[[image:NCBI_BlastP_CLONE12_best_hit.png]]&lt;br /&gt;
&lt;br /&gt;
Note that although it is not a perfect hit (our query sequence not existing in the database) it looks reasonable: the alignment covers a large part of the query with Identity of 54% and Similarity (Positives) of 69%.&lt;br /&gt;
&lt;br /&gt;
Taken together with the fact that almost all the best non-hypothetical hits are serine proteases, we have a very strong indication that our mystery sequence, CLONE12, is a peptidase or protease of the S8 family.&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.1===&lt;br /&gt;
&#039;&#039;What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
They are nearly identical (&amp;quot;one of two nearly identical (see also HTA1) subtypes&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
Protein sequence: &lt;br /&gt;
 &amp;gt;YBL003C  &lt;br /&gt;
 MSGGKGGKAGSAAKASQSRSAKAGLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTAVLEYL&lt;br /&gt;
 AAEILELAGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPK&lt;br /&gt;
 KSAKTAKASQEL*&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.2===&lt;br /&gt;
*&#039;&#039;How many high-confidence hits do we get?&#039;&#039;:&lt;br /&gt;
:3 — HTA1, HTA2 and HTZ1.&lt;br /&gt;
:Note: If you click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links for the two top hits, you will see that one is HTA1 and the other is HTA2.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&#039;&#039;:&lt;br /&gt;
:Yes; HTA1 and HTA2 are indeed nearly identical (only 2 amino acids differ).&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.3===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found?&#039;&#039;&lt;br /&gt;
:Answer: 29.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
Lad os ligesom før kræve at hits skal have en e-value på 1e-10 eller bedre (mindre) for at vi regner det for pålideligt. Dette passer også fint med, at disse hits er enige om at der er tale om en histon.&lt;br /&gt;
&lt;br /&gt;
Som udgangspunkt er der derfor 26 gode hits. Man kan dog godt argumentere for at man skal passe på hits der kun har en forudsagt funktion (&amp;quot;PREDICTED&amp;quot;) - dem har vi en enkelt af. Som det også ses er der en række af hits&#039;ne der dækker over variationer af samme protein (fx alle dem der hedder: &amp;lt;tt&amp;gt;histone H2A type-XYZ&amp;lt;/tt&amp;gt;). Det er ikke altid at alle detaljerne kommer med i den korte form af overskrifter - nogen gange kan det være nødvendigt mauelt at inspicere et hit (klikke på link&#039;et og læse hvad der står af information i det bagvedliggende database entry).&lt;br /&gt;
&lt;br /&gt;
Lad os arbejde videre med alle 26 gode hits i de næste analyser.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;These protein originates from a number of genes - but how many UNIQUE genes?&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Svar: Trick&#039;et er her af en del af hits&#039;ne er fra isoformer af det sammen protein. Et protein med to isofomer stammer stadig kun fra en enkelt gen&lt;br /&gt;
&lt;br /&gt;
Lad os fx kigge på følgende hits:&lt;br /&gt;
&lt;br /&gt;
 ref|NP_613075.1|  core histone macro-H2A.1 isoform 1 [Homo sap...   152    7e-38&lt;br /&gt;
 ref|NP_004884.1|  core histone macro-H2A.1 isoform 2 [Homo sap...   152    8e-38&lt;br /&gt;
&lt;br /&gt;
Hvis man gå ind og læser sekvens-entry&#039;et for disse hits kan man faktisk direkte se, at de stammer fra sammen gen (/gene=&amp;quot;H2AFY&amp;quot;, /gene=&amp;quot;H2AFY&amp;quot;). BEMÆRK: Her er vi heldige og alt den information vi har burg for står faktisk i overskrifterne.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
En hurtig optælling afslører følgende isoformet i vores set af BLAST hits:&lt;br /&gt;
&lt;br /&gt;
 ref|NP_613075.1|  core histone macro-H2A.1 isoform 1 [Homo sap...   152    7e-38&lt;br /&gt;
 ref|NP_004884.1|  core histone macro-H2A.1 isoform 2 [Homo sap...   152    8e-38&lt;br /&gt;
 ref|NP_613258.2|  core histone macro-H2A.1 isoform 3 [Homo sap...   152    8e-38&lt;br /&gt;
&lt;br /&gt;
 ref|NP_036544.1|  histone H2A.V isoform 1 [Homo sapiens]            133    4e-32&lt;br /&gt;
 ref|NP_619541.1|  histone H2A.V isoform 2 [Homo sapiens]            114    2e-26&lt;br /&gt;
 ref|NP_958844.1|  histone H2A.V isoform 3 [Homo sapiens]            112    8e-26&lt;br /&gt;
 ref|NP_958925.1|  histone H2A.V isoform 5 [Homo sapiens]           75.9    8e-15&lt;br /&gt;
 ref|NP_958924.1|  histone H2A.V isoform 4 [Homo sapiens]           62.8    7e-11&lt;br /&gt;
&lt;br /&gt;
Dvs at vi i alt har 27 - 2 - 4 = 21 unikke hits til gener.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===QUESTION 4.4===&lt;br /&gt;
&#039;&#039;&#039;Langt svar&#039;&#039;&#039;: Et lavt komplekst område er et stykke sekvens der ikke indeholder særligt meget information (fx. TTTTAAAA i human – findes milioner af gange i genomet).&lt;br /&gt;
&lt;br /&gt;
BLAST har et indbygget filter der masker disse områder ud i søgningen.&lt;br /&gt;
&lt;br /&gt;
Ud over at kunne slå det til og fra – har NCBI valgt et tredie mulighed (som default) – slå det fra men at vise hvor områderne er (små bogstaver):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  194 bits (494),  Expect = 1e-50, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 96/125 (76%), Positives = 108/125 (86%), Gaps = 0/125 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  4    gkggkagsaakasqsrsakagLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTavleylaae  63&lt;br /&gt;
             G+G + G A   ++SRS++AGL FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AE&lt;br /&gt;
 Sbjct  3    GRGKQGGKARAKAKSRSSRAGLQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAE  62&lt;br /&gt;
 &lt;br /&gt;
 Query  64   ilelaGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSA  123&lt;br /&gt;
             ILELAGNAARDNKKTRIIPRHLQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+ &lt;br /&gt;
 Sbjct  63   ILELAGNAARDNKKTRIIPRHLQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTE  122&lt;br /&gt;
 &lt;br /&gt;
 Query  124  KTAKA  128&lt;br /&gt;
                KA&lt;br /&gt;
 Sbjct  123  SHHKA  127&lt;br /&gt;
&lt;br /&gt;
Hvis man gentager søgningen med filteret slået til giver det følgende (jeg har også valgt at viser X’er i det filtrerede område – hvilket NORMALT er standard i BLAST):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  147 bits (372),  Expect = 2e-36, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 87/104 (83%), Positives = 93/104 (89%), Gaps = 0/104 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  25   LTFPVGRVHRLLRRGNYAQRIGSGAPVYLTXXXXXXXXXXXXXXGNAARDNKKTRIIPRH  84&lt;br /&gt;
             L FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AEILELAGNAARDNKKTRIIPRH&lt;br /&gt;
 Sbjct  24   LQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAEILELAGNAARDNKKTRIIPRH  83&lt;br /&gt;
 &lt;br /&gt;
 Query  85   LQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSAKTAKA  128&lt;br /&gt;
             LQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+    KA&lt;br /&gt;
 Sbjct  84   LQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTESHHKA  127&lt;br /&gt;
&lt;br /&gt;
Bemærk det kortere alignment og den ændrede E-værdi. &lt;br /&gt;
&lt;br /&gt;
Hvis man eksplicit slår filteret fra, ser resultatet således ud:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  194 bits (494),  Expect = 1e-50, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 96/125 (76%), Positives = 108/125 (86%), Gaps = 0/125 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  4    GKGGKAGSAAKASQSRSAKAGLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTAVLEYLAAE  63&lt;br /&gt;
             G+G + G A   ++SRS++AGL FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AE&lt;br /&gt;
 Sbjct  3    GRGKQGGKARAKAKSRSSRAGLQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAE  62&lt;br /&gt;
 &lt;br /&gt;
 Query  64   ILELAGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSA  123&lt;br /&gt;
             ILELAGNAARDNKKTRIIPRHLQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+ &lt;br /&gt;
 Sbjct  63   ILELAGNAARDNKKTRIIPRHLQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTE  122&lt;br /&gt;
 &lt;br /&gt;
 Query  124  KTAKA  128&lt;br /&gt;
                KA&lt;br /&gt;
 Sbjct  123  SHHKA  127&lt;br /&gt;
&lt;br /&gt;
Præcis samme længde, e-værdi mm. som i det første alignment.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kort svar&#039;&#039;&#039;: Ja, alignmentet bliver kortere når low-complexity filteret er slået til.&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=ExBlast-Answers_new&amp;diff=1087</id>
		<title>ExBlast-Answers new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=ExBlast-Answers_new&amp;diff=1087"/>
		<updated>2026-09-21T16:33:07Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* QUESTION 2.1 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Answers to the BLAST exercise. Values for database sizes etc. retrieved&lt;br /&gt;
September 21, 2026&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.1===&lt;br /&gt;
The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.2===&lt;br /&gt;
* &#039;&#039;Which database did you use?&#039;&#039; &lt;br /&gt;
:core_nt&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:J00336.1 (Note that the latter was also part of the sequence name for your query sequence!)&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;Max score in bits&amp;quot;)?&#039;&#039;&lt;br /&gt;
:The max score is 708 bits &lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:100% and 100%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:0.0 (actually, a number so small that it is rounded off to 0.0)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:No, of course not, since the sequences are identical&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.3===&lt;br /&gt;
* &#039;&#039;Which database did you use?&#039;&#039; &lt;br /&gt;
:core_nt&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:NM_000207.3&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;max score&amp;quot;)?&#039;&#039;&lt;br /&gt;
:603&lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:identity: 94.34% and query coverage: 99%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:7e-168 (meaning 7&amp;amp;times;10&amp;lt;sup&amp;gt;-168&amp;lt;/sup&amp;gt;)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:No&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.4===&lt;br /&gt;
* &#039;&#039;Which database did you use?&#039;&#039; &lt;br /&gt;
:Human G+T (2 databases)&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:NM_000207.3, they have the same score and are therefore equally good. Note that these are among the equally good hits found in the previous question.&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;max score&amp;quot;)?&#039;&#039;&lt;br /&gt;
:603&lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:identity: 94.34% and query coverage: 99%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:3e-170 (meaning 3&amp;amp;times;10&amp;lt;sup&amp;gt;-170&amp;lt;/sup&amp;gt;)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:No&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.5===&lt;br /&gt;
&#039;&#039;What are the sizes (in basepairs) of the databases we used for the two BLAST searches?&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
nt(Human): 1,081,933,534,067 letters (= basepairs), Human G+T: 4,017,001,775 letters (= basepairs).&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.6===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the ratio between the database sizes in the two BLAST searches?&#039;&#039;&lt;br /&gt;
: 1,081,933,534,067 / 4,017,001,775 = &amp;lt;u&amp;gt;~269&amp;lt;/u&amp;gt;&lt;br /&gt;
*&#039;&#039;What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &#039;&#039;&lt;br /&gt;
:7e-168 / 3e-170 = &amp;lt;u&amp;gt;~233&amp;lt;/u&amp;gt;&lt;br /&gt;
:Note: since the E-values have only three significant digits, you cannot expect to get the exact same result.&lt;br /&gt;
:Also note, you can google &amp;quot;7e-168 / 3e-170&amp;quot; directly and the answer will show up in the results.&lt;br /&gt;
*&#039;&#039;What is the relationship between database size and E-value for hits with identical alignment score?&#039;&#039;&lt;br /&gt;
:The E-value is directly proportional to the database size. &lt;br /&gt;
:Note: Conceptually this means that an alignment within the given score (603 bits) is more SIGNIFICANT in the smaller database. In larger database there is a larger chance of randomly picking up matches.&lt;br /&gt;
*&#039;&#039;In conclusion: if the database size is doubled, what will happen to the E-value?&#039;&#039;&lt;br /&gt;
:Each time the database size doubles, the E-value doubles as well.&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.1===&lt;br /&gt;
&lt;br /&gt;
 ****Alignment**** 1&lt;br /&gt;
 Title: gi|2440392781|emb|OX421481.1| Eilema caniola genome assembly, chromosome: 20&lt;br /&gt;
 Accession: OX421481&lt;br /&gt;
 Length: 22119023&lt;br /&gt;
 Max Score: 44.0&lt;br /&gt;
 Bits: 40.9604&lt;br /&gt;
 Identities: 22&lt;br /&gt;
 Align_length: 22&lt;br /&gt;
 Gaps: 0&lt;br /&gt;
 %Ident: 100.00 %&lt;br /&gt;
 Query Cover: 88 %&lt;br /&gt;
 E value: 1.88e+00&lt;br /&gt;
 TTCTGAAAGGTCCTCTCGATAC&lt;br /&gt;
 ||||||||||||||||||||||&lt;br /&gt;
 TTCTGAAAGGTCCTCTCGATAC&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the typical length of the hits (the alignment length)?&#039;&#039;:&lt;br /&gt;
:Typically around 17-24 base pairs.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the typical % identity?&#039;&#039;:&lt;br /&gt;
:90% - 100%&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;In what range are the bit-scores (&amp;quot;max score)?&#039;&#039;:&lt;br /&gt;
:typically 30-45 bits.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the range of the E-values?&#039;&#039;:&lt;br /&gt;
:1-15&lt;br /&gt;
:usually varying from 1 to 50 (occasionally, you might find hits as &amp;quot;good&amp;quot; as 0.1).&lt;br /&gt;
:&#039;&#039;&#039;Note&#039;&#039;&#039;: we chose to use an E-value threshold of 50.0. The default is 0.05.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.2===&lt;br /&gt;
&#039;&#039;What is the biological significance of the hits you found / is there any biological meaning?&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
This makes absolutely NO biological sense(!) The hits are real enough as such, they represent sequences that actually are in the database. But we know that our query sequences are completely random and therefore have no evolutionary relationship with the hits. The only reason we found our hits is that the database is so vast that we for for purely stochastic reasons happen upon sequences that are similar.&lt;br /&gt;
&lt;br /&gt;
The E-values tell us precisely this: As described in the BLAST lecture, the alignment score will follow an extreme value distribution for those sequences that are not related to our query sequences, and the E-value is &#039;&#039;the expected number&#039;&#039; of spurious (unrelated) hits with the given alignment score or better, given the database size.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; Don&#039;t be confused by the difference between alignment score and bit score; bit score is simply the alignment score normalized by a constant factor which gives a result expressible in bits.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.3===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
*&#039;&#039;How big is the database this time? &#039;&#039;:&lt;br /&gt;
:Number of letters (amino acids): 243,461,748,389&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
*&#039;&#039;What is the typical length of the alignment and do they contain gaps?&#039;&#039;:&lt;br /&gt;
:Typically 15-22. Rarely gaps, but several mismatches.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the range of E-values?&#039;&#039;:&lt;br /&gt;
:Typically 100-1000 &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar) - do you find any that look plausible, if we for a moment ignore the length/E-value?&#039;&#039;&lt;br /&gt;
:Yes, maybe. See &#039;&#039;e.g.&#039;&#039; the alignment below, it has 77% identities (but it is way too short to be significant, as the E-value tells us).&lt;br /&gt;
&lt;br /&gt;
 ****Alignment**** 1&lt;br /&gt;
 Title: ref|WP_179589105.1| non-ribosomal peptide synthetase [Pigmentiphaga litoralis] &amp;gt;gb|NYE25977.1| amino acid adenylation domain-containing protein [Pigmentiphaga litoralis] &amp;gt;gb|NYE85097.1| amino acid adenylation domain- containing protein [Pigmentiphaga litoralis]&lt;br /&gt;
 Accession: WP_179589105&lt;br /&gt;
 Length: 1782&lt;br /&gt;
 Max Score: 67.0&lt;br /&gt;
 Bits: 30.4166&lt;br /&gt;
 Identities: 8&lt;br /&gt;
 Align_length: 22&lt;br /&gt;
 Gaps: 0&lt;br /&gt;
 %Ident: 36.36 %&lt;br /&gt;
 Query Cover: 88 %&lt;br /&gt;
 E value: 1.25e+02&lt;br /&gt;
 LTNNVNMHWTLPYTVSHVYVNP&lt;br /&gt;
 L   ++ HW +P+T+SH++ +P&lt;br /&gt;
 LAARISQHWCVPFTISHIFDHP&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;If we had used the default E-value cutoff of 10 would any hits have been found?&#039;&#039;:&lt;br /&gt;
:No (note: the default is actually 0.05 now). Note the difference from the nucleotide database searches (whose E-values were typically in the range 1-50): if we had run BLASTN with an E-value threshold of 1000, we would have had many pages of hits for each query sequence.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.4===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&#039;&#039;:&lt;br /&gt;
:The risk of getting a false hit (an unrelated sequence with a &amp;quot;decent&amp;quot; E-value) is much larger when working with DNA sequences. Remember than we used 50 as E-value cut-off for BLASTN, while we used 1000 with BLASTP in order to see any hits at all.&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ===QUESTION 3.1===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we get any significant hits?&#039;&#039;&lt;br /&gt;
:Yes, there are 20 hits with an E-value of &amp;quot;0.0&amp;quot; (&#039;&#039;i.e.&#039;&#039; so small that is is rounded to zero) — and the next hits are also extremely significant. The first hit (S48754) furthermore has a query coverage of 100% and an identity of 100% (this is actually the source of our query).&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What kind of genes (function) do we find?&#039;&#039;&lt;br /&gt;
:All the high-quality hits are alkaline serine proteases from the genera &#039;&#039;Bacillus&#039;&#039; or &#039;&#039;Alkalihalobacillus&#039;&#039; — except some hits that are whole genome sequences.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 3.2===&lt;br /&gt;
Note 1: remember to use the ORF Finder in Virtual Ribosome! Since we are told the sequence is a full-length transcript, we can assume that the START and STOP codons are included and set the ORF finder to &amp;quot;&amp;lt;u&amp;gt;Start codon: Any&amp;lt;/u&amp;gt;&amp;quot; (in this case, it would have given the same result to use  &amp;quot;&amp;lt;u&amp;gt;Start codon: Strict&amp;lt;/u&amp;gt;&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
Note 2: you can choose the standard genetic code (Table 1) or alternatively Table 11 (&amp;lt;u&amp;gt;Bacterial and Plant Plastid&amp;lt;/u&amp;gt;). The only difference is that Table 11 allows some extra, rarely occurring, start codons.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Report your translated protein sequence in FASTA format.&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01_rframe2_ORF&lt;br /&gt;
 MKKPLGKIVASTALLISVAFSSSIASAAEEAKEKYLIGFNEQEAVSEFVEQVEANDEVAI&lt;br /&gt;
 LSEEEEVEIELLHEFETIPVLSVELSPEDVDALELDPAISYIEEDAEVTTMAQSVPWGIS&lt;br /&gt;
 RVQAPAAHNRGLTGSGVKVAVLDTGISTHPDLNIRGGASFVPGEPSTQDGNGHGTHVAGT&lt;br /&gt;
 IAALNNSIGVLGVAPSAELYAVKVLGASGSGSVSSIAQGLEWAGNNGMHVANLSLGSPSP&lt;br /&gt;
 SATLEQAVNSATSRGVLVVAASGNSGAGSISYPARYANAMAVGATDQNNNRASFSQYGAG&lt;br /&gt;
 LDIVAPGVNVQSTYPGSTYASLNGTSMATPHVAGAAALVKQKNPSWSNVQIRNHLKNTAT&lt;br /&gt;
 SLGSTNLYGSGLVNAEAATR&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we find any conserved protein domains?&#039;&#039;:&lt;br /&gt;
:Yes, there is a &amp;quot;Peptidase S8&amp;quot; domain. You can see it by clicking the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab.&lt;br /&gt;
&lt;br /&gt;
[[image:Peptidases_S8.png|center|frame|Conserved protein domains found by the NCBI Blast server]]&lt;br /&gt;
&amp;lt;!-- [[image:NCBI_BLAST_ProtDomains_Updated.JPG|center|frame|Conserved protein domains found by the NCBI Blast server]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we find any significant hits? (E-value?)&#039;&#039;:&lt;br /&gt;
:Yes, a lot. The first many hits have an E-value of 0.0, and hit #100 is still very significant (3e-98) — note that by default, only the top 100 hits are shown!&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Are all the best hits the same category of enzymes?&#039;&#039;:&lt;br /&gt;
:Yes, they are alkaline proteases (except a few that are hypothetical proteins).&lt;br /&gt;
:Note that you can click the Accession code for a hit and go directly to the corresponding entry in the database.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&#039;&#039;:&lt;br /&gt;
:Protein BLAST (BLASTP). If you have very high quality hits, they can be identified by both methods, but if the evolutionary distance is larger, BLASTP is clearly better.&lt;br /&gt;
:Note: Recall from the PyMOL exercises that information between distant genes/proteins are conserved from: Structure &amp;gt; Peptide Sequence &amp;gt; Nucleotide sequence. So when the evolutionary distance is larger, blastp would generally give better hits than blastn.&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===QUESTION 3.1===&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence: &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Subquestion: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
 &amp;gt;CLONE12&lt;br /&gt;
 AACGGGCACGGGACGCATGTAGCTGGAACAGTGGCAGCCGTAAATAATAATGGTATCGGA&lt;br /&gt;
 GTTGCCGGGGTTGCAGGAGGAAACGGCTCTACCAATAGTGGAGCAAGGTTAATGTCCACA&lt;br /&gt;
 CAAATTTTTAATAGTGATGGGGATTATACAAATAGCGAAACTCTTGTGTACAGAGCCATT&lt;br /&gt;
 GTTTATGGTGCAGATAACGGAGCTGTGATCTCGCAAAATAGCTGGGGTAGTCAGTCTCTG&lt;br /&gt;
 ACTATTAAGGAGTTGCAGAAAGCTGCGATCGACTATTTCATTGATTATGCAGGAATGGAC&lt;br /&gt;
 GAAACAGGAGAAATACAGACAGGCCCTATGAGGGGAGGTATATTTATAGCTGCCGCCGGA&lt;br /&gt;
 AACGATAACGTTTCCACTCCAAATATGCCTTCAGCTTATGAACGGGTTTTAGCTGTGGCC&lt;br /&gt;
 TCAATGGGACCAGATTTTACTAAGGCAAGCTATAGCACTTTTGGAACATGGACTGATATT&lt;br /&gt;
 ACTGCTCCTGGCGGAGATATTGACAAATTTGATTTGTCAGAATACGGAGTTCTCAGCACT&lt;br /&gt;
 TATGCCGATAATTATTATGCTTATGGAGAGGGAACATCCATGGCTTGTCCACATGTCGCC&lt;br /&gt;
 GGCGCCGCC&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task: &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Subquestion: Give a summary of your considerations.&#039;&#039;&lt;br /&gt;
**&#039;&#039;Based on the information given: is the sequence protein-coding? &#039;&#039;&lt;br /&gt;
::Yes — we know this because the PCR primers used to clone the sequence target &#039;&#039;&#039;known enzymes&#039;&#039;&#039;. Therefore, it will make sense to try to translate the sequence using Virtual Ribosome.&lt;br /&gt;
:*&#039;&#039;If it is, can you trust it will contain both a START and STOP codon? &#039;&#039;&lt;br /&gt;
::No — the PCR primers used to clone the sequence target &#039;&#039;&#039;the middle of the sequence&#039;&#039;&#039;, in other words we must assume that our sequence is a fragment. Therefore, the ORF finder in Virtual Ribosome should be set to &amp;lt;u&amp;gt;Start codon: None&amp;lt;/u&amp;gt;.&lt;br /&gt;
:*&#039;&#039;Do we know if the sequence is sense or anti-sense? &#039;&#039;&lt;br /&gt;
::No — the PCR process amplifies a stretch of double-stranded DNA. Therefore, we should let Virtual Ribosome search in &#039;&#039;&#039;all 6 reading frames&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
We want to use BLAST to search the large databases. Let&#039;s therefore try the following:&lt;br /&gt;
# BLASTN &lt;br /&gt;
# Translate to protein (using Virtual Ribosome).&lt;br /&gt;
# BLASTP&lt;br /&gt;
Both when doing BLASTN and BLASTP we will use the NR database in order to search as broadly as possible. It would not make sense to use an organism-specific database when we don&#039;t know which organism our sequence stems from.&lt;br /&gt;
&lt;br /&gt;
1) BLASTN. When trying BLASTN against NR we get some borderline significant results, but observe how small the query coverage percentages are (check also the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab!). &lt;br /&gt;
&lt;br /&gt;
[[image:NCBI BlastN_CLONE12 new_version.png]]&lt;br /&gt;
[[image:NCBI BlastN_CLONE12 Graphic Summary.png]]&lt;br /&gt;
&lt;br /&gt;
There is simply nothing in the entire NR database that has enough similarity to our whole query sequence. A search on the DNA level is only suited for finding very close hits.&lt;br /&gt;
&lt;br /&gt;
2) Translate using Virtual Ribosome with the settings we chose under Step 2 above.&lt;br /&gt;
&lt;br /&gt;
The result from the ORF finder:&lt;br /&gt;
 &lt;br /&gt;
 VIRTUAL RIBOSOME&lt;br /&gt;
 ----------------&lt;br /&gt;
 Translation table: Standard SGC0 &lt;br /&gt;
 &lt;br /&gt;
 &amp;gt;CLONE12_rframe1_ORF&lt;br /&gt;
 Reading frame: 1&lt;br /&gt;
 &lt;br /&gt;
     N  G  H  G  T  H  V  A  G  T  V  A  A  V  N  N  N  G  I  G  V  A  G  V  A  G  G  N  G  S  &lt;br /&gt;
 5&#039; AACGGGCACGGGACGCATGTAGCTGGAACAGTGGCAGCCGTAAATAATAATGGTATCGGAGTTGCCGGGGTTGCAGGAGGAAACGGCTCT 90&lt;br /&gt;
    .......................................................................................... &lt;br /&gt;
 &lt;br /&gt;
     T  N  S  G  A  R  L  M  S  T  Q  I  F  N  S  D  G  D  Y  T  N  S  E  T  L  V  Y  R  A  I  &lt;br /&gt;
 5&#039; ACCAATAGTGGAGCAAGGTTAATGTCCACACAAATTTTTAATAGTGATGGGGATTATACAAATAGCGAAACTCTTGTGTACAGAGCCATT 180&lt;br /&gt;
    .....................&amp;gt;&amp;gt;&amp;gt;.................................................................. &lt;br /&gt;
 &lt;br /&gt;
     V  Y  G  A  D  N  G  A  V  I  S  Q  N  S  W  G  S  Q  S  L  T  I  K  E  L  Q  K  A  A  I  &lt;br /&gt;
 5&#039; GTTTATGGTGCAGATAACGGAGCTGTGATCTCGCAAAATAGCTGGGGTAGTCAGTCTCTGACTATTAAGGAGTTGCAGAAAGCTGCGATC 270&lt;br /&gt;
    .........................................................)))............)))............... &lt;br /&gt;
 &lt;br /&gt;
     D  Y  F  I  D  Y  A  G  M  D  E  T  G  E  I  Q  T  G  P  M  R  G  G  I  F  I  A  A  A  G  &lt;br /&gt;
 5&#039; GACTATTTCATTGATTATGCAGGAATGGACGAAACAGGAGAAATACAGACAGGCCCTATGAGGGGAGGTATATTTATAGCTGCCGCCGGA 360&lt;br /&gt;
    ........................&amp;gt;&amp;gt;&amp;gt;..............................&amp;gt;&amp;gt;&amp;gt;.............................. &lt;br /&gt;
 &lt;br /&gt;
     N  D  N  V  S  T  P  N  M  P  S  A  Y  E  R  V  L  A  V  A  S  M  G  P  D  F  T  K  A  S  &lt;br /&gt;
 5&#039; AACGATAACGTTTCCACTCCAAATATGCCTTCAGCTTATGAACGGGTTTTAGCTGTGGCCTCAATGGGACCAGATTTTACTAAGGCAAGC 450&lt;br /&gt;
    ........................&amp;gt;&amp;gt;&amp;gt;....................................&amp;gt;&amp;gt;&amp;gt;........................ &lt;br /&gt;
 &lt;br /&gt;
     Y  S  T  F  G  T  W  T  D  I  T  A  P  G  G  D  I  D  K  F  D  L  S  E  Y  G  V  L  S  T  &lt;br /&gt;
 5&#039; TATAGCACTTTTGGAACATGGACTGATATTACTGCTCCTGGCGGAGATATTGACAAATTTGATTTGTCAGAATACGGAGTTCTCAGCACT 540&lt;br /&gt;
    ...............................................................)))........................ &lt;br /&gt;
 &lt;br /&gt;
     Y  A  D  N  Y  Y  A  Y  G  E  G  T  S  M  A  C  P  H  V  A  G  A  A  &lt;br /&gt;
 5&#039; TATGCCGATAATTATTATGCTTATGGAGAGGGAACATCCATGGCTTGTCCACATGTCGCCGGCGCCGCC 609&lt;br /&gt;
    .......................................&amp;gt;&amp;gt;&amp;gt;........................... &lt;br /&gt;
&lt;br /&gt;
(&#039;&#039;&#039;Tip:&#039;&#039;&#039; Remember that you can get the sequence in FASTA format via the &amp;lt;u&amp;gt;FASTA&amp;lt;/u&amp;gt; link on the result page):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;CLONE12_rframe1_ORF&lt;br /&gt;
 NGHGTHVAGTVAAVNNNGIGVAGVAGGNGSTNSGARLMSTQIFNSDGDYTNSETLVYRAI&lt;br /&gt;
 VYGADNGAVISQNSWGSQSLTIKELQKAAIDYFIDYAGMDETGEIQTGPMRGGIFIAAAG&lt;br /&gt;
 NDNVSTPNMPSAYERVLAVASMGPDFTKASYSTFGTWTDITAPGGDIDKFDLSEYGVLST&lt;br /&gt;
 YADNYYAYGEGTSMACPHVAGAA&lt;br /&gt;
&lt;br /&gt;
3) BLASTP&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- The first thing we notice (already while the search is running) is that there is a &amp;quot;Peptidases_S8_S53&amp;quot; domain. This is a very strong indicator of the function. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We get several very significant hits. When looking at the top hits and disregarding &amp;quot;hypothetical&amp;quot; and &amp;quot;uncharacterized&amp;quot; proteins, we can see that the rest are almost all serine proteases. Some of them are described as belonging to the of the S8 family.&lt;br /&gt;
&lt;br /&gt;
[[image:NCBI BlastP_CLONE12_rframe1_ORF new version.png]]&lt;br /&gt;
&lt;br /&gt;
Let&#039;s take a closer look at the first hit that is not &amp;quot;uncharacterized&amp;quot;:&lt;br /&gt;
[[image:NCBI_BlastP_CLONE12_best_hit.png]]&lt;br /&gt;
&lt;br /&gt;
Note that although it is not a perfect hit (our query sequence not existing in the database) it looks reasonable: the alignment covers a large part of the query with Identity of 54% and Similarity (Positives) of 69%.&lt;br /&gt;
&lt;br /&gt;
Taken together with the fact that almost all the best non-hypothetical hits are serine proteases, we have a very strong indication that our mystery sequence, CLONE12, is a peptidase or protease of the S8 family.&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.1===&lt;br /&gt;
&#039;&#039;What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
They are nearly identical (&amp;quot;one of two nearly identical (see also HTA1) subtypes&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
Protein sequence: &lt;br /&gt;
 &amp;gt;YBL003C  &lt;br /&gt;
 MSGGKGGKAGSAAKASQSRSAKAGLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTAVLEYL&lt;br /&gt;
 AAEILELAGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPK&lt;br /&gt;
 KSAKTAKASQEL*&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.2===&lt;br /&gt;
*&#039;&#039;How many high-confidence hits do we get?&#039;&#039;:&lt;br /&gt;
:3 — HTA1, HTA2 and HTZ1.&lt;br /&gt;
:Note: If you click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links for the two top hits, you will see that one is HTA1 and the other is HTA2.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&#039;&#039;:&lt;br /&gt;
:Yes; HTA1 and HTA2 are indeed nearly identical (only 2 amino acids differ).&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.3===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found?&#039;&#039;&lt;br /&gt;
:Answer: 29.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
Lad os ligesom før kræve at hits skal have en e-value på 1e-10 eller bedre (mindre) for at vi regner det for pålideligt. Dette passer også fint med, at disse hits er enige om at der er tale om en histon.&lt;br /&gt;
&lt;br /&gt;
Som udgangspunkt er der derfor 26 gode hits. Man kan dog godt argumentere for at man skal passe på hits der kun har en forudsagt funktion (&amp;quot;PREDICTED&amp;quot;) - dem har vi en enkelt af. Som det også ses er der en række af hits&#039;ne der dækker over variationer af samme protein (fx alle dem der hedder: &amp;lt;tt&amp;gt;histone H2A type-XYZ&amp;lt;/tt&amp;gt;). Det er ikke altid at alle detaljerne kommer med i den korte form af overskrifter - nogen gange kan det være nødvendigt mauelt at inspicere et hit (klikke på link&#039;et og læse hvad der står af information i det bagvedliggende database entry).&lt;br /&gt;
&lt;br /&gt;
Lad os arbejde videre med alle 26 gode hits i de næste analyser.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;These protein originates from a number of genes - but how many UNIQUE genes?&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Svar: Trick&#039;et er her af en del af hits&#039;ne er fra isoformer af det sammen protein. Et protein med to isofomer stammer stadig kun fra en enkelt gen&lt;br /&gt;
&lt;br /&gt;
Lad os fx kigge på følgende hits:&lt;br /&gt;
&lt;br /&gt;
 ref|NP_613075.1|  core histone macro-H2A.1 isoform 1 [Homo sap...   152    7e-38&lt;br /&gt;
 ref|NP_004884.1|  core histone macro-H2A.1 isoform 2 [Homo sap...   152    8e-38&lt;br /&gt;
&lt;br /&gt;
Hvis man gå ind og læser sekvens-entry&#039;et for disse hits kan man faktisk direkte se, at de stammer fra sammen gen (/gene=&amp;quot;H2AFY&amp;quot;, /gene=&amp;quot;H2AFY&amp;quot;). BEMÆRK: Her er vi heldige og alt den information vi har burg for står faktisk i overskrifterne.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
En hurtig optælling afslører følgende isoformet i vores set af BLAST hits:&lt;br /&gt;
&lt;br /&gt;
 ref|NP_613075.1|  core histone macro-H2A.1 isoform 1 [Homo sap...   152    7e-38&lt;br /&gt;
 ref|NP_004884.1|  core histone macro-H2A.1 isoform 2 [Homo sap...   152    8e-38&lt;br /&gt;
 ref|NP_613258.2|  core histone macro-H2A.1 isoform 3 [Homo sap...   152    8e-38&lt;br /&gt;
&lt;br /&gt;
 ref|NP_036544.1|  histone H2A.V isoform 1 [Homo sapiens]            133    4e-32&lt;br /&gt;
 ref|NP_619541.1|  histone H2A.V isoform 2 [Homo sapiens]            114    2e-26&lt;br /&gt;
 ref|NP_958844.1|  histone H2A.V isoform 3 [Homo sapiens]            112    8e-26&lt;br /&gt;
 ref|NP_958925.1|  histone H2A.V isoform 5 [Homo sapiens]           75.9    8e-15&lt;br /&gt;
 ref|NP_958924.1|  histone H2A.V isoform 4 [Homo sapiens]           62.8    7e-11&lt;br /&gt;
&lt;br /&gt;
Dvs at vi i alt har 27 - 2 - 4 = 21 unikke hits til gener.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===QUESTION 4.4===&lt;br /&gt;
&#039;&#039;&#039;Langt svar&#039;&#039;&#039;: Et lavt komplekst område er et stykke sekvens der ikke indeholder særligt meget information (fx. TTTTAAAA i human – findes milioner af gange i genomet).&lt;br /&gt;
&lt;br /&gt;
BLAST har et indbygget filter der masker disse områder ud i søgningen.&lt;br /&gt;
&lt;br /&gt;
Ud over at kunne slå det til og fra – har NCBI valgt et tredie mulighed (som default) – slå det fra men at vise hvor områderne er (små bogstaver):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  194 bits (494),  Expect = 1e-50, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 96/125 (76%), Positives = 108/125 (86%), Gaps = 0/125 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  4    gkggkagsaakasqsrsakagLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTavleylaae  63&lt;br /&gt;
             G+G + G A   ++SRS++AGL FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AE&lt;br /&gt;
 Sbjct  3    GRGKQGGKARAKAKSRSSRAGLQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAE  62&lt;br /&gt;
 &lt;br /&gt;
 Query  64   ilelaGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSA  123&lt;br /&gt;
             ILELAGNAARDNKKTRIIPRHLQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+ &lt;br /&gt;
 Sbjct  63   ILELAGNAARDNKKTRIIPRHLQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTE  122&lt;br /&gt;
 &lt;br /&gt;
 Query  124  KTAKA  128&lt;br /&gt;
                KA&lt;br /&gt;
 Sbjct  123  SHHKA  127&lt;br /&gt;
&lt;br /&gt;
Hvis man gentager søgningen med filteret slået til giver det følgende (jeg har også valgt at viser X’er i det filtrerede område – hvilket NORMALT er standard i BLAST):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  147 bits (372),  Expect = 2e-36, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 87/104 (83%), Positives = 93/104 (89%), Gaps = 0/104 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  25   LTFPVGRVHRLLRRGNYAQRIGSGAPVYLTXXXXXXXXXXXXXXGNAARDNKKTRIIPRH  84&lt;br /&gt;
             L FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AEILELAGNAARDNKKTRIIPRH&lt;br /&gt;
 Sbjct  24   LQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAEILELAGNAARDNKKTRIIPRH  83&lt;br /&gt;
 &lt;br /&gt;
 Query  85   LQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSAKTAKA  128&lt;br /&gt;
             LQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+    KA&lt;br /&gt;
 Sbjct  84   LQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTESHHKA  127&lt;br /&gt;
&lt;br /&gt;
Bemærk det kortere alignment og den ændrede E-værdi. &lt;br /&gt;
&lt;br /&gt;
Hvis man eksplicit slår filteret fra, ser resultatet således ud:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  194 bits (494),  Expect = 1e-50, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 96/125 (76%), Positives = 108/125 (86%), Gaps = 0/125 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  4    GKGGKAGSAAKASQSRSAKAGLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTAVLEYLAAE  63&lt;br /&gt;
             G+G + G A   ++SRS++AGL FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AE&lt;br /&gt;
 Sbjct  3    GRGKQGGKARAKAKSRSSRAGLQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAE  62&lt;br /&gt;
 &lt;br /&gt;
 Query  64   ILELAGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSA  123&lt;br /&gt;
             ILELAGNAARDNKKTRIIPRHLQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+ &lt;br /&gt;
 Sbjct  63   ILELAGNAARDNKKTRIIPRHLQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTE  122&lt;br /&gt;
 &lt;br /&gt;
 Query  124  KTAKA  128&lt;br /&gt;
                KA&lt;br /&gt;
 Sbjct  123  SHHKA  127&lt;br /&gt;
&lt;br /&gt;
Præcis samme længde, e-værdi mm. som i det første alignment.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kort svar&#039;&#039;&#039;: Ja, alignmentet bliver kortere når low-complexity filteret er slået til.&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=ExBlast-Answers_new&amp;diff=1086</id>
		<title>ExBlast-Answers new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=ExBlast-Answers_new&amp;diff=1086"/>
		<updated>2026-09-21T16:23:59Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* QUESTION 2.1 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Answers to the BLAST exercise. Values for database sizes etc. retrieved&lt;br /&gt;
September 21, 2026&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.1===&lt;br /&gt;
The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.2===&lt;br /&gt;
* &#039;&#039;Which database did you use?&#039;&#039; &lt;br /&gt;
:core_nt&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:J00336.1 (Note that the latter was also part of the sequence name for your query sequence!)&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;Max score in bits&amp;quot;)?&#039;&#039;&lt;br /&gt;
:The max score is 708 bits &lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:100% and 100%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:0.0 (actually, a number so small that it is rounded off to 0.0)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:No, of course not, since the sequences are identical&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.3===&lt;br /&gt;
* &#039;&#039;Which database did you use?&#039;&#039; &lt;br /&gt;
:core_nt&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:NM_000207.3&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;max score&amp;quot;)?&#039;&#039;&lt;br /&gt;
:603&lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:identity: 94.34% and query coverage: 99%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:7e-168 (meaning 7&amp;amp;times;10&amp;lt;sup&amp;gt;-168&amp;lt;/sup&amp;gt;)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:No&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.4===&lt;br /&gt;
* &#039;&#039;Which database did you use?&#039;&#039; &lt;br /&gt;
:Human G+T (2 databases)&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:NM_000207.3, they have the same score and are therefore equally good. Note that these are among the equally good hits found in the previous question.&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;max score&amp;quot;)?&#039;&#039;&lt;br /&gt;
:603&lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:identity: 94.34% and query coverage: 99%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:3e-170 (meaning 3&amp;amp;times;10&amp;lt;sup&amp;gt;-170&amp;lt;/sup&amp;gt;)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:No&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.5===&lt;br /&gt;
&#039;&#039;What are the sizes (in basepairs) of the databases we used for the two BLAST searches?&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
nt(Human): 1,081,933,534,067 letters (= basepairs), Human G+T: 4,017,001,775 letters (= basepairs).&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.6===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the ratio between the database sizes in the two BLAST searches?&#039;&#039;&lt;br /&gt;
: 1,081,933,534,067 / 4,017,001,775 = &amp;lt;u&amp;gt;~269&amp;lt;/u&amp;gt;&lt;br /&gt;
*&#039;&#039;What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &#039;&#039;&lt;br /&gt;
:7e-168 / 3e-170 = &amp;lt;u&amp;gt;~233&amp;lt;/u&amp;gt;&lt;br /&gt;
:Note: since the E-values have only three significant digits, you cannot expect to get the exact same result.&lt;br /&gt;
:Also note, you can google &amp;quot;7e-168 / 3e-170&amp;quot; directly and the answer will show up in the results.&lt;br /&gt;
*&#039;&#039;What is the relationship between database size and E-value for hits with identical alignment score?&#039;&#039;&lt;br /&gt;
:The E-value is directly proportional to the database size. &lt;br /&gt;
:Note: Conceptually this means that an alignment within the given score (603 bits) is more SIGNIFICANT in the smaller database. In larger database there is a larger chance of randomly picking up matches.&lt;br /&gt;
*&#039;&#039;In conclusion: if the database size is doubled, what will happen to the E-value?&#039;&#039;&lt;br /&gt;
:Each time the database size doubles, the E-value doubles as well.&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.1===&lt;br /&gt;
&lt;br /&gt;
 ****Alignment**** 1&lt;br /&gt;
 Title: gi|2440392781|emb|OX421481.1| Eilema caniola genome assembly, chromosome: 20&lt;br /&gt;
 Accession: OX421481&lt;br /&gt;
 Length: 22119023&lt;br /&gt;
 Max Score: 44.0&lt;br /&gt;
 Bits: 40.9604&lt;br /&gt;
 Identities: 22&lt;br /&gt;
 Align_length: 22&lt;br /&gt;
 Gaps: 0&lt;br /&gt;
 %Ident: 100.00 %&lt;br /&gt;
 Query Cover: 88 %&lt;br /&gt;
 E value: 1.88e+00&lt;br /&gt;
 TTCTGAAAGGTCCTCTCGATAC&lt;br /&gt;
 ||||||||||||||||||||||&lt;br /&gt;
 TTCTGAAAGGTCCTCTCGATAC&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the typical length of the hits (the alignment length)?&#039;&#039;:&lt;br /&gt;
:Typically around 17-24 base pairs.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the typical % identity?&#039;&#039;:&lt;br /&gt;
:90% - 100%&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;In what range are the bit-scores (&amp;quot;max score)?&#039;&#039;:&lt;br /&gt;
:typically 30-40 bits.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the range of the E-values?&#039;&#039;:&lt;br /&gt;
:1-15&lt;br /&gt;
:usually varying from 1 to 50 (occasionally, you might find hits as &amp;quot;good&amp;quot; as 0.1).&lt;br /&gt;
:&#039;&#039;&#039;Note&#039;&#039;&#039;: we chose to use an E-value threshold of 50.0. The default is 0.05.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.2===&lt;br /&gt;
&#039;&#039;What is the biological significance of the hits you found / is there any biological meaning?&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
This makes absolutely NO biological sense(!) The hits are real enough as such, they represent sequences that actually are in the database. But we know that our query sequences are completely random and therefore have no evolutionary relationship with the hits. The only reason we found our hits is that the database is so vast that we for for purely stochastic reasons happen upon sequences that are similar.&lt;br /&gt;
&lt;br /&gt;
The E-values tell us precisely this: As described in the BLAST lecture, the alignment score will follow an extreme value distribution for those sequences that are not related to our query sequences, and the E-value is &#039;&#039;the expected number&#039;&#039; of spurious (unrelated) hits with the given alignment score or better, given the database size.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; Don&#039;t be confused by the difference between alignment score and bit score; bit score is simply the alignment score normalized by a constant factor which gives a result expressible in bits.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.3===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
*&#039;&#039;How big is the database this time? &#039;&#039;:&lt;br /&gt;
:Number of letters (amino acids): 243,461,748,389&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
*&#039;&#039;What is the typical length of the alignment and do they contain gaps?&#039;&#039;:&lt;br /&gt;
:Typically 15-22. Rarely gaps, but several mismatches.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the range of E-values?&#039;&#039;:&lt;br /&gt;
:Typically 100-1000 &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar) - do you find any that look plausible, if we for a moment ignore the length/E-value?&#039;&#039;&lt;br /&gt;
:Yes, maybe. See &#039;&#039;e.g.&#039;&#039; the alignment below, it has 77% identities (but it is way too short to be significant, as the E-value tells us).&lt;br /&gt;
&lt;br /&gt;
 ****Alignment**** 1&lt;br /&gt;
 Title: ref|WP_179589105.1| non-ribosomal peptide synthetase [Pigmentiphaga litoralis] &amp;gt;gb|NYE25977.1| amino acid adenylation domain-containing protein [Pigmentiphaga litoralis] &amp;gt;gb|NYE85097.1| amino acid adenylation domain- containing protein [Pigmentiphaga litoralis]&lt;br /&gt;
 Accession: WP_179589105&lt;br /&gt;
 Length: 1782&lt;br /&gt;
 Max Score: 67.0&lt;br /&gt;
 Bits: 30.4166&lt;br /&gt;
 Identities: 8&lt;br /&gt;
 Align_length: 22&lt;br /&gt;
 Gaps: 0&lt;br /&gt;
 %Ident: 36.36 %&lt;br /&gt;
 Query Cover: 88 %&lt;br /&gt;
 E value: 1.25e+02&lt;br /&gt;
 LTNNVNMHWTLPYTVSHVYVNP&lt;br /&gt;
 L   ++ HW +P+T+SH++ +P&lt;br /&gt;
 LAARISQHWCVPFTISHIFDHP&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;If we had used the default E-value cutoff of 10 would any hits have been found?&#039;&#039;:&lt;br /&gt;
:No (note: the default is actually 0.05 now). Note the difference from the nucleotide database searches (whose E-values were typically in the range 1-50): if we had run BLASTN with an E-value threshold of 1000, we would have had many pages of hits for each query sequence.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.4===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&#039;&#039;:&lt;br /&gt;
:The risk of getting a false hit (an unrelated sequence with a &amp;quot;decent&amp;quot; E-value) is much larger when working with DNA sequences. Remember than we used 50 as E-value cut-off for BLASTN, while we used 1000 with BLASTP in order to see any hits at all.&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ===QUESTION 3.1===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we get any significant hits?&#039;&#039;&lt;br /&gt;
:Yes, there are 20 hits with an E-value of &amp;quot;0.0&amp;quot; (&#039;&#039;i.e.&#039;&#039; so small that is is rounded to zero) — and the next hits are also extremely significant. The first hit (S48754) furthermore has a query coverage of 100% and an identity of 100% (this is actually the source of our query).&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What kind of genes (function) do we find?&#039;&#039;&lt;br /&gt;
:All the high-quality hits are alkaline serine proteases from the genera &#039;&#039;Bacillus&#039;&#039; or &#039;&#039;Alkalihalobacillus&#039;&#039; — except some hits that are whole genome sequences.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 3.2===&lt;br /&gt;
Note 1: remember to use the ORF Finder in Virtual Ribosome! Since we are told the sequence is a full-length transcript, we can assume that the START and STOP codons are included and set the ORF finder to &amp;quot;&amp;lt;u&amp;gt;Start codon: Any&amp;lt;/u&amp;gt;&amp;quot; (in this case, it would have given the same result to use  &amp;quot;&amp;lt;u&amp;gt;Start codon: Strict&amp;lt;/u&amp;gt;&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
Note 2: you can choose the standard genetic code (Table 1) or alternatively Table 11 (&amp;lt;u&amp;gt;Bacterial and Plant Plastid&amp;lt;/u&amp;gt;). The only difference is that Table 11 allows some extra, rarely occurring, start codons.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Report your translated protein sequence in FASTA format.&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01_rframe2_ORF&lt;br /&gt;
 MKKPLGKIVASTALLISVAFSSSIASAAEEAKEKYLIGFNEQEAVSEFVEQVEANDEVAI&lt;br /&gt;
 LSEEEEVEIELLHEFETIPVLSVELSPEDVDALELDPAISYIEEDAEVTTMAQSVPWGIS&lt;br /&gt;
 RVQAPAAHNRGLTGSGVKVAVLDTGISTHPDLNIRGGASFVPGEPSTQDGNGHGTHVAGT&lt;br /&gt;
 IAALNNSIGVLGVAPSAELYAVKVLGASGSGSVSSIAQGLEWAGNNGMHVANLSLGSPSP&lt;br /&gt;
 SATLEQAVNSATSRGVLVVAASGNSGAGSISYPARYANAMAVGATDQNNNRASFSQYGAG&lt;br /&gt;
 LDIVAPGVNVQSTYPGSTYASLNGTSMATPHVAGAAALVKQKNPSWSNVQIRNHLKNTAT&lt;br /&gt;
 SLGSTNLYGSGLVNAEAATR&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we find any conserved protein domains?&#039;&#039;:&lt;br /&gt;
:Yes, there is a &amp;quot;Peptidase S8&amp;quot; domain. You can see it by clicking the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab.&lt;br /&gt;
&lt;br /&gt;
[[image:Peptidases_S8.png|center|frame|Conserved protein domains found by the NCBI Blast server]]&lt;br /&gt;
&amp;lt;!-- [[image:NCBI_BLAST_ProtDomains_Updated.JPG|center|frame|Conserved protein domains found by the NCBI Blast server]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we find any significant hits? (E-value?)&#039;&#039;:&lt;br /&gt;
:Yes, a lot. The first many hits have an E-value of 0.0, and hit #100 is still very significant (3e-98) — note that by default, only the top 100 hits are shown!&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Are all the best hits the same category of enzymes?&#039;&#039;:&lt;br /&gt;
:Yes, they are alkaline proteases (except a few that are hypothetical proteins).&lt;br /&gt;
:Note that you can click the Accession code for a hit and go directly to the corresponding entry in the database.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&#039;&#039;:&lt;br /&gt;
:Protein BLAST (BLASTP). If you have very high quality hits, they can be identified by both methods, but if the evolutionary distance is larger, BLASTP is clearly better.&lt;br /&gt;
:Note: Recall from the PyMOL exercises that information between distant genes/proteins are conserved from: Structure &amp;gt; Peptide Sequence &amp;gt; Nucleotide sequence. So when the evolutionary distance is larger, blastp would generally give better hits than blastn.&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===QUESTION 3.1===&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence: &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Subquestion: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
 &amp;gt;CLONE12&lt;br /&gt;
 AACGGGCACGGGACGCATGTAGCTGGAACAGTGGCAGCCGTAAATAATAATGGTATCGGA&lt;br /&gt;
 GTTGCCGGGGTTGCAGGAGGAAACGGCTCTACCAATAGTGGAGCAAGGTTAATGTCCACA&lt;br /&gt;
 CAAATTTTTAATAGTGATGGGGATTATACAAATAGCGAAACTCTTGTGTACAGAGCCATT&lt;br /&gt;
 GTTTATGGTGCAGATAACGGAGCTGTGATCTCGCAAAATAGCTGGGGTAGTCAGTCTCTG&lt;br /&gt;
 ACTATTAAGGAGTTGCAGAAAGCTGCGATCGACTATTTCATTGATTATGCAGGAATGGAC&lt;br /&gt;
 GAAACAGGAGAAATACAGACAGGCCCTATGAGGGGAGGTATATTTATAGCTGCCGCCGGA&lt;br /&gt;
 AACGATAACGTTTCCACTCCAAATATGCCTTCAGCTTATGAACGGGTTTTAGCTGTGGCC&lt;br /&gt;
 TCAATGGGACCAGATTTTACTAAGGCAAGCTATAGCACTTTTGGAACATGGACTGATATT&lt;br /&gt;
 ACTGCTCCTGGCGGAGATATTGACAAATTTGATTTGTCAGAATACGGAGTTCTCAGCACT&lt;br /&gt;
 TATGCCGATAATTATTATGCTTATGGAGAGGGAACATCCATGGCTTGTCCACATGTCGCC&lt;br /&gt;
 GGCGCCGCC&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task: &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Subquestion: Give a summary of your considerations.&#039;&#039;&lt;br /&gt;
**&#039;&#039;Based on the information given: is the sequence protein-coding? &#039;&#039;&lt;br /&gt;
::Yes — we know this because the PCR primers used to clone the sequence target &#039;&#039;&#039;known enzymes&#039;&#039;&#039;. Therefore, it will make sense to try to translate the sequence using Virtual Ribosome.&lt;br /&gt;
:*&#039;&#039;If it is, can you trust it will contain both a START and STOP codon? &#039;&#039;&lt;br /&gt;
::No — the PCR primers used to clone the sequence target &#039;&#039;&#039;the middle of the sequence&#039;&#039;&#039;, in other words we must assume that our sequence is a fragment. Therefore, the ORF finder in Virtual Ribosome should be set to &amp;lt;u&amp;gt;Start codon: None&amp;lt;/u&amp;gt;.&lt;br /&gt;
:*&#039;&#039;Do we know if the sequence is sense or anti-sense? &#039;&#039;&lt;br /&gt;
::No — the PCR process amplifies a stretch of double-stranded DNA. Therefore, we should let Virtual Ribosome search in &#039;&#039;&#039;all 6 reading frames&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
We want to use BLAST to search the large databases. Let&#039;s therefore try the following:&lt;br /&gt;
# BLASTN &lt;br /&gt;
# Translate to protein (using Virtual Ribosome).&lt;br /&gt;
# BLASTP&lt;br /&gt;
Both when doing BLASTN and BLASTP we will use the NR database in order to search as broadly as possible. It would not make sense to use an organism-specific database when we don&#039;t know which organism our sequence stems from.&lt;br /&gt;
&lt;br /&gt;
1) BLASTN. When trying BLASTN against NR we get some borderline significant results, but observe how small the query coverage percentages are (check also the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab!). &lt;br /&gt;
&lt;br /&gt;
[[image:NCBI BlastN_CLONE12 new_version.png]]&lt;br /&gt;
[[image:NCBI BlastN_CLONE12 Graphic Summary.png]]&lt;br /&gt;
&lt;br /&gt;
There is simply nothing in the entire NR database that has enough similarity to our whole query sequence. A search on the DNA level is only suited for finding very close hits.&lt;br /&gt;
&lt;br /&gt;
2) Translate using Virtual Ribosome with the settings we chose under Step 2 above.&lt;br /&gt;
&lt;br /&gt;
The result from the ORF finder:&lt;br /&gt;
 &lt;br /&gt;
 VIRTUAL RIBOSOME&lt;br /&gt;
 ----------------&lt;br /&gt;
 Translation table: Standard SGC0 &lt;br /&gt;
 &lt;br /&gt;
 &amp;gt;CLONE12_rframe1_ORF&lt;br /&gt;
 Reading frame: 1&lt;br /&gt;
 &lt;br /&gt;
     N  G  H  G  T  H  V  A  G  T  V  A  A  V  N  N  N  G  I  G  V  A  G  V  A  G  G  N  G  S  &lt;br /&gt;
 5&#039; AACGGGCACGGGACGCATGTAGCTGGAACAGTGGCAGCCGTAAATAATAATGGTATCGGAGTTGCCGGGGTTGCAGGAGGAAACGGCTCT 90&lt;br /&gt;
    .......................................................................................... &lt;br /&gt;
 &lt;br /&gt;
     T  N  S  G  A  R  L  M  S  T  Q  I  F  N  S  D  G  D  Y  T  N  S  E  T  L  V  Y  R  A  I  &lt;br /&gt;
 5&#039; ACCAATAGTGGAGCAAGGTTAATGTCCACACAAATTTTTAATAGTGATGGGGATTATACAAATAGCGAAACTCTTGTGTACAGAGCCATT 180&lt;br /&gt;
    .....................&amp;gt;&amp;gt;&amp;gt;.................................................................. &lt;br /&gt;
 &lt;br /&gt;
     V  Y  G  A  D  N  G  A  V  I  S  Q  N  S  W  G  S  Q  S  L  T  I  K  E  L  Q  K  A  A  I  &lt;br /&gt;
 5&#039; GTTTATGGTGCAGATAACGGAGCTGTGATCTCGCAAAATAGCTGGGGTAGTCAGTCTCTGACTATTAAGGAGTTGCAGAAAGCTGCGATC 270&lt;br /&gt;
    .........................................................)))............)))............... &lt;br /&gt;
 &lt;br /&gt;
     D  Y  F  I  D  Y  A  G  M  D  E  T  G  E  I  Q  T  G  P  M  R  G  G  I  F  I  A  A  A  G  &lt;br /&gt;
 5&#039; GACTATTTCATTGATTATGCAGGAATGGACGAAACAGGAGAAATACAGACAGGCCCTATGAGGGGAGGTATATTTATAGCTGCCGCCGGA 360&lt;br /&gt;
    ........................&amp;gt;&amp;gt;&amp;gt;..............................&amp;gt;&amp;gt;&amp;gt;.............................. &lt;br /&gt;
 &lt;br /&gt;
     N  D  N  V  S  T  P  N  M  P  S  A  Y  E  R  V  L  A  V  A  S  M  G  P  D  F  T  K  A  S  &lt;br /&gt;
 5&#039; AACGATAACGTTTCCACTCCAAATATGCCTTCAGCTTATGAACGGGTTTTAGCTGTGGCCTCAATGGGACCAGATTTTACTAAGGCAAGC 450&lt;br /&gt;
    ........................&amp;gt;&amp;gt;&amp;gt;....................................&amp;gt;&amp;gt;&amp;gt;........................ &lt;br /&gt;
 &lt;br /&gt;
     Y  S  T  F  G  T  W  T  D  I  T  A  P  G  G  D  I  D  K  F  D  L  S  E  Y  G  V  L  S  T  &lt;br /&gt;
 5&#039; TATAGCACTTTTGGAACATGGACTGATATTACTGCTCCTGGCGGAGATATTGACAAATTTGATTTGTCAGAATACGGAGTTCTCAGCACT 540&lt;br /&gt;
    ...............................................................)))........................ &lt;br /&gt;
 &lt;br /&gt;
     Y  A  D  N  Y  Y  A  Y  G  E  G  T  S  M  A  C  P  H  V  A  G  A  A  &lt;br /&gt;
 5&#039; TATGCCGATAATTATTATGCTTATGGAGAGGGAACATCCATGGCTTGTCCACATGTCGCCGGCGCCGCC 609&lt;br /&gt;
    .......................................&amp;gt;&amp;gt;&amp;gt;........................... &lt;br /&gt;
&lt;br /&gt;
(&#039;&#039;&#039;Tip:&#039;&#039;&#039; Remember that you can get the sequence in FASTA format via the &amp;lt;u&amp;gt;FASTA&amp;lt;/u&amp;gt; link on the result page):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;CLONE12_rframe1_ORF&lt;br /&gt;
 NGHGTHVAGTVAAVNNNGIGVAGVAGGNGSTNSGARLMSTQIFNSDGDYTNSETLVYRAI&lt;br /&gt;
 VYGADNGAVISQNSWGSQSLTIKELQKAAIDYFIDYAGMDETGEIQTGPMRGGIFIAAAG&lt;br /&gt;
 NDNVSTPNMPSAYERVLAVASMGPDFTKASYSTFGTWTDITAPGGDIDKFDLSEYGVLST&lt;br /&gt;
 YADNYYAYGEGTSMACPHVAGAA&lt;br /&gt;
&lt;br /&gt;
3) BLASTP&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- The first thing we notice (already while the search is running) is that there is a &amp;quot;Peptidases_S8_S53&amp;quot; domain. This is a very strong indicator of the function. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We get several very significant hits. When looking at the top hits and disregarding &amp;quot;hypothetical&amp;quot; and &amp;quot;uncharacterized&amp;quot; proteins, we can see that the rest are almost all serine proteases. Some of them are described as belonging to the of the S8 family.&lt;br /&gt;
&lt;br /&gt;
[[image:NCBI BlastP_CLONE12_rframe1_ORF new version.png]]&lt;br /&gt;
&lt;br /&gt;
Let&#039;s take a closer look at the first hit that is not &amp;quot;uncharacterized&amp;quot;:&lt;br /&gt;
[[image:NCBI_BlastP_CLONE12_best_hit.png]]&lt;br /&gt;
&lt;br /&gt;
Note that although it is not a perfect hit (our query sequence not existing in the database) it looks reasonable: the alignment covers a large part of the query with Identity of 54% and Similarity (Positives) of 69%.&lt;br /&gt;
&lt;br /&gt;
Taken together with the fact that almost all the best non-hypothetical hits are serine proteases, we have a very strong indication that our mystery sequence, CLONE12, is a peptidase or protease of the S8 family.&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.1===&lt;br /&gt;
&#039;&#039;What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
They are nearly identical (&amp;quot;one of two nearly identical (see also HTA1) subtypes&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
Protein sequence: &lt;br /&gt;
 &amp;gt;YBL003C  &lt;br /&gt;
 MSGGKGGKAGSAAKASQSRSAKAGLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTAVLEYL&lt;br /&gt;
 AAEILELAGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPK&lt;br /&gt;
 KSAKTAKASQEL*&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.2===&lt;br /&gt;
*&#039;&#039;How many high-confidence hits do we get?&#039;&#039;:&lt;br /&gt;
:3 — HTA1, HTA2 and HTZ1.&lt;br /&gt;
:Note: If you click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links for the two top hits, you will see that one is HTA1 and the other is HTA2.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&#039;&#039;:&lt;br /&gt;
:Yes; HTA1 and HTA2 are indeed nearly identical (only 2 amino acids differ).&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.3===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found?&#039;&#039;&lt;br /&gt;
:Answer: 29.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
Lad os ligesom før kræve at hits skal have en e-value på 1e-10 eller bedre (mindre) for at vi regner det for pålideligt. Dette passer også fint med, at disse hits er enige om at der er tale om en histon.&lt;br /&gt;
&lt;br /&gt;
Som udgangspunkt er der derfor 26 gode hits. Man kan dog godt argumentere for at man skal passe på hits der kun har en forudsagt funktion (&amp;quot;PREDICTED&amp;quot;) - dem har vi en enkelt af. Som det også ses er der en række af hits&#039;ne der dækker over variationer af samme protein (fx alle dem der hedder: &amp;lt;tt&amp;gt;histone H2A type-XYZ&amp;lt;/tt&amp;gt;). Det er ikke altid at alle detaljerne kommer med i den korte form af overskrifter - nogen gange kan det være nødvendigt mauelt at inspicere et hit (klikke på link&#039;et og læse hvad der står af information i det bagvedliggende database entry).&lt;br /&gt;
&lt;br /&gt;
Lad os arbejde videre med alle 26 gode hits i de næste analyser.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;These protein originates from a number of genes - but how many UNIQUE genes?&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Svar: Trick&#039;et er her af en del af hits&#039;ne er fra isoformer af det sammen protein. Et protein med to isofomer stammer stadig kun fra en enkelt gen&lt;br /&gt;
&lt;br /&gt;
Lad os fx kigge på følgende hits:&lt;br /&gt;
&lt;br /&gt;
 ref|NP_613075.1|  core histone macro-H2A.1 isoform 1 [Homo sap...   152    7e-38&lt;br /&gt;
 ref|NP_004884.1|  core histone macro-H2A.1 isoform 2 [Homo sap...   152    8e-38&lt;br /&gt;
&lt;br /&gt;
Hvis man gå ind og læser sekvens-entry&#039;et for disse hits kan man faktisk direkte se, at de stammer fra sammen gen (/gene=&amp;quot;H2AFY&amp;quot;, /gene=&amp;quot;H2AFY&amp;quot;). BEMÆRK: Her er vi heldige og alt den information vi har burg for står faktisk i overskrifterne.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
En hurtig optælling afslører følgende isoformet i vores set af BLAST hits:&lt;br /&gt;
&lt;br /&gt;
 ref|NP_613075.1|  core histone macro-H2A.1 isoform 1 [Homo sap...   152    7e-38&lt;br /&gt;
 ref|NP_004884.1|  core histone macro-H2A.1 isoform 2 [Homo sap...   152    8e-38&lt;br /&gt;
 ref|NP_613258.2|  core histone macro-H2A.1 isoform 3 [Homo sap...   152    8e-38&lt;br /&gt;
&lt;br /&gt;
 ref|NP_036544.1|  histone H2A.V isoform 1 [Homo sapiens]            133    4e-32&lt;br /&gt;
 ref|NP_619541.1|  histone H2A.V isoform 2 [Homo sapiens]            114    2e-26&lt;br /&gt;
 ref|NP_958844.1|  histone H2A.V isoform 3 [Homo sapiens]            112    8e-26&lt;br /&gt;
 ref|NP_958925.1|  histone H2A.V isoform 5 [Homo sapiens]           75.9    8e-15&lt;br /&gt;
 ref|NP_958924.1|  histone H2A.V isoform 4 [Homo sapiens]           62.8    7e-11&lt;br /&gt;
&lt;br /&gt;
Dvs at vi i alt har 27 - 2 - 4 = 21 unikke hits til gener.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===QUESTION 4.4===&lt;br /&gt;
&#039;&#039;&#039;Langt svar&#039;&#039;&#039;: Et lavt komplekst område er et stykke sekvens der ikke indeholder særligt meget information (fx. TTTTAAAA i human – findes milioner af gange i genomet).&lt;br /&gt;
&lt;br /&gt;
BLAST har et indbygget filter der masker disse områder ud i søgningen.&lt;br /&gt;
&lt;br /&gt;
Ud over at kunne slå det til og fra – har NCBI valgt et tredie mulighed (som default) – slå det fra men at vise hvor områderne er (små bogstaver):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  194 bits (494),  Expect = 1e-50, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 96/125 (76%), Positives = 108/125 (86%), Gaps = 0/125 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  4    gkggkagsaakasqsrsakagLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTavleylaae  63&lt;br /&gt;
             G+G + G A   ++SRS++AGL FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AE&lt;br /&gt;
 Sbjct  3    GRGKQGGKARAKAKSRSSRAGLQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAE  62&lt;br /&gt;
 &lt;br /&gt;
 Query  64   ilelaGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSA  123&lt;br /&gt;
             ILELAGNAARDNKKTRIIPRHLQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+ &lt;br /&gt;
 Sbjct  63   ILELAGNAARDNKKTRIIPRHLQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTE  122&lt;br /&gt;
 &lt;br /&gt;
 Query  124  KTAKA  128&lt;br /&gt;
                KA&lt;br /&gt;
 Sbjct  123  SHHKA  127&lt;br /&gt;
&lt;br /&gt;
Hvis man gentager søgningen med filteret slået til giver det følgende (jeg har også valgt at viser X’er i det filtrerede område – hvilket NORMALT er standard i BLAST):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  147 bits (372),  Expect = 2e-36, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 87/104 (83%), Positives = 93/104 (89%), Gaps = 0/104 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  25   LTFPVGRVHRLLRRGNYAQRIGSGAPVYLTXXXXXXXXXXXXXXGNAARDNKKTRIIPRH  84&lt;br /&gt;
             L FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AEILELAGNAARDNKKTRIIPRH&lt;br /&gt;
 Sbjct  24   LQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAEILELAGNAARDNKKTRIIPRH  83&lt;br /&gt;
 &lt;br /&gt;
 Query  85   LQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSAKTAKA  128&lt;br /&gt;
             LQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+    KA&lt;br /&gt;
 Sbjct  84   LQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTESHHKA  127&lt;br /&gt;
&lt;br /&gt;
Bemærk det kortere alignment og den ændrede E-værdi. &lt;br /&gt;
&lt;br /&gt;
Hvis man eksplicit slår filteret fra, ser resultatet således ud:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  194 bits (494),  Expect = 1e-50, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 96/125 (76%), Positives = 108/125 (86%), Gaps = 0/125 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  4    GKGGKAGSAAKASQSRSAKAGLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTAVLEYLAAE  63&lt;br /&gt;
             G+G + G A   ++SRS++AGL FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AE&lt;br /&gt;
 Sbjct  3    GRGKQGGKARAKAKSRSSRAGLQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAE  62&lt;br /&gt;
 &lt;br /&gt;
 Query  64   ILELAGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSA  123&lt;br /&gt;
             ILELAGNAARDNKKTRIIPRHLQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+ &lt;br /&gt;
 Sbjct  63   ILELAGNAARDNKKTRIIPRHLQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTE  122&lt;br /&gt;
 &lt;br /&gt;
 Query  124  KTAKA  128&lt;br /&gt;
                KA&lt;br /&gt;
 Sbjct  123  SHHKA  127&lt;br /&gt;
&lt;br /&gt;
Præcis samme længde, e-værdi mm. som i det første alignment.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kort svar&#039;&#039;&#039;: Ja, alignmentet bliver kortere når low-complexity filteret er slået til.&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1085</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1085"/>
		<updated>2026-09-21T16:14:30Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Random protein sequences and BLASTP */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using two approaches; the Web interface to &#039;&#039;&#039;BLAST&#039;&#039;&#039; hosted by the &#039;&#039;&#039;NCBI&#039;&#039;&#039;, and using the &#039;&#039;&#039;BioPython library&#039;&#039; in a Notebook using &#039;&#039;&#039;Google Colab&#039;&#039;&#039;. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds. &lt;br /&gt;
&lt;br /&gt;
:If you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can copy the pre-saved searches under &#039;&#039;&#039;Blast Job ID:XXX&#039;&#039;&#039; and use them on the link from BLAST called &#039;&#039;&#039;Saved Strategies&#039;&#039;&#039;. Please notice that these links will only work for the duration of the exercise session.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_Saved_Strategies.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from a close relative, the common macaque (&#039;&#039;Macaca fascicularis&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;J00336.1 Monkey (M. fascicularis) preproinsulin mRNA, complete cds&lt;br /&gt;
 AACCCTCCGGGACAGGCTGCATCAGAAGAGGTCAGCAAGCAGGTCACTGTCCTTCGGCTATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGCGCTGCTGGCCCTCTGGGGACCTGACCCGGCCCCGGCCTTTGTGAAC&lt;br /&gt;
 CAGCACCTGTGCGGCTCCCACCTAGTGGAAGCTCTCTACCTGGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCCTCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGCGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCGCTGGAGGGGTCCCTGCAGAAGCGCGGCATCGTGGAGCAGTGCTGCACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAA&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2C1HZPV014&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? J00336.1&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 708&lt;br /&gt;
:* What is the percent identity and query coverage? 100% and 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the human hit you found now.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 7e-168&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2CCWWRV014&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? Human G+T (2 databases)&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 3e-170&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.6&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
* A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
Generate 10 random DNA sequence of length 25bp using Google Colab.&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
:&#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
Perform the BLAST search.&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.2)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)? Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastn): DU9XHV8H014&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastp): DU9T4K44014&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR6NDFMJ013&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR65XVA0016&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1084</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1084"/>
		<updated>2026-09-21T16:13:59Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Random protein sequences and BLASTP */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using two approaches; the Web interface to &#039;&#039;&#039;BLAST&#039;&#039;&#039; hosted by the &#039;&#039;&#039;NCBI&#039;&#039;&#039;, and using the &#039;&#039;&#039;BioPython library&#039;&#039; in a Notebook using &#039;&#039;&#039;Google Colab&#039;&#039;&#039;. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds. &lt;br /&gt;
&lt;br /&gt;
:If you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can copy the pre-saved searches under &#039;&#039;&#039;Blast Job ID:XXX&#039;&#039;&#039; and use them on the link from BLAST called &#039;&#039;&#039;Saved Strategies&#039;&#039;&#039;. Please notice that these links will only work for the duration of the exercise session.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_Saved_Strategies.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from a close relative, the common macaque (&#039;&#039;Macaca fascicularis&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;J00336.1 Monkey (M. fascicularis) preproinsulin mRNA, complete cds&lt;br /&gt;
 AACCCTCCGGGACAGGCTGCATCAGAAGAGGTCAGCAAGCAGGTCACTGTCCTTCGGCTATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGCGCTGCTGGCCCTCTGGGGACCTGACCCGGCCCCGGCCTTTGTGAAC&lt;br /&gt;
 CAGCACCTGTGCGGCTCCCACCTAGTGGAAGCTCTCTACCTGGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCCTCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGCGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCGCTGGAGGGGTCCCTGCAGAAGCGCGGCATCGTGGAGCAGTGCTGCACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAA&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2C1HZPV014&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? J00336.1&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 708&lt;br /&gt;
:* What is the percent identity and query coverage? 100% and 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the human hit you found now.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 7e-168&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2CCWWRV014&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? Human G+T (2 databases)&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 3e-170&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.6&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
* A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
Generate 10 random DNA sequence of length 25bp using Google Colab.&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
:&#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
Perform the BLAST search.&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.2)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:* If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&lt;br /&gt;
:** Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastn): DU9XHV8H014&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastp): DU9T4K44014&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR6NDFMJ013&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR65XVA0016&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1083</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1083"/>
		<updated>2026-09-21T16:13:41Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Random DNA sequences and BLASTN */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using two approaches; the Web interface to &#039;&#039;&#039;BLAST&#039;&#039;&#039; hosted by the &#039;&#039;&#039;NCBI&#039;&#039;&#039;, and using the &#039;&#039;&#039;BioPython library&#039;&#039; in a Notebook using &#039;&#039;&#039;Google Colab&#039;&#039;&#039;. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds. &lt;br /&gt;
&lt;br /&gt;
:If you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can copy the pre-saved searches under &#039;&#039;&#039;Blast Job ID:XXX&#039;&#039;&#039; and use them on the link from BLAST called &#039;&#039;&#039;Saved Strategies&#039;&#039;&#039;. Please notice that these links will only work for the duration of the exercise session.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_Saved_Strategies.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from a close relative, the common macaque (&#039;&#039;Macaca fascicularis&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;J00336.1 Monkey (M. fascicularis) preproinsulin mRNA, complete cds&lt;br /&gt;
 AACCCTCCGGGACAGGCTGCATCAGAAGAGGTCAGCAAGCAGGTCACTGTCCTTCGGCTATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGCGCTGCTGGCCCTCTGGGGACCTGACCCGGCCCCGGCCTTTGTGAAC&lt;br /&gt;
 CAGCACCTGTGCGGCTCCCACCTAGTGGAAGCTCTCTACCTGGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCCTCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGCGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCGCTGGAGGGGTCCCTGCAGAAGCGCGGCATCGTGGAGCAGTGCTGCACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAA&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2C1HZPV014&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? J00336.1&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 708&lt;br /&gt;
:* What is the percent identity and query coverage? 100% and 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the human hit you found now.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 7e-168&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2CCWWRV014&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? Human G+T (2 databases)&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 3e-170&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.6&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
* A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
Generate 10 random DNA sequence of length 25bp using Google Colab.&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
&#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
Perform the BLAST search.&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.2)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:* If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&lt;br /&gt;
:** Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastn): DU9XHV8H014&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastp): DU9T4K44014&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR6NDFMJ013&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR65XVA0016&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1082</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1082"/>
		<updated>2026-09-21T16:13:02Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Random protein sequences and BLASTP */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using two approaches; the Web interface to &#039;&#039;&#039;BLAST&#039;&#039;&#039; hosted by the &#039;&#039;&#039;NCBI&#039;&#039;&#039;, and using the &#039;&#039;&#039;BioPython library&#039;&#039; in a Notebook using &#039;&#039;&#039;Google Colab&#039;&#039;&#039;. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds. &lt;br /&gt;
&lt;br /&gt;
:If you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can copy the pre-saved searches under &#039;&#039;&#039;Blast Job ID:XXX&#039;&#039;&#039; and use them on the link from BLAST called &#039;&#039;&#039;Saved Strategies&#039;&#039;&#039;. Please notice that these links will only work for the duration of the exercise session.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_Saved_Strategies.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from a close relative, the common macaque (&#039;&#039;Macaca fascicularis&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;J00336.1 Monkey (M. fascicularis) preproinsulin mRNA, complete cds&lt;br /&gt;
 AACCCTCCGGGACAGGCTGCATCAGAAGAGGTCAGCAAGCAGGTCACTGTCCTTCGGCTATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGCGCTGCTGGCCCTCTGGGGACCTGACCCGGCCCCGGCCTTTGTGAAC&lt;br /&gt;
 CAGCACCTGTGCGGCTCCCACCTAGTGGAAGCTCTCTACCTGGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCCTCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGCGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCGCTGGAGGGGTCCCTGCAGAAGCGCGGCATCGTGGAGCAGTGCTGCACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAA&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2C1HZPV014&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? J00336.1&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 708&lt;br /&gt;
:* What is the percent identity and query coverage? 100% and 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the human hit you found now.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 7e-168&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2CCWWRV014&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? Human G+T (2 databases)&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 3e-170&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.6&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
* A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
Generate 10 random DNA sequence of length 25bp using Google Colab.&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:*What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
&#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
Perform the BLAST search.&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.2)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:* If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&lt;br /&gt;
:** Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastn): DU9XHV8H014&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastp): DU9T4K44014&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR6NDFMJ013&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR65XVA0016&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1081</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1081"/>
		<updated>2026-09-21T16:11:58Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Random DNA sequences and BLASTN */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using two approaches; the Web interface to &#039;&#039;&#039;BLAST&#039;&#039;&#039; hosted by the &#039;&#039;&#039;NCBI&#039;&#039;&#039;, and using the &#039;&#039;&#039;BioPython library&#039;&#039; in a Notebook using &#039;&#039;&#039;Google Colab&#039;&#039;&#039;. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds. &lt;br /&gt;
&lt;br /&gt;
:If you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can copy the pre-saved searches under &#039;&#039;&#039;Blast Job ID:XXX&#039;&#039;&#039; and use them on the link from BLAST called &#039;&#039;&#039;Saved Strategies&#039;&#039;&#039;. Please notice that these links will only work for the duration of the exercise session.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_Saved_Strategies.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from a close relative, the common macaque (&#039;&#039;Macaca fascicularis&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;J00336.1 Monkey (M. fascicularis) preproinsulin mRNA, complete cds&lt;br /&gt;
 AACCCTCCGGGACAGGCTGCATCAGAAGAGGTCAGCAAGCAGGTCACTGTCCTTCGGCTATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGCGCTGCTGGCCCTCTGGGGACCTGACCCGGCCCCGGCCTTTGTGAAC&lt;br /&gt;
 CAGCACCTGTGCGGCTCCCACCTAGTGGAAGCTCTCTACCTGGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCCTCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGCGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCGCTGGAGGGGTCCCTGCAGAAGCGCGGCATCGTGGAGCAGTGCTGCACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAA&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2C1HZPV014&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? J00336.1&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 708&lt;br /&gt;
:* What is the percent identity and query coverage? 100% and 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the human hit you found now.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 7e-168&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2CCWWRV014&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? Human G+T (2 databases)&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 3e-170&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.6&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
* A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
Generate 10 random DNA sequence of length 25bp using Google Colab.&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:*What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
* &#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
* Perform the BLAST search.&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.2)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:* If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&lt;br /&gt;
:** Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastn): DU9XHV8H014&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastp): DU9T4K44014&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR6NDFMJ013&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR65XVA0016&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1080</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1080"/>
		<updated>2026-09-21T16:11:25Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Random DNA sequences and BLASTN */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using two approaches; the Web interface to &#039;&#039;&#039;BLAST&#039;&#039;&#039; hosted by the &#039;&#039;&#039;NCBI&#039;&#039;&#039;, and using the &#039;&#039;&#039;BioPython library&#039;&#039; in a Notebook using &#039;&#039;&#039;Google Colab&#039;&#039;&#039;. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds. &lt;br /&gt;
&lt;br /&gt;
:If you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can copy the pre-saved searches under &#039;&#039;&#039;Blast Job ID:XXX&#039;&#039;&#039; and use them on the link from BLAST called &#039;&#039;&#039;Saved Strategies&#039;&#039;&#039;. Please notice that these links will only work for the duration of the exercise session.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_Saved_Strategies.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from a close relative, the common macaque (&#039;&#039;Macaca fascicularis&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;J00336.1 Monkey (M. fascicularis) preproinsulin mRNA, complete cds&lt;br /&gt;
 AACCCTCCGGGACAGGCTGCATCAGAAGAGGTCAGCAAGCAGGTCACTGTCCTTCGGCTATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGCGCTGCTGGCCCTCTGGGGACCTGACCCGGCCCCGGCCTTTGTGAAC&lt;br /&gt;
 CAGCACCTGTGCGGCTCCCACCTAGTGGAAGCTCTCTACCTGGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCCTCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGCGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCGCTGGAGGGGTCCCTGCAGAAGCGCGGCATCGTGGAGCAGTGCTGCACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAA&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2C1HZPV014&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? J00336.1&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 708&lt;br /&gt;
:* What is the percent identity and query coverage? 100% and 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the human hit you found now.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 7e-168&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2CCWWRV014&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? Human G+T (2 databases)&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 3e-170&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.6&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
* A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
Generate 10 random DNA sequence of length 25bp using Google Colab.&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
Inspect the results.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:*What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
* &#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
* Perform the BLAST search.&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.2)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:* If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&lt;br /&gt;
:** Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastn): DU9XHV8H014&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastp): DU9T4K44014&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR6NDFMJ013&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR65XVA0016&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1079</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1079"/>
		<updated>2026-09-21T14:19:13Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Part 2: Assessing the statistical significance of BLAST hits */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using two approaches; the Web interface to &#039;&#039;&#039;BLAST&#039;&#039;&#039; hosted by the &#039;&#039;&#039;NCBI&#039;&#039;&#039;, and using the &#039;&#039;&#039;BioPython library&#039;&#039; in a Notebook using &#039;&#039;&#039;Google Colab&#039;&#039;&#039;. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds. &lt;br /&gt;
&lt;br /&gt;
:If you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can copy the pre-saved searches under &#039;&#039;&#039;Blast Job ID:XXX&#039;&#039;&#039; and use them on the link from BLAST called &#039;&#039;&#039;Saved Strategies&#039;&#039;&#039;. Please notice that these links will only work for the duration of the exercise session.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_Saved_Strategies.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from a close relative, the common macaque (&#039;&#039;Macaca fascicularis&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;J00336.1 Monkey (M. fascicularis) preproinsulin mRNA, complete cds&lt;br /&gt;
 AACCCTCCGGGACAGGCTGCATCAGAAGAGGTCAGCAAGCAGGTCACTGTCCTTCGGCTATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGCGCTGCTGGCCCTCTGGGGACCTGACCCGGCCCCGGCCTTTGTGAAC&lt;br /&gt;
 CAGCACCTGTGCGGCTCCCACCTAGTGGAAGCTCTCTACCTGGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCCTCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGCGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCGCTGGAGGGGTCCCTGCAGAAGCGCGGCATCGTGGAGCAGTGCTGCACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAA&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2C1HZPV014&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? J00336.1&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 708&lt;br /&gt;
:* What is the percent identity and query coverage? 100% and 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the human hit you found now.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 7e-168&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2CCWWRV014&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? Human G+T (2 databases)&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 3e-170&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.6&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
* A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
*Generate 10 random DNA sequence of length 25bp using Google Colab&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
* Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
*# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
*# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:*What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
* &#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
* Perform the BLAST search.&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.2)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:* If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&lt;br /&gt;
:** Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastn): DU9XHV8H014&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastp): DU9T4K44014&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR6NDFMJ013&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR65XVA0016&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=22111:Course_plan_autumn_2026&amp;diff=1078</id>
		<title>22111:Course plan autumn 2026</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=22111:Course_plan_autumn_2026&amp;diff=1078"/>
		<updated>2026-09-21T14:16:41Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Tuesday Sep 22 — BLAST */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
=== Where and when ===&lt;br /&gt;
Lectures plus subsequent exercises will take place every Tuesday afternoon during the semester, starting &#039;&#039;&#039;Tuesday Sep 1 at 13:00&#039;&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
Lectures will be from 13:00 to approx. 14 in &#039;&#039;&#039;Aud. 53, building 208&#039;&#039;&#039;, and the exercises will then take place in &#039;&#039;&#039;the group rooms ALC1 (001), ALC2 (011), ALC4 (012), and &amp;quot;Touch Down&amp;quot; (024) also in building 208&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Teachers ===&lt;br /&gt;
&lt;br /&gt;
* [https://www.dtu.dk/person/henrik-nielsen?id=25617&amp;amp;entity=profile Henrik Nielsen] &amp;amp;mdash; Associate professor, course responsible.&lt;br /&gt;
* [https://www.dtu.dk/person/carolina-barra-quaglia?id=142840&amp;amp;entity=profile Carolina Barra Quaglia] &amp;amp;mdash; Associate professor, course responsible.&lt;br /&gt;
* [https://www.dtu.dk/person/rasmus-wernersson?id=18103&amp;amp;entity=profile Rasmus Wernersson] &amp;amp;mdash; Affiliated professor.&lt;br /&gt;
&amp;lt;!-- * [http://www.dtu.dk/service/telefonbog/person?id=5118&amp;amp;tab=2&amp;amp;qt=dtupublicationquery Anders Gorm Pedersen] &amp;amp;mdash; Professor, guest lecturer. Topic: Phylogenetic trees. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Teaching assistants ===&lt;br /&gt;
* [https://www.dtu.dk/person/melanie-randahl-nielsen?id=118686&amp;amp;entity=profile Melanie Randahl Nielsen] &amp;amp;mdash; PhD student&lt;br /&gt;
* [https://www.dtu.dk/person/pilar-ballesteros-cuartero?id=224218&amp;amp;entity=profile Pilar Ballesteros Cuartero] &amp;amp;mdash; PhD student&lt;br /&gt;
* [https://www.dtu.dk/person/johanne-badsberg-overgaard?id=147205&amp;amp;entity=profile Johanne Badsberg Overgaard] &amp;amp;mdash; PhD student, stand-in for Melanie in week 1&lt;br /&gt;
* [https://www.dtu.dk/person/mads-vodder-hartmann?id=137701&amp;amp;entity=profile Mads Vodder Hartmann] &amp;amp;mdash; PhD student, stand-in for Melanie in week 2&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
* [https://www.dtu.dk/person/david-lokjaer-faurdal?id=98246&amp;amp;entity=profile David Lokjær Faurdal] &amp;amp;mdash; PhD student&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Course content ===&lt;br /&gt;
In this course, a large emphasis is placed on the practical usage of bioinformatics databases and tools. A typical lecture will present the theoretical aspects of the topics of the day — sometimes including a small group exercise using pen and paper — and last about an hour. The rest of the time will be spent on practical computer exercises, where the teachers and teaching assistants will be ready to help.&lt;br /&gt;
&lt;br /&gt;
See also [https://kurser.dtu.dk/course/2026-2027/22111 the course base about 22111].&lt;br /&gt;
&lt;br /&gt;
=== Curriculum ===&lt;br /&gt;
There is no formal textbook. The curriculum consists of the exercise guides, supplemented with various papers and chapters which will be made available on this homepage or on DTU Learn. Please note that &#039;&#039;all&#039;&#039; exercise guides are mandatory curriculum — including the &#039;&#039;answers&#039;&#039; to the exercises which will be made available on DTU Learn after each exercise.&lt;br /&gt;
&lt;br /&gt;
=== Computers ===&lt;br /&gt;
====Hardware====&lt;br /&gt;
&#039;&#039;&#039;You must bring your own laptop&#039;&#039;&#039; to the exercises, and it must be able to connect to DTU&#039;s wireless network. The type of computer / operating system is not important; Windows, Mac or Linux will all work fine. An iPad or an Android tablet, on the other hand, will not be good enough. A Chromebook will also not be enough (unless you have succeeded in installing a Linux distribution on it, but in that case we assume you know what you&#039;re doing). &lt;br /&gt;
&lt;br /&gt;
In some of the exercises (&amp;quot;PDB/PyMOL&amp;quot;, &amp;quot;Malaria vaccine&amp;quot;, and &amp;quot;Mock exam&amp;quot;), you will work with the molecular visualization program PyMOL. This is rather difficult to control by a touchpad, so please remember to &#039;&#039;&#039;bring a mouse&#039;&#039;&#039;. The mouse should have two buttons plus a scroll-wheel.&lt;br /&gt;
&lt;br /&gt;
====Software====&lt;br /&gt;
# Most importantly: an updated &#039;&#039;&#039;internet browser&#039;&#039;&#039; (e.g. [http://www.google.com/chrome Google Chrome], [http://www.mozilla.com/ FireFox], [http://www.opera.com/ Opera], [https://www.microsoft.com/edge Edge], or Safari for Mac only). &#039;&#039;&#039;NB:&#039;&#039;&#039; You must have more than one browser installed; Safari for Mac or Edge for Windows may have glitches with some bioinformatics websites, and in those cases it is important to be able to switch to an alternative browser.&lt;br /&gt;
# A plain text editor for working with, e.g., sequence files. We recommend &#039;&#039;&#039;Geany&#039;&#039;&#039;, which you can download for free from https://geany.org/. You will find some tips and installation instructions in the former exercise &amp;quot;[[Plain_text_files_and_Geany]]&amp;quot;.&lt;br /&gt;
Other software will be installed during the exercises.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; Previously in the course, we have used some java-based software; but it is our experience that new Macs (with M-series CPUs, a.k.a. ARM chips) often have problems with java. Therefore, we have replaced these programs with other options: &lt;br /&gt;
* [https://geany.org/ Geany] has replaced [http://jedit.org/ jEdit], see the former exercise in [[Plain_text_files_and_Geany|plain text files]].&lt;br /&gt;
* [https://doua.prabi.fr/software/seaview SeaView] has replaced [https://www.jalview.org/ Jalview], see the exercise in [[Exercise:_Multiple_Alignments_(Seaview_version)|multiple alignments]].&lt;br /&gt;
* [https://doua.prabi.fr/software/seaview SeaView] &amp;lt;!--(and to some degree the website [https://itol.embl.de/ iTOL])--&amp;gt; has also replaced the software [https://github.com/rambaut/figtree/releases FigTree], see the exercise in [[Exercise: Phylogeny|phylogenetic trees]].&lt;br /&gt;
Be aware that if you are working on old exam sets, they may refer to the old software.&lt;br /&gt;
&lt;br /&gt;
=== Hand-ins ===&lt;br /&gt;
As preparation for the computer-based exam, each participant or group must write a &amp;quot;&#039;&#039;&#039;logbook&#039;&#039;&#039;&amp;quot; with answers to the questions posed in the exercise guides. After the exercise, you should upload the logbook to DTU Learn.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; All hand-ins are per definition group hand-ins. If you work alone, you must form a &amp;quot;group&amp;quot; of one person. &lt;br /&gt;
&amp;lt;!-- It is possible to hand in as a group. We would &#039;&#039;much&#039;&#039; rather receive one group hand-in than a number of identical logbooks. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You decide which software you prefer for writing the logbook — e.g. Microsoft Word, [http://www.libreoffice.org/ LibreOffice] (free), [http://www.openoffice.org/ Apache OpenOffice] (free), Pages for Mac, [https://docs.google.com/ Google Docs] or similar. You should be able to insert &#039;&#039;&#039;screenshots&#039;&#039;&#039; in the logbooks for documentation purposes. Microsoft Word has a built-in screenshot tool. Both Windows 10/11 and Mac OS also have dedicated screenshot tools.&lt;br /&gt;
&amp;lt;!-- For Windows users, however, we recommend the free program [http://getgreenshot.org/ Greenshot] which can not only take screenshots and copy them to the clipboard, but also make simple edits and annotations in the screenshots. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Regardless of your choice of writing software, the result &#039;&#039;&#039;must be handed in as a PDF file&#039;&#039;&#039;. LibreOffice and Google Docs can make PDFs directly. MacOS and Windows 10/11 have built-in functions for converting any printable file to PDF. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please do &#039;&#039;not&#039;&#039; copy the questions&#039;&#039;&#039; from the exercise guide to your logbook. The hand-in module on DTU Learn has a system for plagiarism detection, which will raise an alarm if significant portions of your hand-in are identical to documents found on the internet — and that includes the exercise guides.&lt;br /&gt;
&lt;br /&gt;
In case you don&#039;t finish the exercises Tuesday afternoon, there is still a chance to hand in — the deadline for handing in at Learn is &#039;&#039;&#039;Thursday at 13:00&#039;&#039;&#039; each week. The &#039;&#039;&#039;answers to the exercises&#039;&#039;&#039; will become visible when you have uploaded your hand-in. You should read the answers carefully and compare with your own answers.&lt;br /&gt;
&lt;br /&gt;
We do not offer individual feedback on the hand-ins, but we will give a collective feedback before the lecture the next Tuesday, where we address any common mistakes there may have been.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB:&#039;&#039;&#039; &#039;&#039;The hand-ins do not affect your grade&#039;&#039; — they are mainly meant as a preparation for the exam. They are also a means for us to check the understanding of the teaching; if we can see that many participants have made the same mistake, we will try to explain the issue better at the beginning of the next lecture.&lt;br /&gt;
&lt;br /&gt;
=== Exam ===&lt;br /&gt;
The 22111 exam is electronic; i.e. you must bring your own computer, and you will &#039;&#039;not&#039;&#039; get a paper copy of the questions. &lt;br /&gt;
&lt;br /&gt;
This year, the exam will be Multiple Choice and &#039;&#039;without&#039;&#039; access to the internet.&lt;br /&gt;
&amp;lt;!-- The questions will be made available as a PDF file on the DTU online exam system. &#039;&#039;&#039;The only accepted hand-in format is PDF&#039;&#039;&#039;. --&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
All aids are allowed at the exam; you can bring any books, papers or notes. You will have &#039;&#039;&#039;open access to the internet&#039;&#039;&#039; which includes all the materials and websites we have used during the course. You are also allowed to search information on Google, Wikipedia, etc., but you are &#039;&#039;not&#039;&#039; allowed to communicate with others through e-mail, Facebook, chat, or file sharing websites. The internet traffic will be logged during the exam to ensure that these restrictions are kept.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
Just like in the weekly hand-ins, we kindly ask you: &#039;&#039;Please don&#039;t copy the questions in your answer document&#039;&#039; — that might result in the answer being flagged as plagiarism.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== DTU Learn &amp;amp; Inside ===&lt;br /&gt;
* Link to this year&#039;s DTU Learn page: https://learn.inside.dtu.dk/d2l/home/325121&lt;br /&gt;
* Link to this year&#039;s Campusnet group: https://campusnet.dtu.dk/cnnet/element/875925&lt;br /&gt;
&lt;br /&gt;
=== Evaluation and feedback ===&lt;br /&gt;
We will be very happy to receive comments, suggestions, criticisms, or praise at any time during the semester. You can:&lt;br /&gt;
* send them by email to the teachers, or &lt;br /&gt;
* write them under &amp;quot;General feedback&amp;quot; in &amp;quot;Discussion&amp;quot; in DTU Learn.&lt;br /&gt;
If somebody writes a message in &amp;quot;Discussion&amp;quot;, you can comment on it. If you see a message you agree on, please comment &amp;quot;Agree!&amp;quot; so that we can see that it is not just one person&#039;s opinion. &lt;br /&gt;
&lt;br /&gt;
In addition, we will conduct a mid-term evaluation in [https://evaluering.dtu.dk/ DTU evaluation].&lt;br /&gt;
&lt;br /&gt;
== Lecture &amp;amp; exercise plan ==&lt;br /&gt;
&lt;br /&gt;
Note: This is a &#039;&#039;preliminary&#039;&#039; plan, changes may occur!&lt;br /&gt;
&lt;br /&gt;
=== Tuesday Sep 1 — Introduction, taxonomy, and GenBank ===&lt;br /&gt;
:&#039;&#039;&#039;Lectures:&#039;&#039;&#039;&lt;br /&gt;
:* &#039;&#039;Introduction to the course and bioinformatics&#039;&#039; — Henrik Nielsen.&lt;br /&gt;
:* &#039;&#039;Test of prior knowledge&#039;&#039; — a Vevox session.&lt;br /&gt;
:* &#039;&#039;Reference databases: Taxonomy and DNA sequences&#039;&#039; — Rasmus Wernersson.&lt;br /&gt;
:&#039;&#039;&#039;Slides:&#039;&#039;&#039; will be made available on DTU Learn.&lt;br /&gt;
:&#039;&#039;&#039;Curriculum:&#039;&#039;&#039; [https://teaching.healthtech.dtu.dk/material/22111/PDF/Chapter2_Evolution.pdf Brief Introduction to Evolutionary Theory] — Written by Anders Gorm Pedersen.&lt;br /&gt;
&amp;lt;!-- :&#039;&#039;&#039;Test of prior knowledge:&#039;&#039;&#039; Go to  https://evaluering.dtu.dk/, click &amp;quot;Test of prior knowledge&amp;quot; under 22111, and fill out the form (it&#039;s anonymous). Spend max. 10 minutes on it. --&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;Exercises:&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:# [[Plain text files and Geany]] &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
:# [[Using the Taxonomy database]]&lt;br /&gt;
:# [[ExGenbank-new|Using the GenBank database]]&lt;br /&gt;
:&#039;&#039;&#039;Reference material&#039;&#039;&#039; for the exercise: [https://teaching.healthtech.dtu.dk/material/22111/GenBank+FASTA_handout_revised.pdf GenBank + FASTA format] [PDF] &lt;br /&gt;
:&#039;&#039;&#039;Background material&#039;&#039;&#039; (supposedly known): &lt;br /&gt;
:*[[File:Phone_34.gif‎]] [http://www.youtube.com/watch?v=YgmoHtLGb5c mRNA splicing] (YouTube).&lt;br /&gt;
:*[https://teaching.healthtech.dtu.dk/material/22111/GeneStructure.pdf Overview of eukaryotic gene structure] (PDF).&lt;br /&gt;
:&#039;&#039;&#039;Extra material:&#039;&#039;&#039; &lt;br /&gt;
:*&amp;quot;[https://teaching.healthtech.dtu.dk/material/22111/ELS_bioinformatics.pdf Bioinformatics]&amp;quot; — Encyclopedia entry from 2009.&lt;br /&gt;
:*&amp;quot;[https://doi.org/10.1093/nar/gkaf1060 Database resources of the National Center for Biotechnology Information in 2026]&amp;quot; — article from the annual database issue of Nucleic Acids Research, 2026&lt;br /&gt;
:*&amp;quot;[https://doi.org/10.1093/nar/gkae967 NCBI Taxonomy: enhanced access via NCBI Datasets]&amp;quot; — article from the annual database issue of Nucleic Acids Research, 2025.&lt;br /&gt;
:*&amp;quot;[http://www.ncbi.nlm.nih.gov/books/NBK44863/ Entrez Sequences Quick Start]&amp;quot; (NCBI)&lt;br /&gt;
:*&amp;quot;[https://doi.org/10.1093/nar/gkae1114 GenBank 2025 update]&amp;quot; — article from the annual database issue of Nucleic Acids Research, 2025.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
=== Tuesday Sep 9 — GenBank ===&lt;br /&gt;
:&#039;&#039;&#039;Lecture:&#039;&#039;&#039; &#039;&#039;DNA as Biological Information&#039;&#039; — Rasmus Wernersson&lt;br /&gt;
:&#039;&#039;&#039;Curriculum:&#039;&#039;&#039; [https://teaching.healthtech.dtu.dk/material/22111/DNA_SequencingTutorial.pdf DNA sequencing tutorial] — source: IDT Tech Vault&lt;br /&gt;
:&#039;&#039;&#039;Handout&#039;&#039;&#039; for the lecture: [https://teaching.healthtech.dtu.dk/material/22111/HandoutEx_BaseCalling_Simple.pdf &amp;quot;Base-calling&amp;quot; exercise (for printing)] [PDF] / [https://teaching.healthtech.dtu.dk/material/22111/BaseCalling_on_screen_version.pdf &amp;quot;Base-calling&amp;quot; exercise (version for on-screen viewing)] [PDF].&lt;br /&gt;
:&#039;&#039;&#039;Slides:&#039;&#039;&#039; on DTU Learn.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Exercise:&#039;&#039;&#039; [[ExGenbank-new|Using the GenBank database]] &lt;br /&gt;
:&#039;&#039;&#039;Reference material&#039;&#039;&#039; for the exercise: [https://teaching.healthtech.dtu.dk/material/22111/GenBank+FASTA_handout_revised.pdf GenBank + FASTA format] [PDF] &lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Background material&#039;&#039;&#039; (supposedly known): &lt;br /&gt;
:*[[File:Phone_34.gif‎]] [http://www.youtube.com/watch?v=YgmoHtLGb5c mRNA splicing] (YouTube).&lt;br /&gt;
:*[https://teaching.healthtech.dtu.dk/material/22111/GeneStructure.pdf Overview of eukaryotic gene structure] (PDF).&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Extra material:&#039;&#039;&#039; &lt;br /&gt;
:*[http://www.ncbi.nlm.nih.gov/books/NBK44863/ Entrez Sequences Quick Start] (NCBI)&lt;br /&gt;
:*[https://doi.org/10.1093/nar/gkae1114 &amp;quot;GenBank 2025 update&amp;quot;] — article from the annual database issue of Nucleic Acids Research, 2025.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Tuesday Sep 8 — Translation &amp;amp; UniProt ===&lt;br /&gt;
:&#039;&#039;&#039;Lecture:&#039;&#039;&#039; &#039;&#039;Protein databases&#039;&#039; — Henrik Nielsen&lt;br /&gt;
:&#039;&#039;&#039;Curriculum:&#039;&#039;&#039; [https://teaching.healthtech.dtu.dk/material/22111/VirtualRibosome.pdf Virtual Ribosome] — software article (PDF).&lt;br /&gt;
:&#039;&#039;&#039;Slides:&#039;&#039;&#039; on DTU Learn.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Exercises:&#039;&#039;&#039; &lt;br /&gt;
:#[[Exercise: Translation - Virtual Ribosome]] &lt;br /&gt;
:#[[Exercise: The protein database UniProt]] &lt;br /&gt;
:&#039;&#039;&#039;Background material&#039;&#039;&#039; (supposedly known): &lt;br /&gt;
:*[https://teaching.healthtech.dtu.dk/material/22111/PDF/protein_handout.pdf Levels of protein structure] [PDF]&lt;br /&gt;
:*[https://teaching.healthtech.dtu.dk/material/22111/GeneStructure.pdf Overview of eukaryotic gene structure] (PDF).&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Extra material:&#039;&#039;&#039; &lt;br /&gt;
:*[https://doi.org/10.1093/nar/gkae1010 &amp;quot;UniProt: the Universal Protein Knowledgebase in 2025&amp;quot;] — article from the annual database issue of Nucleic Acids Research, 2025.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:*[https://teaching.healthtech.dtu.dk/material/22111/uniprotkb_quickguide.pdf &amp;quot;A Quick Guide to UniProtKB&amp;quot;] — nice printable overview.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Tuesday Sep 15 — Pairwise alignment ===&lt;br /&gt;
:&#039;&#039;&#039;Lecture:&#039;&#039;&#039; &#039;&#039;Pairwise alignment&#039;&#039; — Henrik Nielsen.&lt;br /&gt;
:&#039;&#039;&#039;Curriculum:&#039;&#039;&#039; Page 35-55 in Immunological Bioinformatics (PDF: on DTU Learn → General information and files → Textbook excerpt).&lt;br /&gt;
:&#039;&#039;&#039;Handout&#039;&#039;&#039; for the lecture: [https://teaching.healthtech.dtu.dk/material/22111/New_handout_alignscores.pdf Alignment scores]&lt;br /&gt;
:&#039;&#039;&#039;Slides:&#039;&#039;&#039; on DTU Learn.&lt;br /&gt;
:&#039;&#039;&#039;Exercise:&#039;&#039;&#039; [[ExPairwiseAlignment|Pairwise alignment]]&lt;br /&gt;
&lt;br /&gt;
=== Tuesday Sep 22 — BLAST ===&lt;br /&gt;
:&#039;&#039;&#039;Lecture:&#039;&#039;&#039; &#039;&#039;Introduction to BLAST&#039;&#039; — Carolina Barra Quaglia.&lt;br /&gt;
:&#039;&#039;&#039;Curriculum:&#039;&#039;&#039; on DTU Learn. &lt;br /&gt;
:&#039;&#039;&#039;Slides:&#039;&#039;&#039; on DTU Learn.&lt;br /&gt;
:&#039;&#039;&#039;Exercise: [[Exercise:BLAST_new|BLAST]]&#039;&#039;&#039; &lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:&#039;&#039;&#039;Extra material:&#039;&#039;&#039; &lt;br /&gt;
::[[File:Phone_34.gif‎]] &#039;&#039;&#039;Videos about BLAST from NCBI:&#039;&#039;&#039; (Video introduction to NCBI&#039;s web interface and Expect Values)  [http://www.youtube.com/playlist?list=PLH-TjWpFfWrtjzMCIvUe-YbrlIeFQlKMq NCBI&#039;s YouTube channel]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Tuesday Sep 29 — Protein structure, PDB &amp;amp; PyMOL ===&lt;br /&gt;
:&#039;&#039;&#039;Remember to bring a mouse for this day&#039;s exercise.&#039;&#039;&#039; The mouse should have two buttons and a scroll wheel.&lt;br /&gt;
:&#039;&#039;&#039;Lecture:&#039;&#039;&#039; &#039;&#039;Protein 3D structure&#039;&#039; — Carolina Barra Quaglia&lt;br /&gt;
:&#039;&#039;&#039;Curriculum:&#039;&#039;&#039; [http://en.wikipedia.org/wiki/Protein_structure Protein Structure (Wikipedia)]&lt;br /&gt;
:&#039;&#039;&#039;Slides:&#039;&#039;&#039; on DTU Learn.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Link to advanced course:&#039;&#039;&#039; &lt;br /&gt;
::* [http://kurser.dtu.dk/course/22117 22117 Protein Structure and Computational Biology]&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Software&#039;&#039;&#039; for installation: [https://pymol.org/ PyMOL] (choose the newest version)&lt;br /&gt;
::&#039;&#039;&#039;Note:&#039;&#039;&#039; you will need the license file found at DTU Learn under this week&#039;s topic. The license is valid for a limited time. If you need PyMOL for educational purposes later in your studies, you can go to https://pymol.org/edu/index.php and register as a student to get your own license file (and if you don&#039;t receive an email after registering, write to help@schrodinger.com). However, if you need PyMOL to make figures for a scientific publication, you will have to pay for a license.&lt;br /&gt;
:&#039;&#039;&#039;Exercises:&#039;&#039;&#039; &lt;br /&gt;
:#[[Media:PyMOL_tutorial.pdf|PyMol tutorial]] (PDF) — basic usage of PyMOL.&lt;br /&gt;
:#[[Protein Structure]] exercise&lt;br /&gt;
:&#039;&#039;&#039;Extra material:&#039;&#039;&#039; &lt;br /&gt;
:*&amp;quot;[https://doi.org/10.1093/nar/gkaf1187 RCSB Protein Data Bank: Delivering integrative structures alongside experimental structures and computed structure models]&amp;quot; — article from the annual database issue of Nucleic Acids Research, 2026.&lt;br /&gt;
:*[[PyMOL]] — some tips and tricks.&lt;br /&gt;
:*[https://teaching.healthtech.dtu.dk/material/22111/PDF/PyMOL_structure_navigation.pdf PyMOL basics — a small example] (optional extra exercise)&lt;br /&gt;
&lt;br /&gt;
=== Tuesday Oct 6 — Sequence information &amp;amp; logo-plots ===&lt;br /&gt;
:&#039;&#039;&#039;Lecture:&#039;&#039;&#039; &#039;&#039;Sequence information &amp;amp; logo-plots&#039;&#039; — Rasmus Wernersson&lt;br /&gt;
:&#039;&#039;&#039;Curriculum:&#039;&#039;&#039; &lt;br /&gt;
:# Pages 68-80 in Immunological Bioinformatics (PDF: on DTU Learn). &lt;br /&gt;
:# Pages 1-9 of &amp;quot;&#039;&#039;Information theory primer&#039;&#039;&amp;quot; ([https://teaching.healthtech.dtu.dk/material/22111/PDF/primer-2.72.pdf PDF])&lt;br /&gt;
:#* Read also the appendix on logarithms (especially log&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;) if needed!&lt;br /&gt;
:&#039;&#039;&#039;Slides:&#039;&#039;&#039; on DTU Learn.&lt;br /&gt;
:&#039;&#039;&#039;Handout&#039;&#039;&#039; for the lecture: [https://teaching.healthtech.dtu.dk/material/22111/Logo_exercise.pdf How to construct sequence logos] (PDF)&lt;br /&gt;
:&#039;&#039;&#039;Exercise:&#039;&#039;&#039; [[ExSeqLogos|DNA and Peptide Logos]]&lt;br /&gt;
&lt;br /&gt;
------&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
 &#039;&#039;&#039;Autumn holiday&#039;&#039;&#039; &lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
------&lt;br /&gt;
&lt;br /&gt;
=== Tuesday Oct 20 — Case: Malaria vaccine ===&lt;br /&gt;
:&#039;&#039;&#039;Lecture:&#039;&#039;&#039; &#039;&#039;Malaria and vaccines&#039;&#039; — [https://cmp.ku.dk/staff/?pure=en/persons/226923 Thomas Lavstsen], Associate Professor, University of Copenhagen&lt;br /&gt;
:&#039;&#039;&#039;Curriculum:&#039;&#039;&#039; [http://www.cdc.gov/dpdx/malaria/ Malaria — Causal Agents / Life Cycle]&lt;br /&gt;
:&#039;&#039;&#039;Slides:&#039;&#039;&#039; on DTU Learn.&lt;br /&gt;
:[[Image:Emblem-important_tiny.png‎]] &#039;&#039;&#039;Mid-term evaluation:&#039;&#039;&#039; Go to https://evaluering.dtu.dk/ and click &amp;quot;Mid-term evaluation&amp;quot; under 22111 [[Image:Emblem-important_tiny.png‎]]&lt;br /&gt;
:&#039;&#039;&#039;Exercise:&#039;&#039;&#039; [[Exercise:Malaria Vaccine|Malaria vaccine]]&lt;br /&gt;
&lt;br /&gt;
=== Tuesday Oct 27 — Weight matrices ===&lt;br /&gt;
:&#039;&#039;&#039;Lecture:&#039;&#039;&#039; &#039;&#039;Introduction to prediction methods, especially Weight Matrices&#039;&#039; — Henrik Nielsen&lt;br /&gt;
:&#039;&#039;&#039;Curriculum:&#039;&#039;&#039; Same as Oct 6!&lt;br /&gt;
:&#039;&#039;&#039;Slides:&#039;&#039;&#039; on DTU Learn.&lt;br /&gt;
&amp;lt;!--:&#039;&#039;&#039;Handouts&#039;&#039;&#039; for the lecture: --&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;Exercises:&#039;&#039;&#039; &lt;br /&gt;
:# [https://teaching.healthtech.dtu.dk/material/22111/Estimationofpseudocounts_new+examples.pdf How to estimate pseudo frequencies]  &#039;&#039;&#039;Note&#039;&#039;&#039;: If you solve this manually, just select a couple of amino acids from the table. But if you solve it programmatically (python, Excel, other...), fill out the entire table.&lt;br /&gt;
:# [[Exercise: Construction of sequence logos and weight matrices|Construction of weight matrices]] &lt;br /&gt;
:&#039;&#039;&#039;Link to advanced course: &#039;&#039;&#039;&lt;br /&gt;
:: [http://teaching.healthtech.dtu.dk/22125/ 22125: Algorithms in bioinformatics]&lt;br /&gt;
&lt;br /&gt;
=== Tuesday Nov 3 — PSI-BLAST ===&lt;br /&gt;
:&#039;&#039;&#039;Lecture:&#039;&#039;&#039; &#039;&#039;PSI-BLAST&#039;&#039; — Rasmus Wernersson &lt;br /&gt;
:&#039;&#039;&#039;Curriculum:&#039;&#039;&#039; &lt;br /&gt;
:&#039;&#039;&#039;Slides:&#039;&#039;&#039; on DTU Learn.&lt;br /&gt;
:&#039;&#039;&#039;Exercise:&#039;&#039;&#039; [[ExPSIBLAST|PSI-BLAST]]&lt;br /&gt;
&lt;br /&gt;
=== Tuesday Nov 10 — Multiple alignments ===&lt;br /&gt;
:&#039;&#039;&#039;Lecture:&#039;&#039;&#039; &#039;&#039;Multiple alignment&#039;&#039; — Henrik Nielsen &lt;br /&gt;
:&#039;&#039;&#039;Curriculum:&#039;&#039;&#039; RevTrans ([https://www.ncbi.nlm.nih.gov/pmc/articles/PMC169015/ article])&lt;br /&gt;
:&#039;&#039;&#039;Slides:&#039;&#039;&#039; on DTU Learn.&lt;br /&gt;
:&#039;&#039;&#039;Exercise:&#039;&#039;&#039; [[Exercise: Multiple Alignments (Seaview version)|Multiple Alignments]]&lt;br /&gt;
&lt;br /&gt;
=== Tuesday Nov 17 — Phylogenetic trees ===&lt;br /&gt;
:&#039;&#039;&#039;Lecture:&#039;&#039;&#039; &#039;&#039;Phylogenetic Reconstruction: Distance Matrix Methods&#039;&#039; — Henrik Nielsen&lt;br /&gt;
&amp;lt;!-- :&#039;&#039;&#039;Extra lecture:&#039;&#039;&#039; &#039;&#039;Bioinformatics and Systems Biology in precision medicine&#039;&#039; — Rasmus Wernersson --&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;Curriculum:&#039;&#039;&#039; &lt;br /&gt;
:# &#039;&#039;Introduction to Tree Building&#039;&#039;, PDF on Learn &amp;lt;!-- XXX WHERE? → Slides etc → Lecture12 --&amp;gt;&lt;br /&gt;
:# &#039;&#039;[http://evolution.berkeley.edu/evolibrary/article/phylogenetics_01 Evolutionary trees]&#039;&#039; (minus the section &amp;quot;How to reconstruct an evolutionary tree&amp;quot;)&lt;br /&gt;
:# &#039;&#039;Understanding Evolutionary Trees&#039;&#039;, [https://teaching.healthtech.dtu.dk/material/22111/PDF/understanding_evo_trees.pdf PDF].&lt;br /&gt;
:&#039;&#039;&#039;Slides:&#039;&#039;&#039; on DTU Learn.&lt;br /&gt;
:&#039;&#039;&#039;Handout&#039;&#039;&#039; for lecture: [https://teaching.healthtech.dtu.dk/material/22111/PDF/handout_distance.pdf Reconstructing a distance tree] &lt;br /&gt;
&amp;lt;!-- :&#039;&#039;&#039;Software&#039;&#039;&#039; for installation: [https://github.com/rambaut/figtree/releases FigTree tree-viewer]&lt;br /&gt;
::&#039;&#039;&#039;IMPORTANT NOTE&#039;&#039;&#039; for Windows users: Download the &amp;lt;tt&amp;gt;.zip&amp;lt;/tt&amp;gt; file (FigTree.v1.4.4.zip) and unpack it. Then, go to the &amp;quot;lib&amp;quot; subfolder and double-click the &amp;lt;tt&amp;gt;.jar&amp;lt;/tt&amp;gt; file. The &amp;lt;tt&amp;gt;.exe&amp;lt;/tt&amp;gt; file may not work.&lt;br /&gt;
:&#039;&#039;&#039;TEST&#039;&#039;&#039; of the internal webserver we are going to use during the exercise: Please go to https://services.healthtech.dtu.dk/service.php?TreeHugger and click &amp;quot;View &amp;lt;u&amp;gt;example alignment files&amp;lt;/u&amp;gt;&amp;quot;. Then, copy either the &amp;quot;Sample DNA alignment&amp;quot; or the &amp;quot;Sample peptide dataset&amp;quot; and paste it in the TreeHugger input field. Click &amp;lt;u&amp;gt;Submit query&amp;lt;/u&amp;gt; when instructed by the lecturer.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;Exercise: [[Exercise: Phylogeny (Seaview version)|Phylogeny]]&#039;&#039;&#039; &lt;br /&gt;
:&#039;&#039;&#039;Link to advanced course:&#039;&#039;&#039; &lt;br /&gt;
::* [http://teaching.healthtech.dtu.dk/22115/ 22115 Computational Molecular Evolution]&lt;br /&gt;
&lt;br /&gt;
=== Tuesday Nov 24 — Neural Networks ===&lt;br /&gt;
:&#039;&#039;&#039;Lecture:&#039;&#039;&#039; TBA&lt;br /&gt;
:&#039;&#039;&#039;Curriculum:&#039;&#039;&#039; TBA&lt;br /&gt;
:&#039;&#039;&#039;Slides:&#039;&#039;&#039; on DTU Learn.&lt;br /&gt;
:&#039;&#039;&#039;Exercise:&#039;&#039;&#039; TBA&lt;br /&gt;
:&#039;&#039;&#039;Link to advanced course: &#039;&#039;&#039;&lt;br /&gt;
:: [http://teaching.healthtech.dtu.dk/22125/ 22125: Algorithms in bioinformatics]&lt;br /&gt;
&lt;br /&gt;
=== Tuesday Dec 1 — Bioinformatics in practice + mock exam ===&lt;br /&gt;
:&#039;&#039;&#039;Lecture:&#039;&#039;&#039; &#039;&#039;AI, phage discovery and supercomputing&#039;&#039; — [https://globe.ku.dk/staff-list/?pure=en/persons/271131 Bent Petersen, KU]. &lt;br /&gt;
:&#039;&#039;&#039;Curriculum:&#039;&#039;&#039; (None - lean back and enjoy)&lt;br /&gt;
:&#039;&#039;&#039;Slides:&#039;&#039;&#039; on DTU Learn.&lt;br /&gt;
:&#039;&#039;&#039;Exercise:&#039;&#039;&#039; TBA.&lt;br /&gt;
&lt;br /&gt;
== Exam ==&lt;br /&gt;
&lt;br /&gt;
=== Tuesday Dec 15 ===&lt;br /&gt;
&#039;&#039;&#039;Winter exam 2025:&#039;&#039;&#039; Go to https://eksamen.dtu.dk/ and find 22111. &lt;br /&gt;
&lt;br /&gt;
Here you can find a guide to the Digital Exam interface (in Danish and English): https://student.dtu.dk/en/exam/exam-guides&lt;br /&gt;
&lt;br /&gt;
The assignment will be accessible from &#039;&#039;&#039;XX:00&#039;&#039;&#039; on Dec 15.&lt;br /&gt;
&lt;br /&gt;
=== Checklist for computers ===&lt;br /&gt;
Check here whether your computer has all the software needed for the exam: [[Checklist for computers]]&lt;br /&gt;
&lt;br /&gt;
=== Link collection ===&lt;br /&gt;
A quick overview of the websites we have used in the course: [[Link collection]]&lt;br /&gt;
&lt;br /&gt;
=== FAQ ===&lt;br /&gt;
Questions we have received and answered: [[FAQ]]&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=ExBlast-Answers_new&amp;diff=1077</id>
		<title>ExBlast-Answers new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=ExBlast-Answers_new&amp;diff=1077"/>
		<updated>2026-09-21T14:01:00Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* QUESTION 1.6 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Answers to the BLAST exercise. Values for database sizes etc. retrieved&lt;br /&gt;
September 21, 2026&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.1===&lt;br /&gt;
The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.2===&lt;br /&gt;
* &#039;&#039;Which database did you use?&#039;&#039; &lt;br /&gt;
:core_nt&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:J00336.1 (Note that the latter was also part of the sequence name for your query sequence!)&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;Max score in bits&amp;quot;)?&#039;&#039;&lt;br /&gt;
:The max score is 708 bits &lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:100% and 100%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:0.0 (actually, a number so small that it is rounded off to 0.0)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:No, of course not, since the sequences are identical&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.3===&lt;br /&gt;
* &#039;&#039;Which database did you use?&#039;&#039; &lt;br /&gt;
:core_nt&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:NM_000207.3&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;max score&amp;quot;)?&#039;&#039;&lt;br /&gt;
:603&lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:identity: 94.34% and query coverage: 99%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:7e-168 (meaning 7&amp;amp;times;10&amp;lt;sup&amp;gt;-168&amp;lt;/sup&amp;gt;)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:No&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.4===&lt;br /&gt;
* &#039;&#039;Which database did you use?&#039;&#039; &lt;br /&gt;
:Human G+T (2 databases)&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:NM_000207.3, they have the same score and are therefore equally good. Note that these are among the equally good hits found in the previous question.&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;max score&amp;quot;)?&#039;&#039;&lt;br /&gt;
:603&lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:identity: 94.34% and query coverage: 99%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:3e-170 (meaning 3&amp;amp;times;10&amp;lt;sup&amp;gt;-170&amp;lt;/sup&amp;gt;)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:No&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.5===&lt;br /&gt;
&#039;&#039;What are the sizes (in basepairs) of the databases we used for the two BLAST searches?&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
nt(Human): 1,081,933,534,067 letters (= basepairs), Human G+T: 4,017,001,775 letters (= basepairs).&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.6===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the ratio between the database sizes in the two BLAST searches?&#039;&#039;&lt;br /&gt;
: 1,081,933,534,067 / 4,017,001,775 = &amp;lt;u&amp;gt;~269&amp;lt;/u&amp;gt;&lt;br /&gt;
*&#039;&#039;What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &#039;&#039;&lt;br /&gt;
:7e-168 / 3e-170 = &amp;lt;u&amp;gt;~233&amp;lt;/u&amp;gt;&lt;br /&gt;
:Note: since the E-values have only three significant digits, you cannot expect to get the exact same result.&lt;br /&gt;
:Also note, you can google &amp;quot;7e-168 / 3e-170&amp;quot; directly and the answer will show up in the results.&lt;br /&gt;
*&#039;&#039;What is the relationship between database size and E-value for hits with identical alignment score?&#039;&#039;&lt;br /&gt;
:The E-value is directly proportional to the database size. &lt;br /&gt;
:Note: Conceptually this means that an alignment within the given score (603 bits) is more SIGNIFICANT in the smaller database. In larger database there is a larger chance of randomly picking up matches.&lt;br /&gt;
*&#039;&#039;In conclusion: if the database size is doubled, what will happen to the E-value?&#039;&#039;&lt;br /&gt;
:Each time the database size doubles, the E-value doubles as well.&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.1===&lt;br /&gt;
&lt;br /&gt;
:There will typically be several 100% identity hits, &#039;&#039;e.g.&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 ****Alignment**** 1&lt;br /&gt;
 Title: gi|2440392781|emb|OX421481.1| Eilema caniola genome assembly, chromosome: 20&lt;br /&gt;
 Accession: OX421481&lt;br /&gt;
 Length: 22119023&lt;br /&gt;
 Max Score: 44.0&lt;br /&gt;
 Bits: 40.9604&lt;br /&gt;
 Identities: 22&lt;br /&gt;
 Align_length: 22&lt;br /&gt;
 Gaps: 0&lt;br /&gt;
 %Ident: 100.00 %&lt;br /&gt;
 Query Cover: 88 %&lt;br /&gt;
 E value: 1.88e+00&lt;br /&gt;
 TTCTGAAAGGTCCTCTCGATAC&lt;br /&gt;
 ||||||||||||||||||||||&lt;br /&gt;
 TTCTGAAAGGTCCTCTCGATAC&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the typical length of the hits (the alignment length)?&#039;&#039;:&lt;br /&gt;
:Typically around 17-22 base pairs.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the typical % identity?&#039;&#039;:&lt;br /&gt;
:90% - 100%&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;In what range are the bit-scores (&amp;quot;max score)?&#039;&#039;:&lt;br /&gt;
:typically 30-40 bits.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the range of the E-values?&#039;&#039;:&lt;br /&gt;
:1.88e+00 - 2.29e+01&lt;br /&gt;
:usually varying from 1 to 50 (occasionally, you might find hits as &amp;quot;good&amp;quot; as 0.1).&lt;br /&gt;
:&#039;&#039;&#039;Note&#039;&#039;&#039;: we chose to use an E-value threshold of 50.0. The default is 0.05.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.2===&lt;br /&gt;
&#039;&#039;What is the biological significance of the hits you found / is there any biological meaning?&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
This makes absolutely NO biological sense(!) The hits are real enough as such, they represent sequences that actually are in the database. But we know that our query sequences are completely random and therefore have no evolutionary relationship with the hits. The only reason we found our hits is that the database is so vast that we for for purely stochastic reasons happen upon sequences that are similar.&lt;br /&gt;
&lt;br /&gt;
The E-values tell us precisely this: As described in the BLAST lecture, the alignment score will follow an extreme value distribution for those sequences that are not related to our query sequences, and the E-value is &#039;&#039;the expected number&#039;&#039; of spurious (unrelated) hits with the given alignment score or better, given the database size.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; Don&#039;t be confused by the difference between alignment score and bit score; bit score is simply the alignment score normalized by a constant factor which gives a result expressible in bits.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.3===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
*&#039;&#039;How big is the database this time? &#039;&#039;:&lt;br /&gt;
:Number of letters (amino acids): 243,461,748,389&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
*&#039;&#039;What is the typical length of the alignment and do they contain gaps?&#039;&#039;:&lt;br /&gt;
:Typically 15-22. Rarely gaps, but several mismatches.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the range of E-values?&#039;&#039;:&lt;br /&gt;
:Typically 100-1000 &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar) - do you find any that look plausible, if we for a moment ignore the length/E-value?&#039;&#039;&lt;br /&gt;
:Yes, maybe. See &#039;&#039;e.g.&#039;&#039; the alignment below, it has 77% identities (but it is way too short to be significant, as the E-value tells us).&lt;br /&gt;
&lt;br /&gt;
 ****Alignment**** 1&lt;br /&gt;
 Title: ref|WP_179589105.1| non-ribosomal peptide synthetase [Pigmentiphaga litoralis] &amp;gt;gb|NYE25977.1| amino acid adenylation domain-containing protein [Pigmentiphaga litoralis] &amp;gt;gb|NYE85097.1| amino acid adenylation domain- containing protein [Pigmentiphaga litoralis]&lt;br /&gt;
 Accession: WP_179589105&lt;br /&gt;
 Length: 1782&lt;br /&gt;
 Max Score: 67.0&lt;br /&gt;
 Bits: 30.4166&lt;br /&gt;
 Identities: 8&lt;br /&gt;
 Align_length: 22&lt;br /&gt;
 Gaps: 0&lt;br /&gt;
 %Ident: 36.36 %&lt;br /&gt;
 Query Cover: 88 %&lt;br /&gt;
 E value: 1.25e+02&lt;br /&gt;
 LTNNVNMHWTLPYTVSHVYVNP&lt;br /&gt;
 L   ++ HW +P+T+SH++ +P&lt;br /&gt;
 LAARISQHWCVPFTISHIFDHP&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;If we had used the default E-value cutoff of 10 would any hits have been found?&#039;&#039;:&lt;br /&gt;
:No (note: the default is actually 0.05 now). Note the difference from the nucleotide database searches (whose E-values were typically in the range 1-50): if we had run BLASTN with an E-value threshold of 1000, we would have had many pages of hits for each query sequence.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.4===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&#039;&#039;:&lt;br /&gt;
:The risk of getting a false hit (an unrelated sequence with a &amp;quot;decent&amp;quot; E-value) is much larger when working with DNA sequences. Remember than we used 50 as E-value cut-off for BLASTN, while we used 1000 with BLASTP in order to see any hits at all.&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ===QUESTION 3.1===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we get any significant hits?&#039;&#039;&lt;br /&gt;
:Yes, there are 20 hits with an E-value of &amp;quot;0.0&amp;quot; (&#039;&#039;i.e.&#039;&#039; so small that is is rounded to zero) — and the next hits are also extremely significant. The first hit (S48754) furthermore has a query coverage of 100% and an identity of 100% (this is actually the source of our query).&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What kind of genes (function) do we find?&#039;&#039;&lt;br /&gt;
:All the high-quality hits are alkaline serine proteases from the genera &#039;&#039;Bacillus&#039;&#039; or &#039;&#039;Alkalihalobacillus&#039;&#039; — except some hits that are whole genome sequences.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 3.2===&lt;br /&gt;
Note 1: remember to use the ORF Finder in Virtual Ribosome! Since we are told the sequence is a full-length transcript, we can assume that the START and STOP codons are included and set the ORF finder to &amp;quot;&amp;lt;u&amp;gt;Start codon: Any&amp;lt;/u&amp;gt;&amp;quot; (in this case, it would have given the same result to use  &amp;quot;&amp;lt;u&amp;gt;Start codon: Strict&amp;lt;/u&amp;gt;&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
Note 2: you can choose the standard genetic code (Table 1) or alternatively Table 11 (&amp;lt;u&amp;gt;Bacterial and Plant Plastid&amp;lt;/u&amp;gt;). The only difference is that Table 11 allows some extra, rarely occurring, start codons.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Report your translated protein sequence in FASTA format.&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01_rframe2_ORF&lt;br /&gt;
 MKKPLGKIVASTALLISVAFSSSIASAAEEAKEKYLIGFNEQEAVSEFVEQVEANDEVAI&lt;br /&gt;
 LSEEEEVEIELLHEFETIPVLSVELSPEDVDALELDPAISYIEEDAEVTTMAQSVPWGIS&lt;br /&gt;
 RVQAPAAHNRGLTGSGVKVAVLDTGISTHPDLNIRGGASFVPGEPSTQDGNGHGTHVAGT&lt;br /&gt;
 IAALNNSIGVLGVAPSAELYAVKVLGASGSGSVSSIAQGLEWAGNNGMHVANLSLGSPSP&lt;br /&gt;
 SATLEQAVNSATSRGVLVVAASGNSGAGSISYPARYANAMAVGATDQNNNRASFSQYGAG&lt;br /&gt;
 LDIVAPGVNVQSTYPGSTYASLNGTSMATPHVAGAAALVKQKNPSWSNVQIRNHLKNTAT&lt;br /&gt;
 SLGSTNLYGSGLVNAEAATR&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we find any conserved protein domains?&#039;&#039;:&lt;br /&gt;
:Yes, there is a &amp;quot;Peptidase S8&amp;quot; domain. You can see it by clicking the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab.&lt;br /&gt;
&lt;br /&gt;
[[image:Peptidases_S8.png|center|frame|Conserved protein domains found by the NCBI Blast server]]&lt;br /&gt;
&amp;lt;!-- [[image:NCBI_BLAST_ProtDomains_Updated.JPG|center|frame|Conserved protein domains found by the NCBI Blast server]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we find any significant hits? (E-value?)&#039;&#039;:&lt;br /&gt;
:Yes, a lot. The first many hits have an E-value of 0.0, and hit #100 is still very significant (3e-98) — note that by default, only the top 100 hits are shown!&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Are all the best hits the same category of enzymes?&#039;&#039;:&lt;br /&gt;
:Yes, they are alkaline proteases (except a few that are hypothetical proteins).&lt;br /&gt;
:Note that you can click the Accession code for a hit and go directly to the corresponding entry in the database.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&#039;&#039;:&lt;br /&gt;
:Protein BLAST (BLASTP). If you have very high quality hits, they can be identified by both methods, but if the evolutionary distance is larger, BLASTP is clearly better.&lt;br /&gt;
:Note: Recall from the PyMOL exercises that information between distant genes/proteins are conserved from: Structure &amp;gt; Peptide Sequence &amp;gt; Nucleotide sequence. So when the evolutionary distance is larger, blastp would generally give better hits than blastn.&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===QUESTION 3.1===&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence: &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Subquestion: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
 &amp;gt;CLONE12&lt;br /&gt;
 AACGGGCACGGGACGCATGTAGCTGGAACAGTGGCAGCCGTAAATAATAATGGTATCGGA&lt;br /&gt;
 GTTGCCGGGGTTGCAGGAGGAAACGGCTCTACCAATAGTGGAGCAAGGTTAATGTCCACA&lt;br /&gt;
 CAAATTTTTAATAGTGATGGGGATTATACAAATAGCGAAACTCTTGTGTACAGAGCCATT&lt;br /&gt;
 GTTTATGGTGCAGATAACGGAGCTGTGATCTCGCAAAATAGCTGGGGTAGTCAGTCTCTG&lt;br /&gt;
 ACTATTAAGGAGTTGCAGAAAGCTGCGATCGACTATTTCATTGATTATGCAGGAATGGAC&lt;br /&gt;
 GAAACAGGAGAAATACAGACAGGCCCTATGAGGGGAGGTATATTTATAGCTGCCGCCGGA&lt;br /&gt;
 AACGATAACGTTTCCACTCCAAATATGCCTTCAGCTTATGAACGGGTTTTAGCTGTGGCC&lt;br /&gt;
 TCAATGGGACCAGATTTTACTAAGGCAAGCTATAGCACTTTTGGAACATGGACTGATATT&lt;br /&gt;
 ACTGCTCCTGGCGGAGATATTGACAAATTTGATTTGTCAGAATACGGAGTTCTCAGCACT&lt;br /&gt;
 TATGCCGATAATTATTATGCTTATGGAGAGGGAACATCCATGGCTTGTCCACATGTCGCC&lt;br /&gt;
 GGCGCCGCC&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task: &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Subquestion: Give a summary of your considerations.&#039;&#039;&lt;br /&gt;
**&#039;&#039;Based on the information given: is the sequence protein-coding? &#039;&#039;&lt;br /&gt;
::Yes — we know this because the PCR primers used to clone the sequence target &#039;&#039;&#039;known enzymes&#039;&#039;&#039;. Therefore, it will make sense to try to translate the sequence using Virtual Ribosome.&lt;br /&gt;
:*&#039;&#039;If it is, can you trust it will contain both a START and STOP codon? &#039;&#039;&lt;br /&gt;
::No — the PCR primers used to clone the sequence target &#039;&#039;&#039;the middle of the sequence&#039;&#039;&#039;, in other words we must assume that our sequence is a fragment. Therefore, the ORF finder in Virtual Ribosome should be set to &amp;lt;u&amp;gt;Start codon: None&amp;lt;/u&amp;gt;.&lt;br /&gt;
:*&#039;&#039;Do we know if the sequence is sense or anti-sense? &#039;&#039;&lt;br /&gt;
::No — the PCR process amplifies a stretch of double-stranded DNA. Therefore, we should let Virtual Ribosome search in &#039;&#039;&#039;all 6 reading frames&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
We want to use BLAST to search the large databases. Let&#039;s therefore try the following:&lt;br /&gt;
# BLASTN &lt;br /&gt;
# Translate to protein (using Virtual Ribosome).&lt;br /&gt;
# BLASTP&lt;br /&gt;
Both when doing BLASTN and BLASTP we will use the NR database in order to search as broadly as possible. It would not make sense to use an organism-specific database when we don&#039;t know which organism our sequence stems from.&lt;br /&gt;
&lt;br /&gt;
1) BLASTN. When trying BLASTN against NR we get some borderline significant results, but observe how small the query coverage percentages are (check also the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab!). &lt;br /&gt;
&lt;br /&gt;
[[image:NCBI BlastN_CLONE12 new_version.png]]&lt;br /&gt;
[[image:NCBI BlastN_CLONE12 Graphic Summary.png]]&lt;br /&gt;
&lt;br /&gt;
There is simply nothing in the entire NR database that has enough similarity to our whole query sequence. A search on the DNA level is only suited for finding very close hits.&lt;br /&gt;
&lt;br /&gt;
2) Translate using Virtual Ribosome with the settings we chose under Step 2 above.&lt;br /&gt;
&lt;br /&gt;
The result from the ORF finder:&lt;br /&gt;
 &lt;br /&gt;
 VIRTUAL RIBOSOME&lt;br /&gt;
 ----------------&lt;br /&gt;
 Translation table: Standard SGC0 &lt;br /&gt;
 &lt;br /&gt;
 &amp;gt;CLONE12_rframe1_ORF&lt;br /&gt;
 Reading frame: 1&lt;br /&gt;
 &lt;br /&gt;
     N  G  H  G  T  H  V  A  G  T  V  A  A  V  N  N  N  G  I  G  V  A  G  V  A  G  G  N  G  S  &lt;br /&gt;
 5&#039; AACGGGCACGGGACGCATGTAGCTGGAACAGTGGCAGCCGTAAATAATAATGGTATCGGAGTTGCCGGGGTTGCAGGAGGAAACGGCTCT 90&lt;br /&gt;
    .......................................................................................... &lt;br /&gt;
 &lt;br /&gt;
     T  N  S  G  A  R  L  M  S  T  Q  I  F  N  S  D  G  D  Y  T  N  S  E  T  L  V  Y  R  A  I  &lt;br /&gt;
 5&#039; ACCAATAGTGGAGCAAGGTTAATGTCCACACAAATTTTTAATAGTGATGGGGATTATACAAATAGCGAAACTCTTGTGTACAGAGCCATT 180&lt;br /&gt;
    .....................&amp;gt;&amp;gt;&amp;gt;.................................................................. &lt;br /&gt;
 &lt;br /&gt;
     V  Y  G  A  D  N  G  A  V  I  S  Q  N  S  W  G  S  Q  S  L  T  I  K  E  L  Q  K  A  A  I  &lt;br /&gt;
 5&#039; GTTTATGGTGCAGATAACGGAGCTGTGATCTCGCAAAATAGCTGGGGTAGTCAGTCTCTGACTATTAAGGAGTTGCAGAAAGCTGCGATC 270&lt;br /&gt;
    .........................................................)))............)))............... &lt;br /&gt;
 &lt;br /&gt;
     D  Y  F  I  D  Y  A  G  M  D  E  T  G  E  I  Q  T  G  P  M  R  G  G  I  F  I  A  A  A  G  &lt;br /&gt;
 5&#039; GACTATTTCATTGATTATGCAGGAATGGACGAAACAGGAGAAATACAGACAGGCCCTATGAGGGGAGGTATATTTATAGCTGCCGCCGGA 360&lt;br /&gt;
    ........................&amp;gt;&amp;gt;&amp;gt;..............................&amp;gt;&amp;gt;&amp;gt;.............................. &lt;br /&gt;
 &lt;br /&gt;
     N  D  N  V  S  T  P  N  M  P  S  A  Y  E  R  V  L  A  V  A  S  M  G  P  D  F  T  K  A  S  &lt;br /&gt;
 5&#039; AACGATAACGTTTCCACTCCAAATATGCCTTCAGCTTATGAACGGGTTTTAGCTGTGGCCTCAATGGGACCAGATTTTACTAAGGCAAGC 450&lt;br /&gt;
    ........................&amp;gt;&amp;gt;&amp;gt;....................................&amp;gt;&amp;gt;&amp;gt;........................ &lt;br /&gt;
 &lt;br /&gt;
     Y  S  T  F  G  T  W  T  D  I  T  A  P  G  G  D  I  D  K  F  D  L  S  E  Y  G  V  L  S  T  &lt;br /&gt;
 5&#039; TATAGCACTTTTGGAACATGGACTGATATTACTGCTCCTGGCGGAGATATTGACAAATTTGATTTGTCAGAATACGGAGTTCTCAGCACT 540&lt;br /&gt;
    ...............................................................)))........................ &lt;br /&gt;
 &lt;br /&gt;
     Y  A  D  N  Y  Y  A  Y  G  E  G  T  S  M  A  C  P  H  V  A  G  A  A  &lt;br /&gt;
 5&#039; TATGCCGATAATTATTATGCTTATGGAGAGGGAACATCCATGGCTTGTCCACATGTCGCCGGCGCCGCC 609&lt;br /&gt;
    .......................................&amp;gt;&amp;gt;&amp;gt;........................... &lt;br /&gt;
&lt;br /&gt;
(&#039;&#039;&#039;Tip:&#039;&#039;&#039; Remember that you can get the sequence in FASTA format via the &amp;lt;u&amp;gt;FASTA&amp;lt;/u&amp;gt; link on the result page):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;CLONE12_rframe1_ORF&lt;br /&gt;
 NGHGTHVAGTVAAVNNNGIGVAGVAGGNGSTNSGARLMSTQIFNSDGDYTNSETLVYRAI&lt;br /&gt;
 VYGADNGAVISQNSWGSQSLTIKELQKAAIDYFIDYAGMDETGEIQTGPMRGGIFIAAAG&lt;br /&gt;
 NDNVSTPNMPSAYERVLAVASMGPDFTKASYSTFGTWTDITAPGGDIDKFDLSEYGVLST&lt;br /&gt;
 YADNYYAYGEGTSMACPHVAGAA&lt;br /&gt;
&lt;br /&gt;
3) BLASTP&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- The first thing we notice (already while the search is running) is that there is a &amp;quot;Peptidases_S8_S53&amp;quot; domain. This is a very strong indicator of the function. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We get several very significant hits. When looking at the top hits and disregarding &amp;quot;hypothetical&amp;quot; and &amp;quot;uncharacterized&amp;quot; proteins, we can see that the rest are almost all serine proteases. Some of them are described as belonging to the of the S8 family.&lt;br /&gt;
&lt;br /&gt;
[[image:NCBI BlastP_CLONE12_rframe1_ORF new version.png]]&lt;br /&gt;
&lt;br /&gt;
Let&#039;s take a closer look at the first hit that is not &amp;quot;uncharacterized&amp;quot;:&lt;br /&gt;
[[image:NCBI_BlastP_CLONE12_best_hit.png]]&lt;br /&gt;
&lt;br /&gt;
Note that although it is not a perfect hit (our query sequence not existing in the database) it looks reasonable: the alignment covers a large part of the query with Identity of 54% and Similarity (Positives) of 69%.&lt;br /&gt;
&lt;br /&gt;
Taken together with the fact that almost all the best non-hypothetical hits are serine proteases, we have a very strong indication that our mystery sequence, CLONE12, is a peptidase or protease of the S8 family.&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.1===&lt;br /&gt;
&#039;&#039;What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
They are nearly identical (&amp;quot;one of two nearly identical (see also HTA1) subtypes&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
Protein sequence: &lt;br /&gt;
 &amp;gt;YBL003C  &lt;br /&gt;
 MSGGKGGKAGSAAKASQSRSAKAGLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTAVLEYL&lt;br /&gt;
 AAEILELAGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPK&lt;br /&gt;
 KSAKTAKASQEL*&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.2===&lt;br /&gt;
*&#039;&#039;How many high-confidence hits do we get?&#039;&#039;:&lt;br /&gt;
:3 — HTA1, HTA2 and HTZ1.&lt;br /&gt;
:Note: If you click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links for the two top hits, you will see that one is HTA1 and the other is HTA2.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&#039;&#039;:&lt;br /&gt;
:Yes; HTA1 and HTA2 are indeed nearly identical (only 2 amino acids differ).&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.3===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found?&#039;&#039;&lt;br /&gt;
:Answer: 29.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
Lad os ligesom før kræve at hits skal have en e-value på 1e-10 eller bedre (mindre) for at vi regner det for pålideligt. Dette passer også fint med, at disse hits er enige om at der er tale om en histon.&lt;br /&gt;
&lt;br /&gt;
Som udgangspunkt er der derfor 26 gode hits. Man kan dog godt argumentere for at man skal passe på hits der kun har en forudsagt funktion (&amp;quot;PREDICTED&amp;quot;) - dem har vi en enkelt af. Som det også ses er der en række af hits&#039;ne der dækker over variationer af samme protein (fx alle dem der hedder: &amp;lt;tt&amp;gt;histone H2A type-XYZ&amp;lt;/tt&amp;gt;). Det er ikke altid at alle detaljerne kommer med i den korte form af overskrifter - nogen gange kan det være nødvendigt mauelt at inspicere et hit (klikke på link&#039;et og læse hvad der står af information i det bagvedliggende database entry).&lt;br /&gt;
&lt;br /&gt;
Lad os arbejde videre med alle 26 gode hits i de næste analyser.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;These protein originates from a number of genes - but how many UNIQUE genes?&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Svar: Trick&#039;et er her af en del af hits&#039;ne er fra isoformer af det sammen protein. Et protein med to isofomer stammer stadig kun fra en enkelt gen&lt;br /&gt;
&lt;br /&gt;
Lad os fx kigge på følgende hits:&lt;br /&gt;
&lt;br /&gt;
 ref|NP_613075.1|  core histone macro-H2A.1 isoform 1 [Homo sap...   152    7e-38&lt;br /&gt;
 ref|NP_004884.1|  core histone macro-H2A.1 isoform 2 [Homo sap...   152    8e-38&lt;br /&gt;
&lt;br /&gt;
Hvis man gå ind og læser sekvens-entry&#039;et for disse hits kan man faktisk direkte se, at de stammer fra sammen gen (/gene=&amp;quot;H2AFY&amp;quot;, /gene=&amp;quot;H2AFY&amp;quot;). BEMÆRK: Her er vi heldige og alt den information vi har burg for står faktisk i overskrifterne.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
En hurtig optælling afslører følgende isoformet i vores set af BLAST hits:&lt;br /&gt;
&lt;br /&gt;
 ref|NP_613075.1|  core histone macro-H2A.1 isoform 1 [Homo sap...   152    7e-38&lt;br /&gt;
 ref|NP_004884.1|  core histone macro-H2A.1 isoform 2 [Homo sap...   152    8e-38&lt;br /&gt;
 ref|NP_613258.2|  core histone macro-H2A.1 isoform 3 [Homo sap...   152    8e-38&lt;br /&gt;
&lt;br /&gt;
 ref|NP_036544.1|  histone H2A.V isoform 1 [Homo sapiens]            133    4e-32&lt;br /&gt;
 ref|NP_619541.1|  histone H2A.V isoform 2 [Homo sapiens]            114    2e-26&lt;br /&gt;
 ref|NP_958844.1|  histone H2A.V isoform 3 [Homo sapiens]            112    8e-26&lt;br /&gt;
 ref|NP_958925.1|  histone H2A.V isoform 5 [Homo sapiens]           75.9    8e-15&lt;br /&gt;
 ref|NP_958924.1|  histone H2A.V isoform 4 [Homo sapiens]           62.8    7e-11&lt;br /&gt;
&lt;br /&gt;
Dvs at vi i alt har 27 - 2 - 4 = 21 unikke hits til gener.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===QUESTION 4.4===&lt;br /&gt;
&#039;&#039;&#039;Langt svar&#039;&#039;&#039;: Et lavt komplekst område er et stykke sekvens der ikke indeholder særligt meget information (fx. TTTTAAAA i human – findes milioner af gange i genomet).&lt;br /&gt;
&lt;br /&gt;
BLAST har et indbygget filter der masker disse områder ud i søgningen.&lt;br /&gt;
&lt;br /&gt;
Ud over at kunne slå det til og fra – har NCBI valgt et tredie mulighed (som default) – slå det fra men at vise hvor områderne er (små bogstaver):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  194 bits (494),  Expect = 1e-50, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 96/125 (76%), Positives = 108/125 (86%), Gaps = 0/125 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  4    gkggkagsaakasqsrsakagLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTavleylaae  63&lt;br /&gt;
             G+G + G A   ++SRS++AGL FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AE&lt;br /&gt;
 Sbjct  3    GRGKQGGKARAKAKSRSSRAGLQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAE  62&lt;br /&gt;
 &lt;br /&gt;
 Query  64   ilelaGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSA  123&lt;br /&gt;
             ILELAGNAARDNKKTRIIPRHLQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+ &lt;br /&gt;
 Sbjct  63   ILELAGNAARDNKKTRIIPRHLQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTE  122&lt;br /&gt;
 &lt;br /&gt;
 Query  124  KTAKA  128&lt;br /&gt;
                KA&lt;br /&gt;
 Sbjct  123  SHHKA  127&lt;br /&gt;
&lt;br /&gt;
Hvis man gentager søgningen med filteret slået til giver det følgende (jeg har også valgt at viser X’er i det filtrerede område – hvilket NORMALT er standard i BLAST):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  147 bits (372),  Expect = 2e-36, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 87/104 (83%), Positives = 93/104 (89%), Gaps = 0/104 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  25   LTFPVGRVHRLLRRGNYAQRIGSGAPVYLTXXXXXXXXXXXXXXGNAARDNKKTRIIPRH  84&lt;br /&gt;
             L FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AEILELAGNAARDNKKTRIIPRH&lt;br /&gt;
 Sbjct  24   LQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAEILELAGNAARDNKKTRIIPRH  83&lt;br /&gt;
 &lt;br /&gt;
 Query  85   LQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSAKTAKA  128&lt;br /&gt;
             LQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+    KA&lt;br /&gt;
 Sbjct  84   LQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTESHHKA  127&lt;br /&gt;
&lt;br /&gt;
Bemærk det kortere alignment og den ændrede E-værdi. &lt;br /&gt;
&lt;br /&gt;
Hvis man eksplicit slår filteret fra, ser resultatet således ud:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  194 bits (494),  Expect = 1e-50, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 96/125 (76%), Positives = 108/125 (86%), Gaps = 0/125 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  4    GKGGKAGSAAKASQSRSAKAGLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTAVLEYLAAE  63&lt;br /&gt;
             G+G + G A   ++SRS++AGL FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AE&lt;br /&gt;
 Sbjct  3    GRGKQGGKARAKAKSRSSRAGLQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAE  62&lt;br /&gt;
 &lt;br /&gt;
 Query  64   ILELAGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSA  123&lt;br /&gt;
             ILELAGNAARDNKKTRIIPRHLQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+ &lt;br /&gt;
 Sbjct  63   ILELAGNAARDNKKTRIIPRHLQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTE  122&lt;br /&gt;
 &lt;br /&gt;
 Query  124  KTAKA  128&lt;br /&gt;
                KA&lt;br /&gt;
 Sbjct  123  SHHKA  127&lt;br /&gt;
&lt;br /&gt;
Præcis samme længde, e-værdi mm. som i det første alignment.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kort svar&#039;&#039;&#039;: Ja, alignmentet bliver kortere når low-complexity filteret er slået til.&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=ExBlast-Answers_new&amp;diff=1076</id>
		<title>ExBlast-Answers new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=ExBlast-Answers_new&amp;diff=1076"/>
		<updated>2026-09-21T13:58:17Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* QUESTION 1.6 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Answers to the BLAST exercise. Values for database sizes etc. retrieved&lt;br /&gt;
September 21, 2026&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.1===&lt;br /&gt;
The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.2===&lt;br /&gt;
* &#039;&#039;Which database did you use?&#039;&#039; &lt;br /&gt;
:core_nt&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:J00336.1 (Note that the latter was also part of the sequence name for your query sequence!)&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;Max score in bits&amp;quot;)?&#039;&#039;&lt;br /&gt;
:The max score is 708 bits &lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:100% and 100%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:0.0 (actually, a number so small that it is rounded off to 0.0)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:No, of course not, since the sequences are identical&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.3===&lt;br /&gt;
* &#039;&#039;Which database did you use?&#039;&#039; &lt;br /&gt;
:core_nt&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:NM_000207.3&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;max score&amp;quot;)?&#039;&#039;&lt;br /&gt;
:603&lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:identity: 94.34% and query coverage: 99%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:7e-168 (meaning 7&amp;amp;times;10&amp;lt;sup&amp;gt;-168&amp;lt;/sup&amp;gt;)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:No&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.4===&lt;br /&gt;
* &#039;&#039;Which database did you use?&#039;&#039; &lt;br /&gt;
:Human G+T (2 databases)&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:NM_000207.3, they have the same score and are therefore equally good. Note that these are among the equally good hits found in the previous question.&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;max score&amp;quot;)?&#039;&#039;&lt;br /&gt;
:603&lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:identity: 94.34% and query coverage: 99%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:3e-170 (meaning 3&amp;amp;times;10&amp;lt;sup&amp;gt;-170&amp;lt;/sup&amp;gt;)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:No&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.5===&lt;br /&gt;
&#039;&#039;What are the sizes (in basepairs) of the databases we used for the two BLAST searches?&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
nt(Human): 1,081,933,534,067 letters (= basepairs), Human G+T: 4,017,001,775 letters (= basepairs).&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.6===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the ratio between the database sizes in the two BLAST searches?&#039;&#039;&lt;br /&gt;
: 1,081,933,534,067 / 4,017,001,775 = &amp;lt;u&amp;gt;~270&amp;lt;/u&amp;gt;&lt;br /&gt;
*&#039;&#039;What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &#039;&#039;&lt;br /&gt;
:7e-168 / 3e-170 = &amp;lt;u&amp;gt;270&amp;lt;/u&amp;gt;&lt;br /&gt;
:Note: since the E-values have only three significant digits, you cannot expect to get the exact same result.&lt;br /&gt;
:Also note, you can google &amp;quot;2e-47 / 3e-50&amp;quot; directly and the answer will show up in the results.&lt;br /&gt;
*&#039;&#039;What is the relationship between database size and E-value for hits with identical alignment score?&#039;&#039;&lt;br /&gt;
:The E-value is directly proportional to the database size. &lt;br /&gt;
:Note: Conceptually this is easy to understand - getting an alignment with the given score (205 bits) is more SIGNIFICANT in the smaller database. In larger database there is a larger chance of randomly picking up matches.&lt;br /&gt;
*&#039;&#039;In conclusion: if the database size is doubled, what will happen to the E-value?&#039;&#039;&lt;br /&gt;
:Each time the database size doubles, the E-value doubles as well.&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.1===&lt;br /&gt;
&lt;br /&gt;
:There will typically be several 100% identity hits, &#039;&#039;e.g.&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 ****Alignment**** 1&lt;br /&gt;
 Title: gi|2440392781|emb|OX421481.1| Eilema caniola genome assembly, chromosome: 20&lt;br /&gt;
 Accession: OX421481&lt;br /&gt;
 Length: 22119023&lt;br /&gt;
 Max Score: 44.0&lt;br /&gt;
 Bits: 40.9604&lt;br /&gt;
 Identities: 22&lt;br /&gt;
 Align_length: 22&lt;br /&gt;
 Gaps: 0&lt;br /&gt;
 %Ident: 100.00 %&lt;br /&gt;
 Query Cover: 88 %&lt;br /&gt;
 E value: 1.88e+00&lt;br /&gt;
 TTCTGAAAGGTCCTCTCGATAC&lt;br /&gt;
 ||||||||||||||||||||||&lt;br /&gt;
 TTCTGAAAGGTCCTCTCGATAC&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the typical length of the hits (the alignment length)?&#039;&#039;:&lt;br /&gt;
:Typically around 17-22 base pairs.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the typical % identity?&#039;&#039;:&lt;br /&gt;
:90% - 100%&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;In what range are the bit-scores (&amp;quot;max score)?&#039;&#039;:&lt;br /&gt;
:typically 30-40 bits.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the range of the E-values?&#039;&#039;:&lt;br /&gt;
:1.88e+00 - 2.29e+01&lt;br /&gt;
:usually varying from 1 to 50 (occasionally, you might find hits as &amp;quot;good&amp;quot; as 0.1).&lt;br /&gt;
:&#039;&#039;&#039;Note&#039;&#039;&#039;: we chose to use an E-value threshold of 50.0. The default is 0.05.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.2===&lt;br /&gt;
&#039;&#039;What is the biological significance of the hits you found / is there any biological meaning?&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
This makes absolutely NO biological sense(!) The hits are real enough as such, they represent sequences that actually are in the database. But we know that our query sequences are completely random and therefore have no evolutionary relationship with the hits. The only reason we found our hits is that the database is so vast that we for for purely stochastic reasons happen upon sequences that are similar.&lt;br /&gt;
&lt;br /&gt;
The E-values tell us precisely this: As described in the BLAST lecture, the alignment score will follow an extreme value distribution for those sequences that are not related to our query sequences, and the E-value is &#039;&#039;the expected number&#039;&#039; of spurious (unrelated) hits with the given alignment score or better, given the database size.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; Don&#039;t be confused by the difference between alignment score and bit score; bit score is simply the alignment score normalized by a constant factor which gives a result expressible in bits.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.3===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
*&#039;&#039;How big is the database this time? &#039;&#039;:&lt;br /&gt;
:Number of letters (amino acids): 243,461,748,389&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
*&#039;&#039;What is the typical length of the alignment and do they contain gaps?&#039;&#039;:&lt;br /&gt;
:Typically 15-22. Rarely gaps, but several mismatches.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the range of E-values?&#039;&#039;:&lt;br /&gt;
:Typically 100-1000 &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar) - do you find any that look plausible, if we for a moment ignore the length/E-value?&#039;&#039;&lt;br /&gt;
:Yes, maybe. See &#039;&#039;e.g.&#039;&#039; the alignment below, it has 77% identities (but it is way too short to be significant, as the E-value tells us).&lt;br /&gt;
&lt;br /&gt;
 ****Alignment**** 1&lt;br /&gt;
 Title: ref|WP_179589105.1| non-ribosomal peptide synthetase [Pigmentiphaga litoralis] &amp;gt;gb|NYE25977.1| amino acid adenylation domain-containing protein [Pigmentiphaga litoralis] &amp;gt;gb|NYE85097.1| amino acid adenylation domain- containing protein [Pigmentiphaga litoralis]&lt;br /&gt;
 Accession: WP_179589105&lt;br /&gt;
 Length: 1782&lt;br /&gt;
 Max Score: 67.0&lt;br /&gt;
 Bits: 30.4166&lt;br /&gt;
 Identities: 8&lt;br /&gt;
 Align_length: 22&lt;br /&gt;
 Gaps: 0&lt;br /&gt;
 %Ident: 36.36 %&lt;br /&gt;
 Query Cover: 88 %&lt;br /&gt;
 E value: 1.25e+02&lt;br /&gt;
 LTNNVNMHWTLPYTVSHVYVNP&lt;br /&gt;
 L   ++ HW +P+T+SH++ +P&lt;br /&gt;
 LAARISQHWCVPFTISHIFDHP&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;If we had used the default E-value cutoff of 10 would any hits have been found?&#039;&#039;:&lt;br /&gt;
:No (note: the default is actually 0.05 now). Note the difference from the nucleotide database searches (whose E-values were typically in the range 1-50): if we had run BLASTN with an E-value threshold of 1000, we would have had many pages of hits for each query sequence.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.4===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&#039;&#039;:&lt;br /&gt;
:The risk of getting a false hit (an unrelated sequence with a &amp;quot;decent&amp;quot; E-value) is much larger when working with DNA sequences. Remember than we used 50 as E-value cut-off for BLASTN, while we used 1000 with BLASTP in order to see any hits at all.&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ===QUESTION 3.1===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we get any significant hits?&#039;&#039;&lt;br /&gt;
:Yes, there are 20 hits with an E-value of &amp;quot;0.0&amp;quot; (&#039;&#039;i.e.&#039;&#039; so small that is is rounded to zero) — and the next hits are also extremely significant. The first hit (S48754) furthermore has a query coverage of 100% and an identity of 100% (this is actually the source of our query).&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What kind of genes (function) do we find?&#039;&#039;&lt;br /&gt;
:All the high-quality hits are alkaline serine proteases from the genera &#039;&#039;Bacillus&#039;&#039; or &#039;&#039;Alkalihalobacillus&#039;&#039; — except some hits that are whole genome sequences.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 3.2===&lt;br /&gt;
Note 1: remember to use the ORF Finder in Virtual Ribosome! Since we are told the sequence is a full-length transcript, we can assume that the START and STOP codons are included and set the ORF finder to &amp;quot;&amp;lt;u&amp;gt;Start codon: Any&amp;lt;/u&amp;gt;&amp;quot; (in this case, it would have given the same result to use  &amp;quot;&amp;lt;u&amp;gt;Start codon: Strict&amp;lt;/u&amp;gt;&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
Note 2: you can choose the standard genetic code (Table 1) or alternatively Table 11 (&amp;lt;u&amp;gt;Bacterial and Plant Plastid&amp;lt;/u&amp;gt;). The only difference is that Table 11 allows some extra, rarely occurring, start codons.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Report your translated protein sequence in FASTA format.&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01_rframe2_ORF&lt;br /&gt;
 MKKPLGKIVASTALLISVAFSSSIASAAEEAKEKYLIGFNEQEAVSEFVEQVEANDEVAI&lt;br /&gt;
 LSEEEEVEIELLHEFETIPVLSVELSPEDVDALELDPAISYIEEDAEVTTMAQSVPWGIS&lt;br /&gt;
 RVQAPAAHNRGLTGSGVKVAVLDTGISTHPDLNIRGGASFVPGEPSTQDGNGHGTHVAGT&lt;br /&gt;
 IAALNNSIGVLGVAPSAELYAVKVLGASGSGSVSSIAQGLEWAGNNGMHVANLSLGSPSP&lt;br /&gt;
 SATLEQAVNSATSRGVLVVAASGNSGAGSISYPARYANAMAVGATDQNNNRASFSQYGAG&lt;br /&gt;
 LDIVAPGVNVQSTYPGSTYASLNGTSMATPHVAGAAALVKQKNPSWSNVQIRNHLKNTAT&lt;br /&gt;
 SLGSTNLYGSGLVNAEAATR&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we find any conserved protein domains?&#039;&#039;:&lt;br /&gt;
:Yes, there is a &amp;quot;Peptidase S8&amp;quot; domain. You can see it by clicking the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab.&lt;br /&gt;
&lt;br /&gt;
[[image:Peptidases_S8.png|center|frame|Conserved protein domains found by the NCBI Blast server]]&lt;br /&gt;
&amp;lt;!-- [[image:NCBI_BLAST_ProtDomains_Updated.JPG|center|frame|Conserved protein domains found by the NCBI Blast server]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we find any significant hits? (E-value?)&#039;&#039;:&lt;br /&gt;
:Yes, a lot. The first many hits have an E-value of 0.0, and hit #100 is still very significant (3e-98) — note that by default, only the top 100 hits are shown!&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Are all the best hits the same category of enzymes?&#039;&#039;:&lt;br /&gt;
:Yes, they are alkaline proteases (except a few that are hypothetical proteins).&lt;br /&gt;
:Note that you can click the Accession code for a hit and go directly to the corresponding entry in the database.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&#039;&#039;:&lt;br /&gt;
:Protein BLAST (BLASTP). If you have very high quality hits, they can be identified by both methods, but if the evolutionary distance is larger, BLASTP is clearly better.&lt;br /&gt;
:Note: Recall from the PyMOL exercises that information between distant genes/proteins are conserved from: Structure &amp;gt; Peptide Sequence &amp;gt; Nucleotide sequence. So when the evolutionary distance is larger, blastp would generally give better hits than blastn.&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===QUESTION 3.1===&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence: &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Subquestion: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
 &amp;gt;CLONE12&lt;br /&gt;
 AACGGGCACGGGACGCATGTAGCTGGAACAGTGGCAGCCGTAAATAATAATGGTATCGGA&lt;br /&gt;
 GTTGCCGGGGTTGCAGGAGGAAACGGCTCTACCAATAGTGGAGCAAGGTTAATGTCCACA&lt;br /&gt;
 CAAATTTTTAATAGTGATGGGGATTATACAAATAGCGAAACTCTTGTGTACAGAGCCATT&lt;br /&gt;
 GTTTATGGTGCAGATAACGGAGCTGTGATCTCGCAAAATAGCTGGGGTAGTCAGTCTCTG&lt;br /&gt;
 ACTATTAAGGAGTTGCAGAAAGCTGCGATCGACTATTTCATTGATTATGCAGGAATGGAC&lt;br /&gt;
 GAAACAGGAGAAATACAGACAGGCCCTATGAGGGGAGGTATATTTATAGCTGCCGCCGGA&lt;br /&gt;
 AACGATAACGTTTCCACTCCAAATATGCCTTCAGCTTATGAACGGGTTTTAGCTGTGGCC&lt;br /&gt;
 TCAATGGGACCAGATTTTACTAAGGCAAGCTATAGCACTTTTGGAACATGGACTGATATT&lt;br /&gt;
 ACTGCTCCTGGCGGAGATATTGACAAATTTGATTTGTCAGAATACGGAGTTCTCAGCACT&lt;br /&gt;
 TATGCCGATAATTATTATGCTTATGGAGAGGGAACATCCATGGCTTGTCCACATGTCGCC&lt;br /&gt;
 GGCGCCGCC&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task: &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Subquestion: Give a summary of your considerations.&#039;&#039;&lt;br /&gt;
**&#039;&#039;Based on the information given: is the sequence protein-coding? &#039;&#039;&lt;br /&gt;
::Yes — we know this because the PCR primers used to clone the sequence target &#039;&#039;&#039;known enzymes&#039;&#039;&#039;. Therefore, it will make sense to try to translate the sequence using Virtual Ribosome.&lt;br /&gt;
:*&#039;&#039;If it is, can you trust it will contain both a START and STOP codon? &#039;&#039;&lt;br /&gt;
::No — the PCR primers used to clone the sequence target &#039;&#039;&#039;the middle of the sequence&#039;&#039;&#039;, in other words we must assume that our sequence is a fragment. Therefore, the ORF finder in Virtual Ribosome should be set to &amp;lt;u&amp;gt;Start codon: None&amp;lt;/u&amp;gt;.&lt;br /&gt;
:*&#039;&#039;Do we know if the sequence is sense or anti-sense? &#039;&#039;&lt;br /&gt;
::No — the PCR process amplifies a stretch of double-stranded DNA. Therefore, we should let Virtual Ribosome search in &#039;&#039;&#039;all 6 reading frames&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
We want to use BLAST to search the large databases. Let&#039;s therefore try the following:&lt;br /&gt;
# BLASTN &lt;br /&gt;
# Translate to protein (using Virtual Ribosome).&lt;br /&gt;
# BLASTP&lt;br /&gt;
Both when doing BLASTN and BLASTP we will use the NR database in order to search as broadly as possible. It would not make sense to use an organism-specific database when we don&#039;t know which organism our sequence stems from.&lt;br /&gt;
&lt;br /&gt;
1) BLASTN. When trying BLASTN against NR we get some borderline significant results, but observe how small the query coverage percentages are (check also the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab!). &lt;br /&gt;
&lt;br /&gt;
[[image:NCBI BlastN_CLONE12 new_version.png]]&lt;br /&gt;
[[image:NCBI BlastN_CLONE12 Graphic Summary.png]]&lt;br /&gt;
&lt;br /&gt;
There is simply nothing in the entire NR database that has enough similarity to our whole query sequence. A search on the DNA level is only suited for finding very close hits.&lt;br /&gt;
&lt;br /&gt;
2) Translate using Virtual Ribosome with the settings we chose under Step 2 above.&lt;br /&gt;
&lt;br /&gt;
The result from the ORF finder:&lt;br /&gt;
 &lt;br /&gt;
 VIRTUAL RIBOSOME&lt;br /&gt;
 ----------------&lt;br /&gt;
 Translation table: Standard SGC0 &lt;br /&gt;
 &lt;br /&gt;
 &amp;gt;CLONE12_rframe1_ORF&lt;br /&gt;
 Reading frame: 1&lt;br /&gt;
 &lt;br /&gt;
     N  G  H  G  T  H  V  A  G  T  V  A  A  V  N  N  N  G  I  G  V  A  G  V  A  G  G  N  G  S  &lt;br /&gt;
 5&#039; AACGGGCACGGGACGCATGTAGCTGGAACAGTGGCAGCCGTAAATAATAATGGTATCGGAGTTGCCGGGGTTGCAGGAGGAAACGGCTCT 90&lt;br /&gt;
    .......................................................................................... &lt;br /&gt;
 &lt;br /&gt;
     T  N  S  G  A  R  L  M  S  T  Q  I  F  N  S  D  G  D  Y  T  N  S  E  T  L  V  Y  R  A  I  &lt;br /&gt;
 5&#039; ACCAATAGTGGAGCAAGGTTAATGTCCACACAAATTTTTAATAGTGATGGGGATTATACAAATAGCGAAACTCTTGTGTACAGAGCCATT 180&lt;br /&gt;
    .....................&amp;gt;&amp;gt;&amp;gt;.................................................................. &lt;br /&gt;
 &lt;br /&gt;
     V  Y  G  A  D  N  G  A  V  I  S  Q  N  S  W  G  S  Q  S  L  T  I  K  E  L  Q  K  A  A  I  &lt;br /&gt;
 5&#039; GTTTATGGTGCAGATAACGGAGCTGTGATCTCGCAAAATAGCTGGGGTAGTCAGTCTCTGACTATTAAGGAGTTGCAGAAAGCTGCGATC 270&lt;br /&gt;
    .........................................................)))............)))............... &lt;br /&gt;
 &lt;br /&gt;
     D  Y  F  I  D  Y  A  G  M  D  E  T  G  E  I  Q  T  G  P  M  R  G  G  I  F  I  A  A  A  G  &lt;br /&gt;
 5&#039; GACTATTTCATTGATTATGCAGGAATGGACGAAACAGGAGAAATACAGACAGGCCCTATGAGGGGAGGTATATTTATAGCTGCCGCCGGA 360&lt;br /&gt;
    ........................&amp;gt;&amp;gt;&amp;gt;..............................&amp;gt;&amp;gt;&amp;gt;.............................. &lt;br /&gt;
 &lt;br /&gt;
     N  D  N  V  S  T  P  N  M  P  S  A  Y  E  R  V  L  A  V  A  S  M  G  P  D  F  T  K  A  S  &lt;br /&gt;
 5&#039; AACGATAACGTTTCCACTCCAAATATGCCTTCAGCTTATGAACGGGTTTTAGCTGTGGCCTCAATGGGACCAGATTTTACTAAGGCAAGC 450&lt;br /&gt;
    ........................&amp;gt;&amp;gt;&amp;gt;....................................&amp;gt;&amp;gt;&amp;gt;........................ &lt;br /&gt;
 &lt;br /&gt;
     Y  S  T  F  G  T  W  T  D  I  T  A  P  G  G  D  I  D  K  F  D  L  S  E  Y  G  V  L  S  T  &lt;br /&gt;
 5&#039; TATAGCACTTTTGGAACATGGACTGATATTACTGCTCCTGGCGGAGATATTGACAAATTTGATTTGTCAGAATACGGAGTTCTCAGCACT 540&lt;br /&gt;
    ...............................................................)))........................ &lt;br /&gt;
 &lt;br /&gt;
     Y  A  D  N  Y  Y  A  Y  G  E  G  T  S  M  A  C  P  H  V  A  G  A  A  &lt;br /&gt;
 5&#039; TATGCCGATAATTATTATGCTTATGGAGAGGGAACATCCATGGCTTGTCCACATGTCGCCGGCGCCGCC 609&lt;br /&gt;
    .......................................&amp;gt;&amp;gt;&amp;gt;........................... &lt;br /&gt;
&lt;br /&gt;
(&#039;&#039;&#039;Tip:&#039;&#039;&#039; Remember that you can get the sequence in FASTA format via the &amp;lt;u&amp;gt;FASTA&amp;lt;/u&amp;gt; link on the result page):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;CLONE12_rframe1_ORF&lt;br /&gt;
 NGHGTHVAGTVAAVNNNGIGVAGVAGGNGSTNSGARLMSTQIFNSDGDYTNSETLVYRAI&lt;br /&gt;
 VYGADNGAVISQNSWGSQSLTIKELQKAAIDYFIDYAGMDETGEIQTGPMRGGIFIAAAG&lt;br /&gt;
 NDNVSTPNMPSAYERVLAVASMGPDFTKASYSTFGTWTDITAPGGDIDKFDLSEYGVLST&lt;br /&gt;
 YADNYYAYGEGTSMACPHVAGAA&lt;br /&gt;
&lt;br /&gt;
3) BLASTP&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- The first thing we notice (already while the search is running) is that there is a &amp;quot;Peptidases_S8_S53&amp;quot; domain. This is a very strong indicator of the function. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We get several very significant hits. When looking at the top hits and disregarding &amp;quot;hypothetical&amp;quot; and &amp;quot;uncharacterized&amp;quot; proteins, we can see that the rest are almost all serine proteases. Some of them are described as belonging to the of the S8 family.&lt;br /&gt;
&lt;br /&gt;
[[image:NCBI BlastP_CLONE12_rframe1_ORF new version.png]]&lt;br /&gt;
&lt;br /&gt;
Let&#039;s take a closer look at the first hit that is not &amp;quot;uncharacterized&amp;quot;:&lt;br /&gt;
[[image:NCBI_BlastP_CLONE12_best_hit.png]]&lt;br /&gt;
&lt;br /&gt;
Note that although it is not a perfect hit (our query sequence not existing in the database) it looks reasonable: the alignment covers a large part of the query with Identity of 54% and Similarity (Positives) of 69%.&lt;br /&gt;
&lt;br /&gt;
Taken together with the fact that almost all the best non-hypothetical hits are serine proteases, we have a very strong indication that our mystery sequence, CLONE12, is a peptidase or protease of the S8 family.&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.1===&lt;br /&gt;
&#039;&#039;What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
They are nearly identical (&amp;quot;one of two nearly identical (see also HTA1) subtypes&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
Protein sequence: &lt;br /&gt;
 &amp;gt;YBL003C  &lt;br /&gt;
 MSGGKGGKAGSAAKASQSRSAKAGLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTAVLEYL&lt;br /&gt;
 AAEILELAGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPK&lt;br /&gt;
 KSAKTAKASQEL*&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.2===&lt;br /&gt;
*&#039;&#039;How many high-confidence hits do we get?&#039;&#039;:&lt;br /&gt;
:3 — HTA1, HTA2 and HTZ1.&lt;br /&gt;
:Note: If you click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links for the two top hits, you will see that one is HTA1 and the other is HTA2.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&#039;&#039;:&lt;br /&gt;
:Yes; HTA1 and HTA2 are indeed nearly identical (only 2 amino acids differ).&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.3===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found?&#039;&#039;&lt;br /&gt;
:Answer: 29.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
Lad os ligesom før kræve at hits skal have en e-value på 1e-10 eller bedre (mindre) for at vi regner det for pålideligt. Dette passer også fint med, at disse hits er enige om at der er tale om en histon.&lt;br /&gt;
&lt;br /&gt;
Som udgangspunkt er der derfor 26 gode hits. Man kan dog godt argumentere for at man skal passe på hits der kun har en forudsagt funktion (&amp;quot;PREDICTED&amp;quot;) - dem har vi en enkelt af. Som det også ses er der en række af hits&#039;ne der dækker over variationer af samme protein (fx alle dem der hedder: &amp;lt;tt&amp;gt;histone H2A type-XYZ&amp;lt;/tt&amp;gt;). Det er ikke altid at alle detaljerne kommer med i den korte form af overskrifter - nogen gange kan det være nødvendigt mauelt at inspicere et hit (klikke på link&#039;et og læse hvad der står af information i det bagvedliggende database entry).&lt;br /&gt;
&lt;br /&gt;
Lad os arbejde videre med alle 26 gode hits i de næste analyser.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;These protein originates from a number of genes - but how many UNIQUE genes?&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Svar: Trick&#039;et er her af en del af hits&#039;ne er fra isoformer af det sammen protein. Et protein med to isofomer stammer stadig kun fra en enkelt gen&lt;br /&gt;
&lt;br /&gt;
Lad os fx kigge på følgende hits:&lt;br /&gt;
&lt;br /&gt;
 ref|NP_613075.1|  core histone macro-H2A.1 isoform 1 [Homo sap...   152    7e-38&lt;br /&gt;
 ref|NP_004884.1|  core histone macro-H2A.1 isoform 2 [Homo sap...   152    8e-38&lt;br /&gt;
&lt;br /&gt;
Hvis man gå ind og læser sekvens-entry&#039;et for disse hits kan man faktisk direkte se, at de stammer fra sammen gen (/gene=&amp;quot;H2AFY&amp;quot;, /gene=&amp;quot;H2AFY&amp;quot;). BEMÆRK: Her er vi heldige og alt den information vi har burg for står faktisk i overskrifterne.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
En hurtig optælling afslører følgende isoformet i vores set af BLAST hits:&lt;br /&gt;
&lt;br /&gt;
 ref|NP_613075.1|  core histone macro-H2A.1 isoform 1 [Homo sap...   152    7e-38&lt;br /&gt;
 ref|NP_004884.1|  core histone macro-H2A.1 isoform 2 [Homo sap...   152    8e-38&lt;br /&gt;
 ref|NP_613258.2|  core histone macro-H2A.1 isoform 3 [Homo sap...   152    8e-38&lt;br /&gt;
&lt;br /&gt;
 ref|NP_036544.1|  histone H2A.V isoform 1 [Homo sapiens]            133    4e-32&lt;br /&gt;
 ref|NP_619541.1|  histone H2A.V isoform 2 [Homo sapiens]            114    2e-26&lt;br /&gt;
 ref|NP_958844.1|  histone H2A.V isoform 3 [Homo sapiens]            112    8e-26&lt;br /&gt;
 ref|NP_958925.1|  histone H2A.V isoform 5 [Homo sapiens]           75.9    8e-15&lt;br /&gt;
 ref|NP_958924.1|  histone H2A.V isoform 4 [Homo sapiens]           62.8    7e-11&lt;br /&gt;
&lt;br /&gt;
Dvs at vi i alt har 27 - 2 - 4 = 21 unikke hits til gener.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===QUESTION 4.4===&lt;br /&gt;
&#039;&#039;&#039;Langt svar&#039;&#039;&#039;: Et lavt komplekst område er et stykke sekvens der ikke indeholder særligt meget information (fx. TTTTAAAA i human – findes milioner af gange i genomet).&lt;br /&gt;
&lt;br /&gt;
BLAST har et indbygget filter der masker disse områder ud i søgningen.&lt;br /&gt;
&lt;br /&gt;
Ud over at kunne slå det til og fra – har NCBI valgt et tredie mulighed (som default) – slå det fra men at vise hvor områderne er (små bogstaver):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  194 bits (494),  Expect = 1e-50, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 96/125 (76%), Positives = 108/125 (86%), Gaps = 0/125 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  4    gkggkagsaakasqsrsakagLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTavleylaae  63&lt;br /&gt;
             G+G + G A   ++SRS++AGL FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AE&lt;br /&gt;
 Sbjct  3    GRGKQGGKARAKAKSRSSRAGLQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAE  62&lt;br /&gt;
 &lt;br /&gt;
 Query  64   ilelaGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSA  123&lt;br /&gt;
             ILELAGNAARDNKKTRIIPRHLQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+ &lt;br /&gt;
 Sbjct  63   ILELAGNAARDNKKTRIIPRHLQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTE  122&lt;br /&gt;
 &lt;br /&gt;
 Query  124  KTAKA  128&lt;br /&gt;
                KA&lt;br /&gt;
 Sbjct  123  SHHKA  127&lt;br /&gt;
&lt;br /&gt;
Hvis man gentager søgningen med filteret slået til giver det følgende (jeg har også valgt at viser X’er i det filtrerede område – hvilket NORMALT er standard i BLAST):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  147 bits (372),  Expect = 2e-36, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 87/104 (83%), Positives = 93/104 (89%), Gaps = 0/104 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  25   LTFPVGRVHRLLRRGNYAQRIGSGAPVYLTXXXXXXXXXXXXXXGNAARDNKKTRIIPRH  84&lt;br /&gt;
             L FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AEILELAGNAARDNKKTRIIPRH&lt;br /&gt;
 Sbjct  24   LQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAEILELAGNAARDNKKTRIIPRH  83&lt;br /&gt;
 &lt;br /&gt;
 Query  85   LQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSAKTAKA  128&lt;br /&gt;
             LQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+    KA&lt;br /&gt;
 Sbjct  84   LQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTESHHKA  127&lt;br /&gt;
&lt;br /&gt;
Bemærk det kortere alignment og den ændrede E-værdi. &lt;br /&gt;
&lt;br /&gt;
Hvis man eksplicit slår filteret fra, ser resultatet således ud:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  194 bits (494),  Expect = 1e-50, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 96/125 (76%), Positives = 108/125 (86%), Gaps = 0/125 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  4    GKGGKAGSAAKASQSRSAKAGLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTAVLEYLAAE  63&lt;br /&gt;
             G+G + G A   ++SRS++AGL FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AE&lt;br /&gt;
 Sbjct  3    GRGKQGGKARAKAKSRSSRAGLQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAE  62&lt;br /&gt;
 &lt;br /&gt;
 Query  64   ILELAGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSA  123&lt;br /&gt;
             ILELAGNAARDNKKTRIIPRHLQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+ &lt;br /&gt;
 Sbjct  63   ILELAGNAARDNKKTRIIPRHLQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTE  122&lt;br /&gt;
 &lt;br /&gt;
 Query  124  KTAKA  128&lt;br /&gt;
                KA&lt;br /&gt;
 Sbjct  123  SHHKA  127&lt;br /&gt;
&lt;br /&gt;
Præcis samme længde, e-værdi mm. som i det første alignment.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kort svar&#039;&#039;&#039;: Ja, alignmentet bliver kortere når low-complexity filteret er slået til.&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=ExBlast-Answers_new&amp;diff=1075</id>
		<title>ExBlast-Answers new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=ExBlast-Answers_new&amp;diff=1075"/>
		<updated>2026-09-21T13:55:25Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* QUESTION 1.5 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Answers to the BLAST exercise. Values for database sizes etc. retrieved&lt;br /&gt;
September 21, 2026&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.1===&lt;br /&gt;
The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.2===&lt;br /&gt;
* &#039;&#039;Which database did you use?&#039;&#039; &lt;br /&gt;
:core_nt&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:J00336.1 (Note that the latter was also part of the sequence name for your query sequence!)&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;Max score in bits&amp;quot;)?&#039;&#039;&lt;br /&gt;
:The max score is 708 bits &lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:100% and 100%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:0.0 (actually, a number so small that it is rounded off to 0.0)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:No, of course not, since the sequences are identical&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.3===&lt;br /&gt;
* &#039;&#039;Which database did you use?&#039;&#039; &lt;br /&gt;
:core_nt&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:NM_000207.3&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;max score&amp;quot;)?&#039;&#039;&lt;br /&gt;
:603&lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:identity: 94.34% and query coverage: 99%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:7e-168 (meaning 7&amp;amp;times;10&amp;lt;sup&amp;gt;-168&amp;lt;/sup&amp;gt;)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:No&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.4===&lt;br /&gt;
* &#039;&#039;Which database did you use?&#039;&#039; &lt;br /&gt;
:Human G+T (2 databases)&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:NM_000207.3, they have the same score and are therefore equally good. Note that these are among the equally good hits found in the previous question.&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;max score&amp;quot;)?&#039;&#039;&lt;br /&gt;
:603&lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:identity: 94.34% and query coverage: 99%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:3e-170 (meaning 3&amp;amp;times;10&amp;lt;sup&amp;gt;-170&amp;lt;/sup&amp;gt;)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:No&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.5===&lt;br /&gt;
&#039;&#039;What are the sizes (in basepairs) of the databases we used for the two BLAST searches?&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
nt(Human): 1,081,933,534,067 letters (= basepairs), Human G+T: 4,017,001,775 letters (= basepairs).&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.6===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the ratio between the database sizes in the two BLAST searches?&#039;&#039;&lt;br /&gt;
:	2,933,612,979,911 / 4,017,001,775 = &amp;lt;u&amp;gt;730&amp;lt;/u&amp;gt;&lt;br /&gt;
*&#039;&#039;What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &#039;&#039;&lt;br /&gt;
:2e-47 / 3e-50 = &amp;lt;u&amp;gt;666&amp;lt;/u&amp;gt;&lt;br /&gt;
:Note: since the E-values have only three significant digits, you cannot expect to get the exact same result.&lt;br /&gt;
:Also note, you can google &amp;quot;2e-47 / 3e-50&amp;quot; directly and the answer will show up in the results.&lt;br /&gt;
*&#039;&#039;What is the relationship between database size and E-value for hits with identical alignment score?&#039;&#039;&lt;br /&gt;
:The E-value is directly proportional to the database size. &lt;br /&gt;
:Note: Conceptually this is easy to understand - getting an alignment with the given score (205 bits) is more SIGNIFICANT in the smaller database. In larger database there is a larger chance of randomly picking up matches.&lt;br /&gt;
*&#039;&#039;In conclusion: if the database size is doubled, what will happen to the E-value?&#039;&#039;&lt;br /&gt;
:Each time the database size doubles, the E-value doubles as well.&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.1===&lt;br /&gt;
&lt;br /&gt;
:There will typically be several 100% identity hits, &#039;&#039;e.g.&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 ****Alignment**** 1&lt;br /&gt;
 Title: gi|2440392781|emb|OX421481.1| Eilema caniola genome assembly, chromosome: 20&lt;br /&gt;
 Accession: OX421481&lt;br /&gt;
 Length: 22119023&lt;br /&gt;
 Max Score: 44.0&lt;br /&gt;
 Bits: 40.9604&lt;br /&gt;
 Identities: 22&lt;br /&gt;
 Align_length: 22&lt;br /&gt;
 Gaps: 0&lt;br /&gt;
 %Ident: 100.00 %&lt;br /&gt;
 Query Cover: 88 %&lt;br /&gt;
 E value: 1.88e+00&lt;br /&gt;
 TTCTGAAAGGTCCTCTCGATAC&lt;br /&gt;
 ||||||||||||||||||||||&lt;br /&gt;
 TTCTGAAAGGTCCTCTCGATAC&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the typical length of the hits (the alignment length)?&#039;&#039;:&lt;br /&gt;
:Typically around 17-22 base pairs.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the typical % identity?&#039;&#039;:&lt;br /&gt;
:90% - 100%&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;In what range are the bit-scores (&amp;quot;max score)?&#039;&#039;:&lt;br /&gt;
:typically 30-40 bits.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the range of the E-values?&#039;&#039;:&lt;br /&gt;
:1.88e+00 - 2.29e+01&lt;br /&gt;
:usually varying from 1 to 50 (occasionally, you might find hits as &amp;quot;good&amp;quot; as 0.1).&lt;br /&gt;
:&#039;&#039;&#039;Note&#039;&#039;&#039;: we chose to use an E-value threshold of 50.0. The default is 0.05.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.2===&lt;br /&gt;
&#039;&#039;What is the biological significance of the hits you found / is there any biological meaning?&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
This makes absolutely NO biological sense(!) The hits are real enough as such, they represent sequences that actually are in the database. But we know that our query sequences are completely random and therefore have no evolutionary relationship with the hits. The only reason we found our hits is that the database is so vast that we for for purely stochastic reasons happen upon sequences that are similar.&lt;br /&gt;
&lt;br /&gt;
The E-values tell us precisely this: As described in the BLAST lecture, the alignment score will follow an extreme value distribution for those sequences that are not related to our query sequences, and the E-value is &#039;&#039;the expected number&#039;&#039; of spurious (unrelated) hits with the given alignment score or better, given the database size.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; Don&#039;t be confused by the difference between alignment score and bit score; bit score is simply the alignment score normalized by a constant factor which gives a result expressible in bits.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.3===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
*&#039;&#039;How big is the database this time? &#039;&#039;:&lt;br /&gt;
:Number of letters (amino acids): 243,461,748,389&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
*&#039;&#039;What is the typical length of the alignment and do they contain gaps?&#039;&#039;:&lt;br /&gt;
:Typically 15-22. Rarely gaps, but several mismatches.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the range of E-values?&#039;&#039;:&lt;br /&gt;
:Typically 100-1000 &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar) - do you find any that look plausible, if we for a moment ignore the length/E-value?&#039;&#039;&lt;br /&gt;
:Yes, maybe. See &#039;&#039;e.g.&#039;&#039; the alignment below, it has 77% identities (but it is way too short to be significant, as the E-value tells us).&lt;br /&gt;
&lt;br /&gt;
 ****Alignment**** 1&lt;br /&gt;
 Title: ref|WP_179589105.1| non-ribosomal peptide synthetase [Pigmentiphaga litoralis] &amp;gt;gb|NYE25977.1| amino acid adenylation domain-containing protein [Pigmentiphaga litoralis] &amp;gt;gb|NYE85097.1| amino acid adenylation domain- containing protein [Pigmentiphaga litoralis]&lt;br /&gt;
 Accession: WP_179589105&lt;br /&gt;
 Length: 1782&lt;br /&gt;
 Max Score: 67.0&lt;br /&gt;
 Bits: 30.4166&lt;br /&gt;
 Identities: 8&lt;br /&gt;
 Align_length: 22&lt;br /&gt;
 Gaps: 0&lt;br /&gt;
 %Ident: 36.36 %&lt;br /&gt;
 Query Cover: 88 %&lt;br /&gt;
 E value: 1.25e+02&lt;br /&gt;
 LTNNVNMHWTLPYTVSHVYVNP&lt;br /&gt;
 L   ++ HW +P+T+SH++ +P&lt;br /&gt;
 LAARISQHWCVPFTISHIFDHP&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;If we had used the default E-value cutoff of 10 would any hits have been found?&#039;&#039;:&lt;br /&gt;
:No (note: the default is actually 0.05 now). Note the difference from the nucleotide database searches (whose E-values were typically in the range 1-50): if we had run BLASTN with an E-value threshold of 1000, we would have had many pages of hits for each query sequence.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.4===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&#039;&#039;:&lt;br /&gt;
:The risk of getting a false hit (an unrelated sequence with a &amp;quot;decent&amp;quot; E-value) is much larger when working with DNA sequences. Remember than we used 50 as E-value cut-off for BLASTN, while we used 1000 with BLASTP in order to see any hits at all.&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ===QUESTION 3.1===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we get any significant hits?&#039;&#039;&lt;br /&gt;
:Yes, there are 20 hits with an E-value of &amp;quot;0.0&amp;quot; (&#039;&#039;i.e.&#039;&#039; so small that is is rounded to zero) — and the next hits are also extremely significant. The first hit (S48754) furthermore has a query coverage of 100% and an identity of 100% (this is actually the source of our query).&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What kind of genes (function) do we find?&#039;&#039;&lt;br /&gt;
:All the high-quality hits are alkaline serine proteases from the genera &#039;&#039;Bacillus&#039;&#039; or &#039;&#039;Alkalihalobacillus&#039;&#039; — except some hits that are whole genome sequences.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 3.2===&lt;br /&gt;
Note 1: remember to use the ORF Finder in Virtual Ribosome! Since we are told the sequence is a full-length transcript, we can assume that the START and STOP codons are included and set the ORF finder to &amp;quot;&amp;lt;u&amp;gt;Start codon: Any&amp;lt;/u&amp;gt;&amp;quot; (in this case, it would have given the same result to use  &amp;quot;&amp;lt;u&amp;gt;Start codon: Strict&amp;lt;/u&amp;gt;&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
Note 2: you can choose the standard genetic code (Table 1) or alternatively Table 11 (&amp;lt;u&amp;gt;Bacterial and Plant Plastid&amp;lt;/u&amp;gt;). The only difference is that Table 11 allows some extra, rarely occurring, start codons.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Report your translated protein sequence in FASTA format.&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01_rframe2_ORF&lt;br /&gt;
 MKKPLGKIVASTALLISVAFSSSIASAAEEAKEKYLIGFNEQEAVSEFVEQVEANDEVAI&lt;br /&gt;
 LSEEEEVEIELLHEFETIPVLSVELSPEDVDALELDPAISYIEEDAEVTTMAQSVPWGIS&lt;br /&gt;
 RVQAPAAHNRGLTGSGVKVAVLDTGISTHPDLNIRGGASFVPGEPSTQDGNGHGTHVAGT&lt;br /&gt;
 IAALNNSIGVLGVAPSAELYAVKVLGASGSGSVSSIAQGLEWAGNNGMHVANLSLGSPSP&lt;br /&gt;
 SATLEQAVNSATSRGVLVVAASGNSGAGSISYPARYANAMAVGATDQNNNRASFSQYGAG&lt;br /&gt;
 LDIVAPGVNVQSTYPGSTYASLNGTSMATPHVAGAAALVKQKNPSWSNVQIRNHLKNTAT&lt;br /&gt;
 SLGSTNLYGSGLVNAEAATR&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we find any conserved protein domains?&#039;&#039;:&lt;br /&gt;
:Yes, there is a &amp;quot;Peptidase S8&amp;quot; domain. You can see it by clicking the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab.&lt;br /&gt;
&lt;br /&gt;
[[image:Peptidases_S8.png|center|frame|Conserved protein domains found by the NCBI Blast server]]&lt;br /&gt;
&amp;lt;!-- [[image:NCBI_BLAST_ProtDomains_Updated.JPG|center|frame|Conserved protein domains found by the NCBI Blast server]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we find any significant hits? (E-value?)&#039;&#039;:&lt;br /&gt;
:Yes, a lot. The first many hits have an E-value of 0.0, and hit #100 is still very significant (3e-98) — note that by default, only the top 100 hits are shown!&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Are all the best hits the same category of enzymes?&#039;&#039;:&lt;br /&gt;
:Yes, they are alkaline proteases (except a few that are hypothetical proteins).&lt;br /&gt;
:Note that you can click the Accession code for a hit and go directly to the corresponding entry in the database.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&#039;&#039;:&lt;br /&gt;
:Protein BLAST (BLASTP). If you have very high quality hits, they can be identified by both methods, but if the evolutionary distance is larger, BLASTP is clearly better.&lt;br /&gt;
:Note: Recall from the PyMOL exercises that information between distant genes/proteins are conserved from: Structure &amp;gt; Peptide Sequence &amp;gt; Nucleotide sequence. So when the evolutionary distance is larger, blastp would generally give better hits than blastn.&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===QUESTION 3.1===&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence: &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Subquestion: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
 &amp;gt;CLONE12&lt;br /&gt;
 AACGGGCACGGGACGCATGTAGCTGGAACAGTGGCAGCCGTAAATAATAATGGTATCGGA&lt;br /&gt;
 GTTGCCGGGGTTGCAGGAGGAAACGGCTCTACCAATAGTGGAGCAAGGTTAATGTCCACA&lt;br /&gt;
 CAAATTTTTAATAGTGATGGGGATTATACAAATAGCGAAACTCTTGTGTACAGAGCCATT&lt;br /&gt;
 GTTTATGGTGCAGATAACGGAGCTGTGATCTCGCAAAATAGCTGGGGTAGTCAGTCTCTG&lt;br /&gt;
 ACTATTAAGGAGTTGCAGAAAGCTGCGATCGACTATTTCATTGATTATGCAGGAATGGAC&lt;br /&gt;
 GAAACAGGAGAAATACAGACAGGCCCTATGAGGGGAGGTATATTTATAGCTGCCGCCGGA&lt;br /&gt;
 AACGATAACGTTTCCACTCCAAATATGCCTTCAGCTTATGAACGGGTTTTAGCTGTGGCC&lt;br /&gt;
 TCAATGGGACCAGATTTTACTAAGGCAAGCTATAGCACTTTTGGAACATGGACTGATATT&lt;br /&gt;
 ACTGCTCCTGGCGGAGATATTGACAAATTTGATTTGTCAGAATACGGAGTTCTCAGCACT&lt;br /&gt;
 TATGCCGATAATTATTATGCTTATGGAGAGGGAACATCCATGGCTTGTCCACATGTCGCC&lt;br /&gt;
 GGCGCCGCC&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task: &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Subquestion: Give a summary of your considerations.&#039;&#039;&lt;br /&gt;
**&#039;&#039;Based on the information given: is the sequence protein-coding? &#039;&#039;&lt;br /&gt;
::Yes — we know this because the PCR primers used to clone the sequence target &#039;&#039;&#039;known enzymes&#039;&#039;&#039;. Therefore, it will make sense to try to translate the sequence using Virtual Ribosome.&lt;br /&gt;
:*&#039;&#039;If it is, can you trust it will contain both a START and STOP codon? &#039;&#039;&lt;br /&gt;
::No — the PCR primers used to clone the sequence target &#039;&#039;&#039;the middle of the sequence&#039;&#039;&#039;, in other words we must assume that our sequence is a fragment. Therefore, the ORF finder in Virtual Ribosome should be set to &amp;lt;u&amp;gt;Start codon: None&amp;lt;/u&amp;gt;.&lt;br /&gt;
:*&#039;&#039;Do we know if the sequence is sense or anti-sense? &#039;&#039;&lt;br /&gt;
::No — the PCR process amplifies a stretch of double-stranded DNA. Therefore, we should let Virtual Ribosome search in &#039;&#039;&#039;all 6 reading frames&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
We want to use BLAST to search the large databases. Let&#039;s therefore try the following:&lt;br /&gt;
# BLASTN &lt;br /&gt;
# Translate to protein (using Virtual Ribosome).&lt;br /&gt;
# BLASTP&lt;br /&gt;
Both when doing BLASTN and BLASTP we will use the NR database in order to search as broadly as possible. It would not make sense to use an organism-specific database when we don&#039;t know which organism our sequence stems from.&lt;br /&gt;
&lt;br /&gt;
1) BLASTN. When trying BLASTN against NR we get some borderline significant results, but observe how small the query coverage percentages are (check also the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab!). &lt;br /&gt;
&lt;br /&gt;
[[image:NCBI BlastN_CLONE12 new_version.png]]&lt;br /&gt;
[[image:NCBI BlastN_CLONE12 Graphic Summary.png]]&lt;br /&gt;
&lt;br /&gt;
There is simply nothing in the entire NR database that has enough similarity to our whole query sequence. A search on the DNA level is only suited for finding very close hits.&lt;br /&gt;
&lt;br /&gt;
2) Translate using Virtual Ribosome with the settings we chose under Step 2 above.&lt;br /&gt;
&lt;br /&gt;
The result from the ORF finder:&lt;br /&gt;
 &lt;br /&gt;
 VIRTUAL RIBOSOME&lt;br /&gt;
 ----------------&lt;br /&gt;
 Translation table: Standard SGC0 &lt;br /&gt;
 &lt;br /&gt;
 &amp;gt;CLONE12_rframe1_ORF&lt;br /&gt;
 Reading frame: 1&lt;br /&gt;
 &lt;br /&gt;
     N  G  H  G  T  H  V  A  G  T  V  A  A  V  N  N  N  G  I  G  V  A  G  V  A  G  G  N  G  S  &lt;br /&gt;
 5&#039; AACGGGCACGGGACGCATGTAGCTGGAACAGTGGCAGCCGTAAATAATAATGGTATCGGAGTTGCCGGGGTTGCAGGAGGAAACGGCTCT 90&lt;br /&gt;
    .......................................................................................... &lt;br /&gt;
 &lt;br /&gt;
     T  N  S  G  A  R  L  M  S  T  Q  I  F  N  S  D  G  D  Y  T  N  S  E  T  L  V  Y  R  A  I  &lt;br /&gt;
 5&#039; ACCAATAGTGGAGCAAGGTTAATGTCCACACAAATTTTTAATAGTGATGGGGATTATACAAATAGCGAAACTCTTGTGTACAGAGCCATT 180&lt;br /&gt;
    .....................&amp;gt;&amp;gt;&amp;gt;.................................................................. &lt;br /&gt;
 &lt;br /&gt;
     V  Y  G  A  D  N  G  A  V  I  S  Q  N  S  W  G  S  Q  S  L  T  I  K  E  L  Q  K  A  A  I  &lt;br /&gt;
 5&#039; GTTTATGGTGCAGATAACGGAGCTGTGATCTCGCAAAATAGCTGGGGTAGTCAGTCTCTGACTATTAAGGAGTTGCAGAAAGCTGCGATC 270&lt;br /&gt;
    .........................................................)))............)))............... &lt;br /&gt;
 &lt;br /&gt;
     D  Y  F  I  D  Y  A  G  M  D  E  T  G  E  I  Q  T  G  P  M  R  G  G  I  F  I  A  A  A  G  &lt;br /&gt;
 5&#039; GACTATTTCATTGATTATGCAGGAATGGACGAAACAGGAGAAATACAGACAGGCCCTATGAGGGGAGGTATATTTATAGCTGCCGCCGGA 360&lt;br /&gt;
    ........................&amp;gt;&amp;gt;&amp;gt;..............................&amp;gt;&amp;gt;&amp;gt;.............................. &lt;br /&gt;
 &lt;br /&gt;
     N  D  N  V  S  T  P  N  M  P  S  A  Y  E  R  V  L  A  V  A  S  M  G  P  D  F  T  K  A  S  &lt;br /&gt;
 5&#039; AACGATAACGTTTCCACTCCAAATATGCCTTCAGCTTATGAACGGGTTTTAGCTGTGGCCTCAATGGGACCAGATTTTACTAAGGCAAGC 450&lt;br /&gt;
    ........................&amp;gt;&amp;gt;&amp;gt;....................................&amp;gt;&amp;gt;&amp;gt;........................ &lt;br /&gt;
 &lt;br /&gt;
     Y  S  T  F  G  T  W  T  D  I  T  A  P  G  G  D  I  D  K  F  D  L  S  E  Y  G  V  L  S  T  &lt;br /&gt;
 5&#039; TATAGCACTTTTGGAACATGGACTGATATTACTGCTCCTGGCGGAGATATTGACAAATTTGATTTGTCAGAATACGGAGTTCTCAGCACT 540&lt;br /&gt;
    ...............................................................)))........................ &lt;br /&gt;
 &lt;br /&gt;
     Y  A  D  N  Y  Y  A  Y  G  E  G  T  S  M  A  C  P  H  V  A  G  A  A  &lt;br /&gt;
 5&#039; TATGCCGATAATTATTATGCTTATGGAGAGGGAACATCCATGGCTTGTCCACATGTCGCCGGCGCCGCC 609&lt;br /&gt;
    .......................................&amp;gt;&amp;gt;&amp;gt;........................... &lt;br /&gt;
&lt;br /&gt;
(&#039;&#039;&#039;Tip:&#039;&#039;&#039; Remember that you can get the sequence in FASTA format via the &amp;lt;u&amp;gt;FASTA&amp;lt;/u&amp;gt; link on the result page):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;CLONE12_rframe1_ORF&lt;br /&gt;
 NGHGTHVAGTVAAVNNNGIGVAGVAGGNGSTNSGARLMSTQIFNSDGDYTNSETLVYRAI&lt;br /&gt;
 VYGADNGAVISQNSWGSQSLTIKELQKAAIDYFIDYAGMDETGEIQTGPMRGGIFIAAAG&lt;br /&gt;
 NDNVSTPNMPSAYERVLAVASMGPDFTKASYSTFGTWTDITAPGGDIDKFDLSEYGVLST&lt;br /&gt;
 YADNYYAYGEGTSMACPHVAGAA&lt;br /&gt;
&lt;br /&gt;
3) BLASTP&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- The first thing we notice (already while the search is running) is that there is a &amp;quot;Peptidases_S8_S53&amp;quot; domain. This is a very strong indicator of the function. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We get several very significant hits. When looking at the top hits and disregarding &amp;quot;hypothetical&amp;quot; and &amp;quot;uncharacterized&amp;quot; proteins, we can see that the rest are almost all serine proteases. Some of them are described as belonging to the of the S8 family.&lt;br /&gt;
&lt;br /&gt;
[[image:NCBI BlastP_CLONE12_rframe1_ORF new version.png]]&lt;br /&gt;
&lt;br /&gt;
Let&#039;s take a closer look at the first hit that is not &amp;quot;uncharacterized&amp;quot;:&lt;br /&gt;
[[image:NCBI_BlastP_CLONE12_best_hit.png]]&lt;br /&gt;
&lt;br /&gt;
Note that although it is not a perfect hit (our query sequence not existing in the database) it looks reasonable: the alignment covers a large part of the query with Identity of 54% and Similarity (Positives) of 69%.&lt;br /&gt;
&lt;br /&gt;
Taken together with the fact that almost all the best non-hypothetical hits are serine proteases, we have a very strong indication that our mystery sequence, CLONE12, is a peptidase or protease of the S8 family.&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.1===&lt;br /&gt;
&#039;&#039;What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
They are nearly identical (&amp;quot;one of two nearly identical (see also HTA1) subtypes&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
Protein sequence: &lt;br /&gt;
 &amp;gt;YBL003C  &lt;br /&gt;
 MSGGKGGKAGSAAKASQSRSAKAGLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTAVLEYL&lt;br /&gt;
 AAEILELAGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPK&lt;br /&gt;
 KSAKTAKASQEL*&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.2===&lt;br /&gt;
*&#039;&#039;How many high-confidence hits do we get?&#039;&#039;:&lt;br /&gt;
:3 — HTA1, HTA2 and HTZ1.&lt;br /&gt;
:Note: If you click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links for the two top hits, you will see that one is HTA1 and the other is HTA2.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&#039;&#039;:&lt;br /&gt;
:Yes; HTA1 and HTA2 are indeed nearly identical (only 2 amino acids differ).&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.3===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found?&#039;&#039;&lt;br /&gt;
:Answer: 29.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
Lad os ligesom før kræve at hits skal have en e-value på 1e-10 eller bedre (mindre) for at vi regner det for pålideligt. Dette passer også fint med, at disse hits er enige om at der er tale om en histon.&lt;br /&gt;
&lt;br /&gt;
Som udgangspunkt er der derfor 26 gode hits. Man kan dog godt argumentere for at man skal passe på hits der kun har en forudsagt funktion (&amp;quot;PREDICTED&amp;quot;) - dem har vi en enkelt af. Som det også ses er der en række af hits&#039;ne der dækker over variationer af samme protein (fx alle dem der hedder: &amp;lt;tt&amp;gt;histone H2A type-XYZ&amp;lt;/tt&amp;gt;). Det er ikke altid at alle detaljerne kommer med i den korte form af overskrifter - nogen gange kan det være nødvendigt mauelt at inspicere et hit (klikke på link&#039;et og læse hvad der står af information i det bagvedliggende database entry).&lt;br /&gt;
&lt;br /&gt;
Lad os arbejde videre med alle 26 gode hits i de næste analyser.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;These protein originates from a number of genes - but how many UNIQUE genes?&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Svar: Trick&#039;et er her af en del af hits&#039;ne er fra isoformer af det sammen protein. Et protein med to isofomer stammer stadig kun fra en enkelt gen&lt;br /&gt;
&lt;br /&gt;
Lad os fx kigge på følgende hits:&lt;br /&gt;
&lt;br /&gt;
 ref|NP_613075.1|  core histone macro-H2A.1 isoform 1 [Homo sap...   152    7e-38&lt;br /&gt;
 ref|NP_004884.1|  core histone macro-H2A.1 isoform 2 [Homo sap...   152    8e-38&lt;br /&gt;
&lt;br /&gt;
Hvis man gå ind og læser sekvens-entry&#039;et for disse hits kan man faktisk direkte se, at de stammer fra sammen gen (/gene=&amp;quot;H2AFY&amp;quot;, /gene=&amp;quot;H2AFY&amp;quot;). BEMÆRK: Her er vi heldige og alt den information vi har burg for står faktisk i overskrifterne.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
En hurtig optælling afslører følgende isoformet i vores set af BLAST hits:&lt;br /&gt;
&lt;br /&gt;
 ref|NP_613075.1|  core histone macro-H2A.1 isoform 1 [Homo sap...   152    7e-38&lt;br /&gt;
 ref|NP_004884.1|  core histone macro-H2A.1 isoform 2 [Homo sap...   152    8e-38&lt;br /&gt;
 ref|NP_613258.2|  core histone macro-H2A.1 isoform 3 [Homo sap...   152    8e-38&lt;br /&gt;
&lt;br /&gt;
 ref|NP_036544.1|  histone H2A.V isoform 1 [Homo sapiens]            133    4e-32&lt;br /&gt;
 ref|NP_619541.1|  histone H2A.V isoform 2 [Homo sapiens]            114    2e-26&lt;br /&gt;
 ref|NP_958844.1|  histone H2A.V isoform 3 [Homo sapiens]            112    8e-26&lt;br /&gt;
 ref|NP_958925.1|  histone H2A.V isoform 5 [Homo sapiens]           75.9    8e-15&lt;br /&gt;
 ref|NP_958924.1|  histone H2A.V isoform 4 [Homo sapiens]           62.8    7e-11&lt;br /&gt;
&lt;br /&gt;
Dvs at vi i alt har 27 - 2 - 4 = 21 unikke hits til gener.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===QUESTION 4.4===&lt;br /&gt;
&#039;&#039;&#039;Langt svar&#039;&#039;&#039;: Et lavt komplekst område er et stykke sekvens der ikke indeholder særligt meget information (fx. TTTTAAAA i human – findes milioner af gange i genomet).&lt;br /&gt;
&lt;br /&gt;
BLAST har et indbygget filter der masker disse områder ud i søgningen.&lt;br /&gt;
&lt;br /&gt;
Ud over at kunne slå det til og fra – har NCBI valgt et tredie mulighed (som default) – slå det fra men at vise hvor områderne er (små bogstaver):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  194 bits (494),  Expect = 1e-50, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 96/125 (76%), Positives = 108/125 (86%), Gaps = 0/125 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  4    gkggkagsaakasqsrsakagLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTavleylaae  63&lt;br /&gt;
             G+G + G A   ++SRS++AGL FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AE&lt;br /&gt;
 Sbjct  3    GRGKQGGKARAKAKSRSSRAGLQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAE  62&lt;br /&gt;
 &lt;br /&gt;
 Query  64   ilelaGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSA  123&lt;br /&gt;
             ILELAGNAARDNKKTRIIPRHLQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+ &lt;br /&gt;
 Sbjct  63   ILELAGNAARDNKKTRIIPRHLQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTE  122&lt;br /&gt;
 &lt;br /&gt;
 Query  124  KTAKA  128&lt;br /&gt;
                KA&lt;br /&gt;
 Sbjct  123  SHHKA  127&lt;br /&gt;
&lt;br /&gt;
Hvis man gentager søgningen med filteret slået til giver det følgende (jeg har også valgt at viser X’er i det filtrerede område – hvilket NORMALT er standard i BLAST):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  147 bits (372),  Expect = 2e-36, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 87/104 (83%), Positives = 93/104 (89%), Gaps = 0/104 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  25   LTFPVGRVHRLLRRGNYAQRIGSGAPVYLTXXXXXXXXXXXXXXGNAARDNKKTRIIPRH  84&lt;br /&gt;
             L FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AEILELAGNAARDNKKTRIIPRH&lt;br /&gt;
 Sbjct  24   LQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAEILELAGNAARDNKKTRIIPRH  83&lt;br /&gt;
 &lt;br /&gt;
 Query  85   LQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSAKTAKA  128&lt;br /&gt;
             LQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+    KA&lt;br /&gt;
 Sbjct  84   LQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTESHHKA  127&lt;br /&gt;
&lt;br /&gt;
Bemærk det kortere alignment og den ændrede E-værdi. &lt;br /&gt;
&lt;br /&gt;
Hvis man eksplicit slår filteret fra, ser resultatet således ud:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  194 bits (494),  Expect = 1e-50, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 96/125 (76%), Positives = 108/125 (86%), Gaps = 0/125 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  4    GKGGKAGSAAKASQSRSAKAGLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTAVLEYLAAE  63&lt;br /&gt;
             G+G + G A   ++SRS++AGL FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AE&lt;br /&gt;
 Sbjct  3    GRGKQGGKARAKAKSRSSRAGLQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAE  62&lt;br /&gt;
 &lt;br /&gt;
 Query  64   ILELAGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSA  123&lt;br /&gt;
             ILELAGNAARDNKKTRIIPRHLQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+ &lt;br /&gt;
 Sbjct  63   ILELAGNAARDNKKTRIIPRHLQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTE  122&lt;br /&gt;
 &lt;br /&gt;
 Query  124  KTAKA  128&lt;br /&gt;
                KA&lt;br /&gt;
 Sbjct  123  SHHKA  127&lt;br /&gt;
&lt;br /&gt;
Præcis samme længde, e-værdi mm. som i det første alignment.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kort svar&#039;&#039;&#039;: Ja, alignmentet bliver kortere når low-complexity filteret er slået til.&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=ExBlast-Answers_new&amp;diff=1074</id>
		<title>ExBlast-Answers new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=ExBlast-Answers_new&amp;diff=1074"/>
		<updated>2026-09-21T13:52:25Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Part 1: Your first BLAST search */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Answers to the BLAST exercise. Values for database sizes etc. retrieved&lt;br /&gt;
September 21, 2026&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.1===&lt;br /&gt;
The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.2===&lt;br /&gt;
* &#039;&#039;Which database did you use?&#039;&#039; &lt;br /&gt;
:core_nt&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:J00336.1 (Note that the latter was also part of the sequence name for your query sequence!)&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;Max score in bits&amp;quot;)?&#039;&#039;&lt;br /&gt;
:The max score is 708 bits &lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:100% and 100%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:0.0 (actually, a number so small that it is rounded off to 0.0)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:No, of course not, since the sequences are identical&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.3===&lt;br /&gt;
* &#039;&#039;Which database did you use?&#039;&#039; &lt;br /&gt;
:core_nt&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:NM_000207.3&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;max score&amp;quot;)?&#039;&#039;&lt;br /&gt;
:603&lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:identity: 94.34% and query coverage: 99%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:7e-168 (meaning 7&amp;amp;times;10&amp;lt;sup&amp;gt;-168&amp;lt;/sup&amp;gt;)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:No&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.4===&lt;br /&gt;
* &#039;&#039;Which database did you use?&#039;&#039; &lt;br /&gt;
:Human G+T (2 databases)&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:NM_000207.3, they have the same score and are therefore equally good. Note that these are among the equally good hits found in the previous question.&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;max score&amp;quot;)?&#039;&#039;&lt;br /&gt;
:603&lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:identity: 94.34% and query coverage: 99%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:3e-170 (meaning 3&amp;amp;times;10&amp;lt;sup&amp;gt;-170&amp;lt;/sup&amp;gt;)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:No&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.5===&lt;br /&gt;
&#039;&#039;What are the sizes (in basepairs) of the databases we used for the two BLAST searches?&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
nt(Human): 2,933,612,979,911 letters (= basepairs), Human G+T: 4,017,001,775 letters (= basepairs).&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.6===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the ratio between the database sizes in the two BLAST searches?&#039;&#039;&lt;br /&gt;
:	2,933,612,979,911 / 4,017,001,775 = &amp;lt;u&amp;gt;730&amp;lt;/u&amp;gt;&lt;br /&gt;
*&#039;&#039;What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &#039;&#039;&lt;br /&gt;
:2e-47 / 3e-50 = &amp;lt;u&amp;gt;666&amp;lt;/u&amp;gt;&lt;br /&gt;
:Note: since the E-values have only three significant digits, you cannot expect to get the exact same result.&lt;br /&gt;
:Also note, you can google &amp;quot;2e-47 / 3e-50&amp;quot; directly and the answer will show up in the results.&lt;br /&gt;
*&#039;&#039;What is the relationship between database size and E-value for hits with identical alignment score?&#039;&#039;&lt;br /&gt;
:The E-value is directly proportional to the database size. &lt;br /&gt;
:Note: Conceptually this is easy to understand - getting an alignment with the given score (205 bits) is more SIGNIFICANT in the smaller database. In larger database there is a larger chance of randomly picking up matches.&lt;br /&gt;
*&#039;&#039;In conclusion: if the database size is doubled, what will happen to the E-value?&#039;&#039;&lt;br /&gt;
:Each time the database size doubles, the E-value doubles as well.&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.1===&lt;br /&gt;
&lt;br /&gt;
:There will typically be several 100% identity hits, &#039;&#039;e.g.&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 ****Alignment**** 1&lt;br /&gt;
 Title: gi|2440392781|emb|OX421481.1| Eilema caniola genome assembly, chromosome: 20&lt;br /&gt;
 Accession: OX421481&lt;br /&gt;
 Length: 22119023&lt;br /&gt;
 Max Score: 44.0&lt;br /&gt;
 Bits: 40.9604&lt;br /&gt;
 Identities: 22&lt;br /&gt;
 Align_length: 22&lt;br /&gt;
 Gaps: 0&lt;br /&gt;
 %Ident: 100.00 %&lt;br /&gt;
 Query Cover: 88 %&lt;br /&gt;
 E value: 1.88e+00&lt;br /&gt;
 TTCTGAAAGGTCCTCTCGATAC&lt;br /&gt;
 ||||||||||||||||||||||&lt;br /&gt;
 TTCTGAAAGGTCCTCTCGATAC&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the typical length of the hits (the alignment length)?&#039;&#039;:&lt;br /&gt;
:Typically around 17-22 base pairs.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the typical % identity?&#039;&#039;:&lt;br /&gt;
:90% - 100%&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;In what range are the bit-scores (&amp;quot;max score)?&#039;&#039;:&lt;br /&gt;
:typically 30-40 bits.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the range of the E-values?&#039;&#039;:&lt;br /&gt;
:1.88e+00 - 2.29e+01&lt;br /&gt;
:usually varying from 1 to 50 (occasionally, you might find hits as &amp;quot;good&amp;quot; as 0.1).&lt;br /&gt;
:&#039;&#039;&#039;Note&#039;&#039;&#039;: we chose to use an E-value threshold of 50.0. The default is 0.05.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.2===&lt;br /&gt;
&#039;&#039;What is the biological significance of the hits you found / is there any biological meaning?&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
This makes absolutely NO biological sense(!) The hits are real enough as such, they represent sequences that actually are in the database. But we know that our query sequences are completely random and therefore have no evolutionary relationship with the hits. The only reason we found our hits is that the database is so vast that we for for purely stochastic reasons happen upon sequences that are similar.&lt;br /&gt;
&lt;br /&gt;
The E-values tell us precisely this: As described in the BLAST lecture, the alignment score will follow an extreme value distribution for those sequences that are not related to our query sequences, and the E-value is &#039;&#039;the expected number&#039;&#039; of spurious (unrelated) hits with the given alignment score or better, given the database size.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; Don&#039;t be confused by the difference between alignment score and bit score; bit score is simply the alignment score normalized by a constant factor which gives a result expressible in bits.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.3===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
*&#039;&#039;How big is the database this time? &#039;&#039;:&lt;br /&gt;
:Number of letters (amino acids): 243,461,748,389&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
*&#039;&#039;What is the typical length of the alignment and do they contain gaps?&#039;&#039;:&lt;br /&gt;
:Typically 15-22. Rarely gaps, but several mismatches.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the range of E-values?&#039;&#039;:&lt;br /&gt;
:Typically 100-1000 &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar) - do you find any that look plausible, if we for a moment ignore the length/E-value?&#039;&#039;&lt;br /&gt;
:Yes, maybe. See &#039;&#039;e.g.&#039;&#039; the alignment below, it has 77% identities (but it is way too short to be significant, as the E-value tells us).&lt;br /&gt;
&lt;br /&gt;
 ****Alignment**** 1&lt;br /&gt;
 Title: ref|WP_179589105.1| non-ribosomal peptide synthetase [Pigmentiphaga litoralis] &amp;gt;gb|NYE25977.1| amino acid adenylation domain-containing protein [Pigmentiphaga litoralis] &amp;gt;gb|NYE85097.1| amino acid adenylation domain- containing protein [Pigmentiphaga litoralis]&lt;br /&gt;
 Accession: WP_179589105&lt;br /&gt;
 Length: 1782&lt;br /&gt;
 Max Score: 67.0&lt;br /&gt;
 Bits: 30.4166&lt;br /&gt;
 Identities: 8&lt;br /&gt;
 Align_length: 22&lt;br /&gt;
 Gaps: 0&lt;br /&gt;
 %Ident: 36.36 %&lt;br /&gt;
 Query Cover: 88 %&lt;br /&gt;
 E value: 1.25e+02&lt;br /&gt;
 LTNNVNMHWTLPYTVSHVYVNP&lt;br /&gt;
 L   ++ HW +P+T+SH++ +P&lt;br /&gt;
 LAARISQHWCVPFTISHIFDHP&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;If we had used the default E-value cutoff of 10 would any hits have been found?&#039;&#039;:&lt;br /&gt;
:No (note: the default is actually 0.05 now). Note the difference from the nucleotide database searches (whose E-values were typically in the range 1-50): if we had run BLASTN with an E-value threshold of 1000, we would have had many pages of hits for each query sequence.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.4===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&#039;&#039;:&lt;br /&gt;
:The risk of getting a false hit (an unrelated sequence with a &amp;quot;decent&amp;quot; E-value) is much larger when working with DNA sequences. Remember than we used 50 as E-value cut-off for BLASTN, while we used 1000 with BLASTP in order to see any hits at all.&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ===QUESTION 3.1===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we get any significant hits?&#039;&#039;&lt;br /&gt;
:Yes, there are 20 hits with an E-value of &amp;quot;0.0&amp;quot; (&#039;&#039;i.e.&#039;&#039; so small that is is rounded to zero) — and the next hits are also extremely significant. The first hit (S48754) furthermore has a query coverage of 100% and an identity of 100% (this is actually the source of our query).&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What kind of genes (function) do we find?&#039;&#039;&lt;br /&gt;
:All the high-quality hits are alkaline serine proteases from the genera &#039;&#039;Bacillus&#039;&#039; or &#039;&#039;Alkalihalobacillus&#039;&#039; — except some hits that are whole genome sequences.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 3.2===&lt;br /&gt;
Note 1: remember to use the ORF Finder in Virtual Ribosome! Since we are told the sequence is a full-length transcript, we can assume that the START and STOP codons are included and set the ORF finder to &amp;quot;&amp;lt;u&amp;gt;Start codon: Any&amp;lt;/u&amp;gt;&amp;quot; (in this case, it would have given the same result to use  &amp;quot;&amp;lt;u&amp;gt;Start codon: Strict&amp;lt;/u&amp;gt;&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
Note 2: you can choose the standard genetic code (Table 1) or alternatively Table 11 (&amp;lt;u&amp;gt;Bacterial and Plant Plastid&amp;lt;/u&amp;gt;). The only difference is that Table 11 allows some extra, rarely occurring, start codons.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Report your translated protein sequence in FASTA format.&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01_rframe2_ORF&lt;br /&gt;
 MKKPLGKIVASTALLISVAFSSSIASAAEEAKEKYLIGFNEQEAVSEFVEQVEANDEVAI&lt;br /&gt;
 LSEEEEVEIELLHEFETIPVLSVELSPEDVDALELDPAISYIEEDAEVTTMAQSVPWGIS&lt;br /&gt;
 RVQAPAAHNRGLTGSGVKVAVLDTGISTHPDLNIRGGASFVPGEPSTQDGNGHGTHVAGT&lt;br /&gt;
 IAALNNSIGVLGVAPSAELYAVKVLGASGSGSVSSIAQGLEWAGNNGMHVANLSLGSPSP&lt;br /&gt;
 SATLEQAVNSATSRGVLVVAASGNSGAGSISYPARYANAMAVGATDQNNNRASFSQYGAG&lt;br /&gt;
 LDIVAPGVNVQSTYPGSTYASLNGTSMATPHVAGAAALVKQKNPSWSNVQIRNHLKNTAT&lt;br /&gt;
 SLGSTNLYGSGLVNAEAATR&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we find any conserved protein domains?&#039;&#039;:&lt;br /&gt;
:Yes, there is a &amp;quot;Peptidase S8&amp;quot; domain. You can see it by clicking the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab.&lt;br /&gt;
&lt;br /&gt;
[[image:Peptidases_S8.png|center|frame|Conserved protein domains found by the NCBI Blast server]]&lt;br /&gt;
&amp;lt;!-- [[image:NCBI_BLAST_ProtDomains_Updated.JPG|center|frame|Conserved protein domains found by the NCBI Blast server]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we find any significant hits? (E-value?)&#039;&#039;:&lt;br /&gt;
:Yes, a lot. The first many hits have an E-value of 0.0, and hit #100 is still very significant (3e-98) — note that by default, only the top 100 hits are shown!&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Are all the best hits the same category of enzymes?&#039;&#039;:&lt;br /&gt;
:Yes, they are alkaline proteases (except a few that are hypothetical proteins).&lt;br /&gt;
:Note that you can click the Accession code for a hit and go directly to the corresponding entry in the database.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&#039;&#039;:&lt;br /&gt;
:Protein BLAST (BLASTP). If you have very high quality hits, they can be identified by both methods, but if the evolutionary distance is larger, BLASTP is clearly better.&lt;br /&gt;
:Note: Recall from the PyMOL exercises that information between distant genes/proteins are conserved from: Structure &amp;gt; Peptide Sequence &amp;gt; Nucleotide sequence. So when the evolutionary distance is larger, blastp would generally give better hits than blastn.&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===QUESTION 3.1===&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence: &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Subquestion: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
 &amp;gt;CLONE12&lt;br /&gt;
 AACGGGCACGGGACGCATGTAGCTGGAACAGTGGCAGCCGTAAATAATAATGGTATCGGA&lt;br /&gt;
 GTTGCCGGGGTTGCAGGAGGAAACGGCTCTACCAATAGTGGAGCAAGGTTAATGTCCACA&lt;br /&gt;
 CAAATTTTTAATAGTGATGGGGATTATACAAATAGCGAAACTCTTGTGTACAGAGCCATT&lt;br /&gt;
 GTTTATGGTGCAGATAACGGAGCTGTGATCTCGCAAAATAGCTGGGGTAGTCAGTCTCTG&lt;br /&gt;
 ACTATTAAGGAGTTGCAGAAAGCTGCGATCGACTATTTCATTGATTATGCAGGAATGGAC&lt;br /&gt;
 GAAACAGGAGAAATACAGACAGGCCCTATGAGGGGAGGTATATTTATAGCTGCCGCCGGA&lt;br /&gt;
 AACGATAACGTTTCCACTCCAAATATGCCTTCAGCTTATGAACGGGTTTTAGCTGTGGCC&lt;br /&gt;
 TCAATGGGACCAGATTTTACTAAGGCAAGCTATAGCACTTTTGGAACATGGACTGATATT&lt;br /&gt;
 ACTGCTCCTGGCGGAGATATTGACAAATTTGATTTGTCAGAATACGGAGTTCTCAGCACT&lt;br /&gt;
 TATGCCGATAATTATTATGCTTATGGAGAGGGAACATCCATGGCTTGTCCACATGTCGCC&lt;br /&gt;
 GGCGCCGCC&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task: &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Subquestion: Give a summary of your considerations.&#039;&#039;&lt;br /&gt;
**&#039;&#039;Based on the information given: is the sequence protein-coding? &#039;&#039;&lt;br /&gt;
::Yes — we know this because the PCR primers used to clone the sequence target &#039;&#039;&#039;known enzymes&#039;&#039;&#039;. Therefore, it will make sense to try to translate the sequence using Virtual Ribosome.&lt;br /&gt;
:*&#039;&#039;If it is, can you trust it will contain both a START and STOP codon? &#039;&#039;&lt;br /&gt;
::No — the PCR primers used to clone the sequence target &#039;&#039;&#039;the middle of the sequence&#039;&#039;&#039;, in other words we must assume that our sequence is a fragment. Therefore, the ORF finder in Virtual Ribosome should be set to &amp;lt;u&amp;gt;Start codon: None&amp;lt;/u&amp;gt;.&lt;br /&gt;
:*&#039;&#039;Do we know if the sequence is sense or anti-sense? &#039;&#039;&lt;br /&gt;
::No — the PCR process amplifies a stretch of double-stranded DNA. Therefore, we should let Virtual Ribosome search in &#039;&#039;&#039;all 6 reading frames&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
We want to use BLAST to search the large databases. Let&#039;s therefore try the following:&lt;br /&gt;
# BLASTN &lt;br /&gt;
# Translate to protein (using Virtual Ribosome).&lt;br /&gt;
# BLASTP&lt;br /&gt;
Both when doing BLASTN and BLASTP we will use the NR database in order to search as broadly as possible. It would not make sense to use an organism-specific database when we don&#039;t know which organism our sequence stems from.&lt;br /&gt;
&lt;br /&gt;
1) BLASTN. When trying BLASTN against NR we get some borderline significant results, but observe how small the query coverage percentages are (check also the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab!). &lt;br /&gt;
&lt;br /&gt;
[[image:NCBI BlastN_CLONE12 new_version.png]]&lt;br /&gt;
[[image:NCBI BlastN_CLONE12 Graphic Summary.png]]&lt;br /&gt;
&lt;br /&gt;
There is simply nothing in the entire NR database that has enough similarity to our whole query sequence. A search on the DNA level is only suited for finding very close hits.&lt;br /&gt;
&lt;br /&gt;
2) Translate using Virtual Ribosome with the settings we chose under Step 2 above.&lt;br /&gt;
&lt;br /&gt;
The result from the ORF finder:&lt;br /&gt;
 &lt;br /&gt;
 VIRTUAL RIBOSOME&lt;br /&gt;
 ----------------&lt;br /&gt;
 Translation table: Standard SGC0 &lt;br /&gt;
 &lt;br /&gt;
 &amp;gt;CLONE12_rframe1_ORF&lt;br /&gt;
 Reading frame: 1&lt;br /&gt;
 &lt;br /&gt;
     N  G  H  G  T  H  V  A  G  T  V  A  A  V  N  N  N  G  I  G  V  A  G  V  A  G  G  N  G  S  &lt;br /&gt;
 5&#039; AACGGGCACGGGACGCATGTAGCTGGAACAGTGGCAGCCGTAAATAATAATGGTATCGGAGTTGCCGGGGTTGCAGGAGGAAACGGCTCT 90&lt;br /&gt;
    .......................................................................................... &lt;br /&gt;
 &lt;br /&gt;
     T  N  S  G  A  R  L  M  S  T  Q  I  F  N  S  D  G  D  Y  T  N  S  E  T  L  V  Y  R  A  I  &lt;br /&gt;
 5&#039; ACCAATAGTGGAGCAAGGTTAATGTCCACACAAATTTTTAATAGTGATGGGGATTATACAAATAGCGAAACTCTTGTGTACAGAGCCATT 180&lt;br /&gt;
    .....................&amp;gt;&amp;gt;&amp;gt;.................................................................. &lt;br /&gt;
 &lt;br /&gt;
     V  Y  G  A  D  N  G  A  V  I  S  Q  N  S  W  G  S  Q  S  L  T  I  K  E  L  Q  K  A  A  I  &lt;br /&gt;
 5&#039; GTTTATGGTGCAGATAACGGAGCTGTGATCTCGCAAAATAGCTGGGGTAGTCAGTCTCTGACTATTAAGGAGTTGCAGAAAGCTGCGATC 270&lt;br /&gt;
    .........................................................)))............)))............... &lt;br /&gt;
 &lt;br /&gt;
     D  Y  F  I  D  Y  A  G  M  D  E  T  G  E  I  Q  T  G  P  M  R  G  G  I  F  I  A  A  A  G  &lt;br /&gt;
 5&#039; GACTATTTCATTGATTATGCAGGAATGGACGAAACAGGAGAAATACAGACAGGCCCTATGAGGGGAGGTATATTTATAGCTGCCGCCGGA 360&lt;br /&gt;
    ........................&amp;gt;&amp;gt;&amp;gt;..............................&amp;gt;&amp;gt;&amp;gt;.............................. &lt;br /&gt;
 &lt;br /&gt;
     N  D  N  V  S  T  P  N  M  P  S  A  Y  E  R  V  L  A  V  A  S  M  G  P  D  F  T  K  A  S  &lt;br /&gt;
 5&#039; AACGATAACGTTTCCACTCCAAATATGCCTTCAGCTTATGAACGGGTTTTAGCTGTGGCCTCAATGGGACCAGATTTTACTAAGGCAAGC 450&lt;br /&gt;
    ........................&amp;gt;&amp;gt;&amp;gt;....................................&amp;gt;&amp;gt;&amp;gt;........................ &lt;br /&gt;
 &lt;br /&gt;
     Y  S  T  F  G  T  W  T  D  I  T  A  P  G  G  D  I  D  K  F  D  L  S  E  Y  G  V  L  S  T  &lt;br /&gt;
 5&#039; TATAGCACTTTTGGAACATGGACTGATATTACTGCTCCTGGCGGAGATATTGACAAATTTGATTTGTCAGAATACGGAGTTCTCAGCACT 540&lt;br /&gt;
    ...............................................................)))........................ &lt;br /&gt;
 &lt;br /&gt;
     Y  A  D  N  Y  Y  A  Y  G  E  G  T  S  M  A  C  P  H  V  A  G  A  A  &lt;br /&gt;
 5&#039; TATGCCGATAATTATTATGCTTATGGAGAGGGAACATCCATGGCTTGTCCACATGTCGCCGGCGCCGCC 609&lt;br /&gt;
    .......................................&amp;gt;&amp;gt;&amp;gt;........................... &lt;br /&gt;
&lt;br /&gt;
(&#039;&#039;&#039;Tip:&#039;&#039;&#039; Remember that you can get the sequence in FASTA format via the &amp;lt;u&amp;gt;FASTA&amp;lt;/u&amp;gt; link on the result page):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;CLONE12_rframe1_ORF&lt;br /&gt;
 NGHGTHVAGTVAAVNNNGIGVAGVAGGNGSTNSGARLMSTQIFNSDGDYTNSETLVYRAI&lt;br /&gt;
 VYGADNGAVISQNSWGSQSLTIKELQKAAIDYFIDYAGMDETGEIQTGPMRGGIFIAAAG&lt;br /&gt;
 NDNVSTPNMPSAYERVLAVASMGPDFTKASYSTFGTWTDITAPGGDIDKFDLSEYGVLST&lt;br /&gt;
 YADNYYAYGEGTSMACPHVAGAA&lt;br /&gt;
&lt;br /&gt;
3) BLASTP&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- The first thing we notice (already while the search is running) is that there is a &amp;quot;Peptidases_S8_S53&amp;quot; domain. This is a very strong indicator of the function. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We get several very significant hits. When looking at the top hits and disregarding &amp;quot;hypothetical&amp;quot; and &amp;quot;uncharacterized&amp;quot; proteins, we can see that the rest are almost all serine proteases. Some of them are described as belonging to the of the S8 family.&lt;br /&gt;
&lt;br /&gt;
[[image:NCBI BlastP_CLONE12_rframe1_ORF new version.png]]&lt;br /&gt;
&lt;br /&gt;
Let&#039;s take a closer look at the first hit that is not &amp;quot;uncharacterized&amp;quot;:&lt;br /&gt;
[[image:NCBI_BlastP_CLONE12_best_hit.png]]&lt;br /&gt;
&lt;br /&gt;
Note that although it is not a perfect hit (our query sequence not existing in the database) it looks reasonable: the alignment covers a large part of the query with Identity of 54% and Similarity (Positives) of 69%.&lt;br /&gt;
&lt;br /&gt;
Taken together with the fact that almost all the best non-hypothetical hits are serine proteases, we have a very strong indication that our mystery sequence, CLONE12, is a peptidase or protease of the S8 family.&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.1===&lt;br /&gt;
&#039;&#039;What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
They are nearly identical (&amp;quot;one of two nearly identical (see also HTA1) subtypes&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
Protein sequence: &lt;br /&gt;
 &amp;gt;YBL003C  &lt;br /&gt;
 MSGGKGGKAGSAAKASQSRSAKAGLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTAVLEYL&lt;br /&gt;
 AAEILELAGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPK&lt;br /&gt;
 KSAKTAKASQEL*&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.2===&lt;br /&gt;
*&#039;&#039;How many high-confidence hits do we get?&#039;&#039;:&lt;br /&gt;
:3 — HTA1, HTA2 and HTZ1.&lt;br /&gt;
:Note: If you click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links for the two top hits, you will see that one is HTA1 and the other is HTA2.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&#039;&#039;:&lt;br /&gt;
:Yes; HTA1 and HTA2 are indeed nearly identical (only 2 amino acids differ).&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.3===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found?&#039;&#039;&lt;br /&gt;
:Answer: 29.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
Lad os ligesom før kræve at hits skal have en e-value på 1e-10 eller bedre (mindre) for at vi regner det for pålideligt. Dette passer også fint med, at disse hits er enige om at der er tale om en histon.&lt;br /&gt;
&lt;br /&gt;
Som udgangspunkt er der derfor 26 gode hits. Man kan dog godt argumentere for at man skal passe på hits der kun har en forudsagt funktion (&amp;quot;PREDICTED&amp;quot;) - dem har vi en enkelt af. Som det også ses er der en række af hits&#039;ne der dækker over variationer af samme protein (fx alle dem der hedder: &amp;lt;tt&amp;gt;histone H2A type-XYZ&amp;lt;/tt&amp;gt;). Det er ikke altid at alle detaljerne kommer med i den korte form af overskrifter - nogen gange kan det være nødvendigt mauelt at inspicere et hit (klikke på link&#039;et og læse hvad der står af information i det bagvedliggende database entry).&lt;br /&gt;
&lt;br /&gt;
Lad os arbejde videre med alle 26 gode hits i de næste analyser.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;These protein originates from a number of genes - but how many UNIQUE genes?&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Svar: Trick&#039;et er her af en del af hits&#039;ne er fra isoformer af det sammen protein. Et protein med to isofomer stammer stadig kun fra en enkelt gen&lt;br /&gt;
&lt;br /&gt;
Lad os fx kigge på følgende hits:&lt;br /&gt;
&lt;br /&gt;
 ref|NP_613075.1|  core histone macro-H2A.1 isoform 1 [Homo sap...   152    7e-38&lt;br /&gt;
 ref|NP_004884.1|  core histone macro-H2A.1 isoform 2 [Homo sap...   152    8e-38&lt;br /&gt;
&lt;br /&gt;
Hvis man gå ind og læser sekvens-entry&#039;et for disse hits kan man faktisk direkte se, at de stammer fra sammen gen (/gene=&amp;quot;H2AFY&amp;quot;, /gene=&amp;quot;H2AFY&amp;quot;). BEMÆRK: Her er vi heldige og alt den information vi har burg for står faktisk i overskrifterne.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
En hurtig optælling afslører følgende isoformet i vores set af BLAST hits:&lt;br /&gt;
&lt;br /&gt;
 ref|NP_613075.1|  core histone macro-H2A.1 isoform 1 [Homo sap...   152    7e-38&lt;br /&gt;
 ref|NP_004884.1|  core histone macro-H2A.1 isoform 2 [Homo sap...   152    8e-38&lt;br /&gt;
 ref|NP_613258.2|  core histone macro-H2A.1 isoform 3 [Homo sap...   152    8e-38&lt;br /&gt;
&lt;br /&gt;
 ref|NP_036544.1|  histone H2A.V isoform 1 [Homo sapiens]            133    4e-32&lt;br /&gt;
 ref|NP_619541.1|  histone H2A.V isoform 2 [Homo sapiens]            114    2e-26&lt;br /&gt;
 ref|NP_958844.1|  histone H2A.V isoform 3 [Homo sapiens]            112    8e-26&lt;br /&gt;
 ref|NP_958925.1|  histone H2A.V isoform 5 [Homo sapiens]           75.9    8e-15&lt;br /&gt;
 ref|NP_958924.1|  histone H2A.V isoform 4 [Homo sapiens]           62.8    7e-11&lt;br /&gt;
&lt;br /&gt;
Dvs at vi i alt har 27 - 2 - 4 = 21 unikke hits til gener.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===QUESTION 4.4===&lt;br /&gt;
&#039;&#039;&#039;Langt svar&#039;&#039;&#039;: Et lavt komplekst område er et stykke sekvens der ikke indeholder særligt meget information (fx. TTTTAAAA i human – findes milioner af gange i genomet).&lt;br /&gt;
&lt;br /&gt;
BLAST har et indbygget filter der masker disse områder ud i søgningen.&lt;br /&gt;
&lt;br /&gt;
Ud over at kunne slå det til og fra – har NCBI valgt et tredie mulighed (som default) – slå det fra men at vise hvor områderne er (små bogstaver):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  194 bits (494),  Expect = 1e-50, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 96/125 (76%), Positives = 108/125 (86%), Gaps = 0/125 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  4    gkggkagsaakasqsrsakagLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTavleylaae  63&lt;br /&gt;
             G+G + G A   ++SRS++AGL FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AE&lt;br /&gt;
 Sbjct  3    GRGKQGGKARAKAKSRSSRAGLQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAE  62&lt;br /&gt;
 &lt;br /&gt;
 Query  64   ilelaGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSA  123&lt;br /&gt;
             ILELAGNAARDNKKTRIIPRHLQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+ &lt;br /&gt;
 Sbjct  63   ILELAGNAARDNKKTRIIPRHLQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTE  122&lt;br /&gt;
 &lt;br /&gt;
 Query  124  KTAKA  128&lt;br /&gt;
                KA&lt;br /&gt;
 Sbjct  123  SHHKA  127&lt;br /&gt;
&lt;br /&gt;
Hvis man gentager søgningen med filteret slået til giver det følgende (jeg har også valgt at viser X’er i det filtrerede område – hvilket NORMALT er standard i BLAST):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  147 bits (372),  Expect = 2e-36, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 87/104 (83%), Positives = 93/104 (89%), Gaps = 0/104 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  25   LTFPVGRVHRLLRRGNYAQRIGSGAPVYLTXXXXXXXXXXXXXXGNAARDNKKTRIIPRH  84&lt;br /&gt;
             L FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AEILELAGNAARDNKKTRIIPRH&lt;br /&gt;
 Sbjct  24   LQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAEILELAGNAARDNKKTRIIPRH  83&lt;br /&gt;
 &lt;br /&gt;
 Query  85   LQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSAKTAKA  128&lt;br /&gt;
             LQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+    KA&lt;br /&gt;
 Sbjct  84   LQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTESHHKA  127&lt;br /&gt;
&lt;br /&gt;
Bemærk det kortere alignment og den ændrede E-værdi. &lt;br /&gt;
&lt;br /&gt;
Hvis man eksplicit slår filteret fra, ser resultatet således ud:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  194 bits (494),  Expect = 1e-50, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 96/125 (76%), Positives = 108/125 (86%), Gaps = 0/125 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  4    GKGGKAGSAAKASQSRSAKAGLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTAVLEYLAAE  63&lt;br /&gt;
             G+G + G A   ++SRS++AGL FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AE&lt;br /&gt;
 Sbjct  3    GRGKQGGKARAKAKSRSSRAGLQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAE  62&lt;br /&gt;
 &lt;br /&gt;
 Query  64   ILELAGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSA  123&lt;br /&gt;
             ILELAGNAARDNKKTRIIPRHLQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+ &lt;br /&gt;
 Sbjct  63   ILELAGNAARDNKKTRIIPRHLQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTE  122&lt;br /&gt;
 &lt;br /&gt;
 Query  124  KTAKA  128&lt;br /&gt;
                KA&lt;br /&gt;
 Sbjct  123  SHHKA  127&lt;br /&gt;
&lt;br /&gt;
Præcis samme længde, e-værdi mm. som i det første alignment.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kort svar&#039;&#039;&#039;: Ja, alignmentet bliver kortere når low-complexity filteret er slået til.&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=ExBlast-Answers_new&amp;diff=1073</id>
		<title>ExBlast-Answers new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=ExBlast-Answers_new&amp;diff=1073"/>
		<updated>2026-09-21T13:47:46Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Part 1: Your first BLAST search */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Answers to the BLAST exercise. Values for database sizes etc. retrieved&lt;br /&gt;
September 21, 2026&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.1===&lt;br /&gt;
The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.2===&lt;br /&gt;
* &#039;&#039;Which database did you use?&#039;&#039; &lt;br /&gt;
:core_nt&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:J00336.1 (Note that the latter was also part of the sequence name for your query sequence!)&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;Max score in bits&amp;quot;)?&#039;&#039;&lt;br /&gt;
:The max score is 708 bits &lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:100%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:0.0 (actually, a number so small that it is rounded off to 0.0)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:No, of course not, since the sequences are identical&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.3===&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:MT335691.1 or MT335690.1 or MT335689.1, they have the same score and are therefore equally good&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;max score&amp;quot;)?&#039;&#039;&lt;br /&gt;
:205&lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:identity: 74.49% and query coverage: 76%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:2e-47 (meaning 2&amp;amp;times;10&amp;lt;sup&amp;gt;-48&amp;lt;/sup&amp;gt;)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:Yes, there are five gaps in the query sequence and two gaps in the database sequence, totaling 15 positions.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.3===&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:NM_001185098 or NM_001185097 or NM_000207, they have the same score and are therefore equally good. Note that these are among the equally good hits found in the previous question.&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;max score&amp;quot;)?&#039;&#039;&lt;br /&gt;
:205&lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:identity: 74.49% and query coverage: 76%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:3e-50 (meaning 3&amp;amp;times;10&amp;lt;sup&amp;gt;-50&amp;lt;/sup&amp;gt;)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:Yes, there are exactly the same gaps as in the previous question.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.4===&lt;br /&gt;
&#039;&#039;What are the sizes (in basepairs) of the databases we used for the two BLAST searches?&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
nt(Human): 2,933,612,979,911 letters (= basepairs), Human G+T: 4,017,001,775 letters (= basepairs).&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.5===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the ratio between the database sizes in the two BLAST searches?&#039;&#039;&lt;br /&gt;
:	2,933,612,979,911 / 4,017,001,775 = &amp;lt;u&amp;gt;730&amp;lt;/u&amp;gt;&lt;br /&gt;
*&#039;&#039;What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &#039;&#039;&lt;br /&gt;
:2e-47 / 3e-50 = &amp;lt;u&amp;gt;666&amp;lt;/u&amp;gt;&lt;br /&gt;
:Note: since the E-values have only three significant digits, you cannot expect to get the exact same result.&lt;br /&gt;
:Also note, you can google &amp;quot;2e-47 / 3e-50&amp;quot; directly and the answer will show up in the results.&lt;br /&gt;
*&#039;&#039;What is the relationship between database size and E-value for hits with identical alignment score?&#039;&#039;&lt;br /&gt;
:The E-value is directly proportional to the database size. &lt;br /&gt;
:Note: Conceptually this is easy to understand - getting an alignment with the given score (205 bits) is more SIGNIFICANT in the smaller database. In larger database there is a larger chance of randomly picking up matches.&lt;br /&gt;
*&#039;&#039;In conclusion: if the database size is doubled, what will happen to the E-value?&#039;&#039;&lt;br /&gt;
:Each time the database size doubles, the E-value doubles as well.&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.1===&lt;br /&gt;
&lt;br /&gt;
:There will typically be several 100% identity hits, &#039;&#039;e.g.&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 ****Alignment**** 1&lt;br /&gt;
 Title: gi|2440392781|emb|OX421481.1| Eilema caniola genome assembly, chromosome: 20&lt;br /&gt;
 Accession: OX421481&lt;br /&gt;
 Length: 22119023&lt;br /&gt;
 Max Score: 44.0&lt;br /&gt;
 Bits: 40.9604&lt;br /&gt;
 Identities: 22&lt;br /&gt;
 Align_length: 22&lt;br /&gt;
 Gaps: 0&lt;br /&gt;
 %Ident: 100.00 %&lt;br /&gt;
 Query Cover: 88 %&lt;br /&gt;
 E value: 1.88e+00&lt;br /&gt;
 TTCTGAAAGGTCCTCTCGATAC&lt;br /&gt;
 ||||||||||||||||||||||&lt;br /&gt;
 TTCTGAAAGGTCCTCTCGATAC&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the typical length of the hits (the alignment length)?&#039;&#039;:&lt;br /&gt;
:Typically around 17-22 base pairs.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the typical % identity?&#039;&#039;:&lt;br /&gt;
:90% - 100%&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;In what range are the bit-scores (&amp;quot;max score)?&#039;&#039;:&lt;br /&gt;
:typically 30-40 bits.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the range of the E-values?&#039;&#039;:&lt;br /&gt;
:1.88e+00 - 2.29e+01&lt;br /&gt;
:usually varying from 1 to 50 (occasionally, you might find hits as &amp;quot;good&amp;quot; as 0.1).&lt;br /&gt;
:&#039;&#039;&#039;Note&#039;&#039;&#039;: we chose to use an E-value threshold of 50.0. The default is 0.05.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.2===&lt;br /&gt;
&#039;&#039;What is the biological significance of the hits you found / is there any biological meaning?&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
This makes absolutely NO biological sense(!) The hits are real enough as such, they represent sequences that actually are in the database. But we know that our query sequences are completely random and therefore have no evolutionary relationship with the hits. The only reason we found our hits is that the database is so vast that we for for purely stochastic reasons happen upon sequences that are similar.&lt;br /&gt;
&lt;br /&gt;
The E-values tell us precisely this: As described in the BLAST lecture, the alignment score will follow an extreme value distribution for those sequences that are not related to our query sequences, and the E-value is &#039;&#039;the expected number&#039;&#039; of spurious (unrelated) hits with the given alignment score or better, given the database size.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; Don&#039;t be confused by the difference between alignment score and bit score; bit score is simply the alignment score normalized by a constant factor which gives a result expressible in bits.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.3===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
*&#039;&#039;How big is the database this time? &#039;&#039;:&lt;br /&gt;
:Number of letters (amino acids): 243,461,748,389&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
*&#039;&#039;What is the typical length of the alignment and do they contain gaps?&#039;&#039;:&lt;br /&gt;
:Typically 15-22. Rarely gaps, but several mismatches.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the range of E-values?&#039;&#039;:&lt;br /&gt;
:Typically 100-1000 &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar) - do you find any that look plausible, if we for a moment ignore the length/E-value?&#039;&#039;&lt;br /&gt;
:Yes, maybe. See &#039;&#039;e.g.&#039;&#039; the alignment below, it has 77% identities (but it is way too short to be significant, as the E-value tells us).&lt;br /&gt;
&lt;br /&gt;
 ****Alignment**** 1&lt;br /&gt;
 Title: ref|WP_179589105.1| non-ribosomal peptide synthetase [Pigmentiphaga litoralis] &amp;gt;gb|NYE25977.1| amino acid adenylation domain-containing protein [Pigmentiphaga litoralis] &amp;gt;gb|NYE85097.1| amino acid adenylation domain- containing protein [Pigmentiphaga litoralis]&lt;br /&gt;
 Accession: WP_179589105&lt;br /&gt;
 Length: 1782&lt;br /&gt;
 Max Score: 67.0&lt;br /&gt;
 Bits: 30.4166&lt;br /&gt;
 Identities: 8&lt;br /&gt;
 Align_length: 22&lt;br /&gt;
 Gaps: 0&lt;br /&gt;
 %Ident: 36.36 %&lt;br /&gt;
 Query Cover: 88 %&lt;br /&gt;
 E value: 1.25e+02&lt;br /&gt;
 LTNNVNMHWTLPYTVSHVYVNP&lt;br /&gt;
 L   ++ HW +P+T+SH++ +P&lt;br /&gt;
 LAARISQHWCVPFTISHIFDHP&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;If we had used the default E-value cutoff of 10 would any hits have been found?&#039;&#039;:&lt;br /&gt;
:No (note: the default is actually 0.05 now). Note the difference from the nucleotide database searches (whose E-values were typically in the range 1-50): if we had run BLASTN with an E-value threshold of 1000, we would have had many pages of hits for each query sequence.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.4===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&#039;&#039;:&lt;br /&gt;
:The risk of getting a false hit (an unrelated sequence with a &amp;quot;decent&amp;quot; E-value) is much larger when working with DNA sequences. Remember than we used 50 as E-value cut-off for BLASTN, while we used 1000 with BLASTP in order to see any hits at all.&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ===QUESTION 3.1===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we get any significant hits?&#039;&#039;&lt;br /&gt;
:Yes, there are 20 hits with an E-value of &amp;quot;0.0&amp;quot; (&#039;&#039;i.e.&#039;&#039; so small that is is rounded to zero) — and the next hits are also extremely significant. The first hit (S48754) furthermore has a query coverage of 100% and an identity of 100% (this is actually the source of our query).&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What kind of genes (function) do we find?&#039;&#039;&lt;br /&gt;
:All the high-quality hits are alkaline serine proteases from the genera &#039;&#039;Bacillus&#039;&#039; or &#039;&#039;Alkalihalobacillus&#039;&#039; — except some hits that are whole genome sequences.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 3.2===&lt;br /&gt;
Note 1: remember to use the ORF Finder in Virtual Ribosome! Since we are told the sequence is a full-length transcript, we can assume that the START and STOP codons are included and set the ORF finder to &amp;quot;&amp;lt;u&amp;gt;Start codon: Any&amp;lt;/u&amp;gt;&amp;quot; (in this case, it would have given the same result to use  &amp;quot;&amp;lt;u&amp;gt;Start codon: Strict&amp;lt;/u&amp;gt;&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
Note 2: you can choose the standard genetic code (Table 1) or alternatively Table 11 (&amp;lt;u&amp;gt;Bacterial and Plant Plastid&amp;lt;/u&amp;gt;). The only difference is that Table 11 allows some extra, rarely occurring, start codons.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Report your translated protein sequence in FASTA format.&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01_rframe2_ORF&lt;br /&gt;
 MKKPLGKIVASTALLISVAFSSSIASAAEEAKEKYLIGFNEQEAVSEFVEQVEANDEVAI&lt;br /&gt;
 LSEEEEVEIELLHEFETIPVLSVELSPEDVDALELDPAISYIEEDAEVTTMAQSVPWGIS&lt;br /&gt;
 RVQAPAAHNRGLTGSGVKVAVLDTGISTHPDLNIRGGASFVPGEPSTQDGNGHGTHVAGT&lt;br /&gt;
 IAALNNSIGVLGVAPSAELYAVKVLGASGSGSVSSIAQGLEWAGNNGMHVANLSLGSPSP&lt;br /&gt;
 SATLEQAVNSATSRGVLVVAASGNSGAGSISYPARYANAMAVGATDQNNNRASFSQYGAG&lt;br /&gt;
 LDIVAPGVNVQSTYPGSTYASLNGTSMATPHVAGAAALVKQKNPSWSNVQIRNHLKNTAT&lt;br /&gt;
 SLGSTNLYGSGLVNAEAATR&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we find any conserved protein domains?&#039;&#039;:&lt;br /&gt;
:Yes, there is a &amp;quot;Peptidase S8&amp;quot; domain. You can see it by clicking the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab.&lt;br /&gt;
&lt;br /&gt;
[[image:Peptidases_S8.png|center|frame|Conserved protein domains found by the NCBI Blast server]]&lt;br /&gt;
&amp;lt;!-- [[image:NCBI_BLAST_ProtDomains_Updated.JPG|center|frame|Conserved protein domains found by the NCBI Blast server]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we find any significant hits? (E-value?)&#039;&#039;:&lt;br /&gt;
:Yes, a lot. The first many hits have an E-value of 0.0, and hit #100 is still very significant (3e-98) — note that by default, only the top 100 hits are shown!&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Are all the best hits the same category of enzymes?&#039;&#039;:&lt;br /&gt;
:Yes, they are alkaline proteases (except a few that are hypothetical proteins).&lt;br /&gt;
:Note that you can click the Accession code for a hit and go directly to the corresponding entry in the database.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&#039;&#039;:&lt;br /&gt;
:Protein BLAST (BLASTP). If you have very high quality hits, they can be identified by both methods, but if the evolutionary distance is larger, BLASTP is clearly better.&lt;br /&gt;
:Note: Recall from the PyMOL exercises that information between distant genes/proteins are conserved from: Structure &amp;gt; Peptide Sequence &amp;gt; Nucleotide sequence. So when the evolutionary distance is larger, blastp would generally give better hits than blastn.&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===QUESTION 3.1===&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence: &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Subquestion: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
 &amp;gt;CLONE12&lt;br /&gt;
 AACGGGCACGGGACGCATGTAGCTGGAACAGTGGCAGCCGTAAATAATAATGGTATCGGA&lt;br /&gt;
 GTTGCCGGGGTTGCAGGAGGAAACGGCTCTACCAATAGTGGAGCAAGGTTAATGTCCACA&lt;br /&gt;
 CAAATTTTTAATAGTGATGGGGATTATACAAATAGCGAAACTCTTGTGTACAGAGCCATT&lt;br /&gt;
 GTTTATGGTGCAGATAACGGAGCTGTGATCTCGCAAAATAGCTGGGGTAGTCAGTCTCTG&lt;br /&gt;
 ACTATTAAGGAGTTGCAGAAAGCTGCGATCGACTATTTCATTGATTATGCAGGAATGGAC&lt;br /&gt;
 GAAACAGGAGAAATACAGACAGGCCCTATGAGGGGAGGTATATTTATAGCTGCCGCCGGA&lt;br /&gt;
 AACGATAACGTTTCCACTCCAAATATGCCTTCAGCTTATGAACGGGTTTTAGCTGTGGCC&lt;br /&gt;
 TCAATGGGACCAGATTTTACTAAGGCAAGCTATAGCACTTTTGGAACATGGACTGATATT&lt;br /&gt;
 ACTGCTCCTGGCGGAGATATTGACAAATTTGATTTGTCAGAATACGGAGTTCTCAGCACT&lt;br /&gt;
 TATGCCGATAATTATTATGCTTATGGAGAGGGAACATCCATGGCTTGTCCACATGTCGCC&lt;br /&gt;
 GGCGCCGCC&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task: &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Subquestion: Give a summary of your considerations.&#039;&#039;&lt;br /&gt;
**&#039;&#039;Based on the information given: is the sequence protein-coding? &#039;&#039;&lt;br /&gt;
::Yes — we know this because the PCR primers used to clone the sequence target &#039;&#039;&#039;known enzymes&#039;&#039;&#039;. Therefore, it will make sense to try to translate the sequence using Virtual Ribosome.&lt;br /&gt;
:*&#039;&#039;If it is, can you trust it will contain both a START and STOP codon? &#039;&#039;&lt;br /&gt;
::No — the PCR primers used to clone the sequence target &#039;&#039;&#039;the middle of the sequence&#039;&#039;&#039;, in other words we must assume that our sequence is a fragment. Therefore, the ORF finder in Virtual Ribosome should be set to &amp;lt;u&amp;gt;Start codon: None&amp;lt;/u&amp;gt;.&lt;br /&gt;
:*&#039;&#039;Do we know if the sequence is sense or anti-sense? &#039;&#039;&lt;br /&gt;
::No — the PCR process amplifies a stretch of double-stranded DNA. Therefore, we should let Virtual Ribosome search in &#039;&#039;&#039;all 6 reading frames&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
We want to use BLAST to search the large databases. Let&#039;s therefore try the following:&lt;br /&gt;
# BLASTN &lt;br /&gt;
# Translate to protein (using Virtual Ribosome).&lt;br /&gt;
# BLASTP&lt;br /&gt;
Both when doing BLASTN and BLASTP we will use the NR database in order to search as broadly as possible. It would not make sense to use an organism-specific database when we don&#039;t know which organism our sequence stems from.&lt;br /&gt;
&lt;br /&gt;
1) BLASTN. When trying BLASTN against NR we get some borderline significant results, but observe how small the query coverage percentages are (check also the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab!). &lt;br /&gt;
&lt;br /&gt;
[[image:NCBI BlastN_CLONE12 new_version.png]]&lt;br /&gt;
[[image:NCBI BlastN_CLONE12 Graphic Summary.png]]&lt;br /&gt;
&lt;br /&gt;
There is simply nothing in the entire NR database that has enough similarity to our whole query sequence. A search on the DNA level is only suited for finding very close hits.&lt;br /&gt;
&lt;br /&gt;
2) Translate using Virtual Ribosome with the settings we chose under Step 2 above.&lt;br /&gt;
&lt;br /&gt;
The result from the ORF finder:&lt;br /&gt;
 &lt;br /&gt;
 VIRTUAL RIBOSOME&lt;br /&gt;
 ----------------&lt;br /&gt;
 Translation table: Standard SGC0 &lt;br /&gt;
 &lt;br /&gt;
 &amp;gt;CLONE12_rframe1_ORF&lt;br /&gt;
 Reading frame: 1&lt;br /&gt;
 &lt;br /&gt;
     N  G  H  G  T  H  V  A  G  T  V  A  A  V  N  N  N  G  I  G  V  A  G  V  A  G  G  N  G  S  &lt;br /&gt;
 5&#039; AACGGGCACGGGACGCATGTAGCTGGAACAGTGGCAGCCGTAAATAATAATGGTATCGGAGTTGCCGGGGTTGCAGGAGGAAACGGCTCT 90&lt;br /&gt;
    .......................................................................................... &lt;br /&gt;
 &lt;br /&gt;
     T  N  S  G  A  R  L  M  S  T  Q  I  F  N  S  D  G  D  Y  T  N  S  E  T  L  V  Y  R  A  I  &lt;br /&gt;
 5&#039; ACCAATAGTGGAGCAAGGTTAATGTCCACACAAATTTTTAATAGTGATGGGGATTATACAAATAGCGAAACTCTTGTGTACAGAGCCATT 180&lt;br /&gt;
    .....................&amp;gt;&amp;gt;&amp;gt;.................................................................. &lt;br /&gt;
 &lt;br /&gt;
     V  Y  G  A  D  N  G  A  V  I  S  Q  N  S  W  G  S  Q  S  L  T  I  K  E  L  Q  K  A  A  I  &lt;br /&gt;
 5&#039; GTTTATGGTGCAGATAACGGAGCTGTGATCTCGCAAAATAGCTGGGGTAGTCAGTCTCTGACTATTAAGGAGTTGCAGAAAGCTGCGATC 270&lt;br /&gt;
    .........................................................)))............)))............... &lt;br /&gt;
 &lt;br /&gt;
     D  Y  F  I  D  Y  A  G  M  D  E  T  G  E  I  Q  T  G  P  M  R  G  G  I  F  I  A  A  A  G  &lt;br /&gt;
 5&#039; GACTATTTCATTGATTATGCAGGAATGGACGAAACAGGAGAAATACAGACAGGCCCTATGAGGGGAGGTATATTTATAGCTGCCGCCGGA 360&lt;br /&gt;
    ........................&amp;gt;&amp;gt;&amp;gt;..............................&amp;gt;&amp;gt;&amp;gt;.............................. &lt;br /&gt;
 &lt;br /&gt;
     N  D  N  V  S  T  P  N  M  P  S  A  Y  E  R  V  L  A  V  A  S  M  G  P  D  F  T  K  A  S  &lt;br /&gt;
 5&#039; AACGATAACGTTTCCACTCCAAATATGCCTTCAGCTTATGAACGGGTTTTAGCTGTGGCCTCAATGGGACCAGATTTTACTAAGGCAAGC 450&lt;br /&gt;
    ........................&amp;gt;&amp;gt;&amp;gt;....................................&amp;gt;&amp;gt;&amp;gt;........................ &lt;br /&gt;
 &lt;br /&gt;
     Y  S  T  F  G  T  W  T  D  I  T  A  P  G  G  D  I  D  K  F  D  L  S  E  Y  G  V  L  S  T  &lt;br /&gt;
 5&#039; TATAGCACTTTTGGAACATGGACTGATATTACTGCTCCTGGCGGAGATATTGACAAATTTGATTTGTCAGAATACGGAGTTCTCAGCACT 540&lt;br /&gt;
    ...............................................................)))........................ &lt;br /&gt;
 &lt;br /&gt;
     Y  A  D  N  Y  Y  A  Y  G  E  G  T  S  M  A  C  P  H  V  A  G  A  A  &lt;br /&gt;
 5&#039; TATGCCGATAATTATTATGCTTATGGAGAGGGAACATCCATGGCTTGTCCACATGTCGCCGGCGCCGCC 609&lt;br /&gt;
    .......................................&amp;gt;&amp;gt;&amp;gt;........................... &lt;br /&gt;
&lt;br /&gt;
(&#039;&#039;&#039;Tip:&#039;&#039;&#039; Remember that you can get the sequence in FASTA format via the &amp;lt;u&amp;gt;FASTA&amp;lt;/u&amp;gt; link on the result page):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;CLONE12_rframe1_ORF&lt;br /&gt;
 NGHGTHVAGTVAAVNNNGIGVAGVAGGNGSTNSGARLMSTQIFNSDGDYTNSETLVYRAI&lt;br /&gt;
 VYGADNGAVISQNSWGSQSLTIKELQKAAIDYFIDYAGMDETGEIQTGPMRGGIFIAAAG&lt;br /&gt;
 NDNVSTPNMPSAYERVLAVASMGPDFTKASYSTFGTWTDITAPGGDIDKFDLSEYGVLST&lt;br /&gt;
 YADNYYAYGEGTSMACPHVAGAA&lt;br /&gt;
&lt;br /&gt;
3) BLASTP&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- The first thing we notice (already while the search is running) is that there is a &amp;quot;Peptidases_S8_S53&amp;quot; domain. This is a very strong indicator of the function. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We get several very significant hits. When looking at the top hits and disregarding &amp;quot;hypothetical&amp;quot; and &amp;quot;uncharacterized&amp;quot; proteins, we can see that the rest are almost all serine proteases. Some of them are described as belonging to the of the S8 family.&lt;br /&gt;
&lt;br /&gt;
[[image:NCBI BlastP_CLONE12_rframe1_ORF new version.png]]&lt;br /&gt;
&lt;br /&gt;
Let&#039;s take a closer look at the first hit that is not &amp;quot;uncharacterized&amp;quot;:&lt;br /&gt;
[[image:NCBI_BlastP_CLONE12_best_hit.png]]&lt;br /&gt;
&lt;br /&gt;
Note that although it is not a perfect hit (our query sequence not existing in the database) it looks reasonable: the alignment covers a large part of the query with Identity of 54% and Similarity (Positives) of 69%.&lt;br /&gt;
&lt;br /&gt;
Taken together with the fact that almost all the best non-hypothetical hits are serine proteases, we have a very strong indication that our mystery sequence, CLONE12, is a peptidase or protease of the S8 family.&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.1===&lt;br /&gt;
&#039;&#039;What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
They are nearly identical (&amp;quot;one of two nearly identical (see also HTA1) subtypes&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
Protein sequence: &lt;br /&gt;
 &amp;gt;YBL003C  &lt;br /&gt;
 MSGGKGGKAGSAAKASQSRSAKAGLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTAVLEYL&lt;br /&gt;
 AAEILELAGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPK&lt;br /&gt;
 KSAKTAKASQEL*&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.2===&lt;br /&gt;
*&#039;&#039;How many high-confidence hits do we get?&#039;&#039;:&lt;br /&gt;
:3 — HTA1, HTA2 and HTZ1.&lt;br /&gt;
:Note: If you click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links for the two top hits, you will see that one is HTA1 and the other is HTA2.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&#039;&#039;:&lt;br /&gt;
:Yes; HTA1 and HTA2 are indeed nearly identical (only 2 amino acids differ).&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.3===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found?&#039;&#039;&lt;br /&gt;
:Answer: 29.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
Lad os ligesom før kræve at hits skal have en e-value på 1e-10 eller bedre (mindre) for at vi regner det for pålideligt. Dette passer også fint med, at disse hits er enige om at der er tale om en histon.&lt;br /&gt;
&lt;br /&gt;
Som udgangspunkt er der derfor 26 gode hits. Man kan dog godt argumentere for at man skal passe på hits der kun har en forudsagt funktion (&amp;quot;PREDICTED&amp;quot;) - dem har vi en enkelt af. Som det også ses er der en række af hits&#039;ne der dækker over variationer af samme protein (fx alle dem der hedder: &amp;lt;tt&amp;gt;histone H2A type-XYZ&amp;lt;/tt&amp;gt;). Det er ikke altid at alle detaljerne kommer med i den korte form af overskrifter - nogen gange kan det være nødvendigt mauelt at inspicere et hit (klikke på link&#039;et og læse hvad der står af information i det bagvedliggende database entry).&lt;br /&gt;
&lt;br /&gt;
Lad os arbejde videre med alle 26 gode hits i de næste analyser.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;These protein originates from a number of genes - but how many UNIQUE genes?&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Svar: Trick&#039;et er her af en del af hits&#039;ne er fra isoformer af det sammen protein. Et protein med to isofomer stammer stadig kun fra en enkelt gen&lt;br /&gt;
&lt;br /&gt;
Lad os fx kigge på følgende hits:&lt;br /&gt;
&lt;br /&gt;
 ref|NP_613075.1|  core histone macro-H2A.1 isoform 1 [Homo sap...   152    7e-38&lt;br /&gt;
 ref|NP_004884.1|  core histone macro-H2A.1 isoform 2 [Homo sap...   152    8e-38&lt;br /&gt;
&lt;br /&gt;
Hvis man gå ind og læser sekvens-entry&#039;et for disse hits kan man faktisk direkte se, at de stammer fra sammen gen (/gene=&amp;quot;H2AFY&amp;quot;, /gene=&amp;quot;H2AFY&amp;quot;). BEMÆRK: Her er vi heldige og alt den information vi har burg for står faktisk i overskrifterne.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
En hurtig optælling afslører følgende isoformet i vores set af BLAST hits:&lt;br /&gt;
&lt;br /&gt;
 ref|NP_613075.1|  core histone macro-H2A.1 isoform 1 [Homo sap...   152    7e-38&lt;br /&gt;
 ref|NP_004884.1|  core histone macro-H2A.1 isoform 2 [Homo sap...   152    8e-38&lt;br /&gt;
 ref|NP_613258.2|  core histone macro-H2A.1 isoform 3 [Homo sap...   152    8e-38&lt;br /&gt;
&lt;br /&gt;
 ref|NP_036544.1|  histone H2A.V isoform 1 [Homo sapiens]            133    4e-32&lt;br /&gt;
 ref|NP_619541.1|  histone H2A.V isoform 2 [Homo sapiens]            114    2e-26&lt;br /&gt;
 ref|NP_958844.1|  histone H2A.V isoform 3 [Homo sapiens]            112    8e-26&lt;br /&gt;
 ref|NP_958925.1|  histone H2A.V isoform 5 [Homo sapiens]           75.9    8e-15&lt;br /&gt;
 ref|NP_958924.1|  histone H2A.V isoform 4 [Homo sapiens]           62.8    7e-11&lt;br /&gt;
&lt;br /&gt;
Dvs at vi i alt har 27 - 2 - 4 = 21 unikke hits til gener.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===QUESTION 4.4===&lt;br /&gt;
&#039;&#039;&#039;Langt svar&#039;&#039;&#039;: Et lavt komplekst område er et stykke sekvens der ikke indeholder særligt meget information (fx. TTTTAAAA i human – findes milioner af gange i genomet).&lt;br /&gt;
&lt;br /&gt;
BLAST har et indbygget filter der masker disse områder ud i søgningen.&lt;br /&gt;
&lt;br /&gt;
Ud over at kunne slå det til og fra – har NCBI valgt et tredie mulighed (som default) – slå det fra men at vise hvor områderne er (små bogstaver):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  194 bits (494),  Expect = 1e-50, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 96/125 (76%), Positives = 108/125 (86%), Gaps = 0/125 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  4    gkggkagsaakasqsrsakagLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTavleylaae  63&lt;br /&gt;
             G+G + G A   ++SRS++AGL FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AE&lt;br /&gt;
 Sbjct  3    GRGKQGGKARAKAKSRSSRAGLQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAE  62&lt;br /&gt;
 &lt;br /&gt;
 Query  64   ilelaGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSA  123&lt;br /&gt;
             ILELAGNAARDNKKTRIIPRHLQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+ &lt;br /&gt;
 Sbjct  63   ILELAGNAARDNKKTRIIPRHLQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTE  122&lt;br /&gt;
 &lt;br /&gt;
 Query  124  KTAKA  128&lt;br /&gt;
                KA&lt;br /&gt;
 Sbjct  123  SHHKA  127&lt;br /&gt;
&lt;br /&gt;
Hvis man gentager søgningen med filteret slået til giver det følgende (jeg har også valgt at viser X’er i det filtrerede område – hvilket NORMALT er standard i BLAST):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  147 bits (372),  Expect = 2e-36, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 87/104 (83%), Positives = 93/104 (89%), Gaps = 0/104 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  25   LTFPVGRVHRLLRRGNYAQRIGSGAPVYLTXXXXXXXXXXXXXXGNAARDNKKTRIIPRH  84&lt;br /&gt;
             L FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AEILELAGNAARDNKKTRIIPRH&lt;br /&gt;
 Sbjct  24   LQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAEILELAGNAARDNKKTRIIPRH  83&lt;br /&gt;
 &lt;br /&gt;
 Query  85   LQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSAKTAKA  128&lt;br /&gt;
             LQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+    KA&lt;br /&gt;
 Sbjct  84   LQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTESHHKA  127&lt;br /&gt;
&lt;br /&gt;
Bemærk det kortere alignment og den ændrede E-værdi. &lt;br /&gt;
&lt;br /&gt;
Hvis man eksplicit slår filteret fra, ser resultatet således ud:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  194 bits (494),  Expect = 1e-50, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 96/125 (76%), Positives = 108/125 (86%), Gaps = 0/125 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  4    GKGGKAGSAAKASQSRSAKAGLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTAVLEYLAAE  63&lt;br /&gt;
             G+G + G A   ++SRS++AGL FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AE&lt;br /&gt;
 Sbjct  3    GRGKQGGKARAKAKSRSSRAGLQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAE  62&lt;br /&gt;
 &lt;br /&gt;
 Query  64   ILELAGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSA  123&lt;br /&gt;
             ILELAGNAARDNKKTRIIPRHLQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+ &lt;br /&gt;
 Sbjct  63   ILELAGNAARDNKKTRIIPRHLQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTE  122&lt;br /&gt;
 &lt;br /&gt;
 Query  124  KTAKA  128&lt;br /&gt;
                KA&lt;br /&gt;
 Sbjct  123  SHHKA  127&lt;br /&gt;
&lt;br /&gt;
Præcis samme længde, e-værdi mm. som i det første alignment.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kort svar&#039;&#039;&#039;: Ja, alignmentet bliver kortere når low-complexity filteret er slået til.&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=ExBlast-Answers_new&amp;diff=1072</id>
		<title>ExBlast-Answers new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=ExBlast-Answers_new&amp;diff=1072"/>
		<updated>2026-09-21T13:43:36Z</updated>

		<summary type="html">&lt;p&gt;Carol: Created page with &amp;quot;Answers to the BLAST exercise. Values for database sizes etc. retrieved September 21, 2026   ==Part 1: Your first BLAST search==  ===QUESTION 1.2=== * &amp;#039;&amp;#039;what is the identifier (Accession)?&amp;#039;&amp;#039; :OL351605 or M57671 (Note that the latter was also part of the sequence name for your query sequence!) * &amp;#039;&amp;#039;what is the alignment score (&amp;quot;Max score in bits&amp;quot;)?&amp;#039;&amp;#039; :The max score is 780 bits (Raw score is 864) * &amp;#039;&amp;#039;what is the percent identity and query coverage?&amp;#039;&amp;#039; :100% * &amp;#039;&amp;#039;what is the E...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Answers to the BLAST exercise. Values for database sizes etc. retrieved&lt;br /&gt;
September 21, 2026&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.2===&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:OL351605 or M57671 (Note that the latter was also part of the sequence name for your query sequence!)&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;Max score in bits&amp;quot;)?&#039;&#039;&lt;br /&gt;
:The max score is 780 bits (Raw score is 864)&lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:100%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:0.0 (actually, a number so small that it is rounded off to 0.0)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:No, of course not, since the sequences are identical&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.2===&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:MT335691.1 or MT335690.1 or MT335689.1, they have the same score and are therefore equally good&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;max score&amp;quot;)?&#039;&#039;&lt;br /&gt;
:205&lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:identity: 74.49% and query coverage: 76%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:2e-47 (meaning 2&amp;amp;times;10&amp;lt;sup&amp;gt;-48&amp;lt;/sup&amp;gt;)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:Yes, there are five gaps in the query sequence and two gaps in the database sequence, totaling 15 positions.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.3===&lt;br /&gt;
* &#039;&#039;what is the identifier (Accession)?&#039;&#039;&lt;br /&gt;
:NM_001185098 or NM_001185097 or NM_000207, they have the same score and are therefore equally good. Note that these are among the equally good hits found in the previous question.&lt;br /&gt;
* &#039;&#039;what is the alignment score (&amp;quot;max score&amp;quot;)?&#039;&#039;&lt;br /&gt;
:205&lt;br /&gt;
* &#039;&#039;what is the percent identity and query coverage?&#039;&#039;&lt;br /&gt;
:identity: 74.49% and query coverage: 76%&lt;br /&gt;
* &#039;&#039;what is the E-value?&#039;&#039;&lt;br /&gt;
:3e-50 (meaning 3&amp;amp;times;10&amp;lt;sup&amp;gt;-50&amp;lt;/sup&amp;gt;)&lt;br /&gt;
* &#039;&#039;are there any gaps in the alignment?&#039;&#039;&lt;br /&gt;
:Yes, there are exactly the same gaps as in the previous question.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.4===&lt;br /&gt;
&#039;&#039;What are the sizes (in basepairs) of the databases we used for the two BLAST searches?&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
nt(Human): 2,933,612,979,911 letters (= basepairs), Human G+T: 4,017,001,775 letters (= basepairs).&lt;br /&gt;
&lt;br /&gt;
===QUESTION 1.5===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the ratio between the database sizes in the two BLAST searches?&#039;&#039;&lt;br /&gt;
:	2,933,612,979,911 / 4,017,001,775 = &amp;lt;u&amp;gt;730&amp;lt;/u&amp;gt;&lt;br /&gt;
*&#039;&#039;What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &#039;&#039;&lt;br /&gt;
:2e-47 / 3e-50 = &amp;lt;u&amp;gt;666&amp;lt;/u&amp;gt;&lt;br /&gt;
:Note: since the E-values have only three significant digits, you cannot expect to get the exact same result.&lt;br /&gt;
:Also note, you can google &amp;quot;2e-47 / 3e-50&amp;quot; directly and the answer will show up in the results.&lt;br /&gt;
*&#039;&#039;What is the relationship between database size and E-value for hits with identical alignment score?&#039;&#039;&lt;br /&gt;
:The E-value is directly proportional to the database size. &lt;br /&gt;
:Note: Conceptually this is easy to understand - getting an alignment with the given score (205 bits) is more SIGNIFICANT in the smaller database. In larger database there is a larger chance of randomly picking up matches.&lt;br /&gt;
*&#039;&#039;In conclusion: if the database size is doubled, what will happen to the E-value?&#039;&#039;&lt;br /&gt;
:Each time the database size doubles, the E-value doubles as well.&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.1===&lt;br /&gt;
&lt;br /&gt;
:There will typically be several 100% identity hits, &#039;&#039;e.g.&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 ****Alignment**** 1&lt;br /&gt;
 Title: gi|2440392781|emb|OX421481.1| Eilema caniola genome assembly, chromosome: 20&lt;br /&gt;
 Accession: OX421481&lt;br /&gt;
 Length: 22119023&lt;br /&gt;
 Max Score: 44.0&lt;br /&gt;
 Bits: 40.9604&lt;br /&gt;
 Identities: 22&lt;br /&gt;
 Align_length: 22&lt;br /&gt;
 Gaps: 0&lt;br /&gt;
 %Ident: 100.00 %&lt;br /&gt;
 Query Cover: 88 %&lt;br /&gt;
 E value: 1.88e+00&lt;br /&gt;
 TTCTGAAAGGTCCTCTCGATAC&lt;br /&gt;
 ||||||||||||||||||||||&lt;br /&gt;
 TTCTGAAAGGTCCTCTCGATAC&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the typical length of the hits (the alignment length)?&#039;&#039;:&lt;br /&gt;
:Typically around 17-22 base pairs.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the typical % identity?&#039;&#039;:&lt;br /&gt;
:90% - 100%&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;In what range are the bit-scores (&amp;quot;max score)?&#039;&#039;:&lt;br /&gt;
:typically 30-40 bits.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the range of the E-values?&#039;&#039;:&lt;br /&gt;
:1.88e+00 - 2.29e+01&lt;br /&gt;
:usually varying from 1 to 50 (occasionally, you might find hits as &amp;quot;good&amp;quot; as 0.1).&lt;br /&gt;
:&#039;&#039;&#039;Note&#039;&#039;&#039;: we chose to use an E-value threshold of 50.0. The default is 0.05.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.2===&lt;br /&gt;
&#039;&#039;What is the biological significance of the hits you found / is there any biological meaning?&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
This makes absolutely NO biological sense(!) The hits are real enough as such, they represent sequences that actually are in the database. But we know that our query sequences are completely random and therefore have no evolutionary relationship with the hits. The only reason we found our hits is that the database is so vast that we for for purely stochastic reasons happen upon sequences that are similar.&lt;br /&gt;
&lt;br /&gt;
The E-values tell us precisely this: As described in the BLAST lecture, the alignment score will follow an extreme value distribution for those sequences that are not related to our query sequences, and the E-value is &#039;&#039;the expected number&#039;&#039; of spurious (unrelated) hits with the given alignment score or better, given the database size.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; Don&#039;t be confused by the difference between alignment score and bit score; bit score is simply the alignment score normalized by a constant factor which gives a result expressible in bits.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.3===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
*&#039;&#039;How big is the database this time? &#039;&#039;:&lt;br /&gt;
:Number of letters (amino acids): 243,461,748,389&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
*&#039;&#039;What is the typical length of the alignment and do they contain gaps?&#039;&#039;:&lt;br /&gt;
:Typically 15-22. Rarely gaps, but several mismatches.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What is the range of E-values?&#039;&#039;:&lt;br /&gt;
:Typically 100-1000 &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar) - do you find any that look plausible, if we for a moment ignore the length/E-value?&#039;&#039;&lt;br /&gt;
:Yes, maybe. See &#039;&#039;e.g.&#039;&#039; the alignment below, it has 77% identities (but it is way too short to be significant, as the E-value tells us).&lt;br /&gt;
&lt;br /&gt;
 ****Alignment**** 1&lt;br /&gt;
 Title: ref|WP_179589105.1| non-ribosomal peptide synthetase [Pigmentiphaga litoralis] &amp;gt;gb|NYE25977.1| amino acid adenylation domain-containing protein [Pigmentiphaga litoralis] &amp;gt;gb|NYE85097.1| amino acid adenylation domain- containing protein [Pigmentiphaga litoralis]&lt;br /&gt;
 Accession: WP_179589105&lt;br /&gt;
 Length: 1782&lt;br /&gt;
 Max Score: 67.0&lt;br /&gt;
 Bits: 30.4166&lt;br /&gt;
 Identities: 8&lt;br /&gt;
 Align_length: 22&lt;br /&gt;
 Gaps: 0&lt;br /&gt;
 %Ident: 36.36 %&lt;br /&gt;
 Query Cover: 88 %&lt;br /&gt;
 E value: 1.25e+02&lt;br /&gt;
 LTNNVNMHWTLPYTVSHVYVNP&lt;br /&gt;
 L   ++ HW +P+T+SH++ +P&lt;br /&gt;
 LAARISQHWCVPFTISHIFDHP&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;If we had used the default E-value cutoff of 10 would any hits have been found?&#039;&#039;:&lt;br /&gt;
:No (note: the default is actually 0.05 now). Note the difference from the nucleotide database searches (whose E-values were typically in the range 1-50): if we had run BLASTN with an E-value threshold of 1000, we would have had many pages of hits for each query sequence.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 2.4===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&#039;&#039;:&lt;br /&gt;
:The risk of getting a false hit (an unrelated sequence with a &amp;quot;decent&amp;quot; E-value) is much larger when working with DNA sequences. Remember than we used 50 as E-value cut-off for BLASTN, while we used 1000 with BLASTP in order to see any hits at all.&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ===QUESTION 3.1===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we get any significant hits?&#039;&#039;&lt;br /&gt;
:Yes, there are 20 hits with an E-value of &amp;quot;0.0&amp;quot; (&#039;&#039;i.e.&#039;&#039; so small that is is rounded to zero) — and the next hits are also extremely significant. The first hit (S48754) furthermore has a query coverage of 100% and an identity of 100% (this is actually the source of our query).&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;What kind of genes (function) do we find?&#039;&#039;&lt;br /&gt;
:All the high-quality hits are alkaline serine proteases from the genera &#039;&#039;Bacillus&#039;&#039; or &#039;&#039;Alkalihalobacillus&#039;&#039; — except some hits that are whole genome sequences.&lt;br /&gt;
&lt;br /&gt;
===QUESTION 3.2===&lt;br /&gt;
Note 1: remember to use the ORF Finder in Virtual Ribosome! Since we are told the sequence is a full-length transcript, we can assume that the START and STOP codons are included and set the ORF finder to &amp;quot;&amp;lt;u&amp;gt;Start codon: Any&amp;lt;/u&amp;gt;&amp;quot; (in this case, it would have given the same result to use  &amp;quot;&amp;lt;u&amp;gt;Start codon: Strict&amp;lt;/u&amp;gt;&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
Note 2: you can choose the standard genetic code (Table 1) or alternatively Table 11 (&amp;lt;u&amp;gt;Bacterial and Plant Plastid&amp;lt;/u&amp;gt;). The only difference is that Table 11 allows some extra, rarely occurring, start codons.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Report your translated protein sequence in FASTA format.&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01_rframe2_ORF&lt;br /&gt;
 MKKPLGKIVASTALLISVAFSSSIASAAEEAKEKYLIGFNEQEAVSEFVEQVEANDEVAI&lt;br /&gt;
 LSEEEEVEIELLHEFETIPVLSVELSPEDVDALELDPAISYIEEDAEVTTMAQSVPWGIS&lt;br /&gt;
 RVQAPAAHNRGLTGSGVKVAVLDTGISTHPDLNIRGGASFVPGEPSTQDGNGHGTHVAGT&lt;br /&gt;
 IAALNNSIGVLGVAPSAELYAVKVLGASGSGSVSSIAQGLEWAGNNGMHVANLSLGSPSP&lt;br /&gt;
 SATLEQAVNSATSRGVLVVAASGNSGAGSISYPARYANAMAVGATDQNNNRASFSQYGAG&lt;br /&gt;
 LDIVAPGVNVQSTYPGSTYASLNGTSMATPHVAGAAALVKQKNPSWSNVQIRNHLKNTAT&lt;br /&gt;
 SLGSTNLYGSGLVNAEAATR&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we find any conserved protein domains?&#039;&#039;:&lt;br /&gt;
:Yes, there is a &amp;quot;Peptidase S8&amp;quot; domain. You can see it by clicking the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab.&lt;br /&gt;
&lt;br /&gt;
[[image:Peptidases_S8.png|center|frame|Conserved protein domains found by the NCBI Blast server]]&lt;br /&gt;
&amp;lt;!-- [[image:NCBI_BLAST_ProtDomains_Updated.JPG|center|frame|Conserved protein domains found by the NCBI Blast server]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do we find any significant hits? (E-value?)&#039;&#039;:&lt;br /&gt;
:Yes, a lot. The first many hits have an E-value of 0.0, and hit #100 is still very significant (3e-98) — note that by default, only the top 100 hits are shown!&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Are all the best hits the same category of enzymes?&#039;&#039;:&lt;br /&gt;
:Yes, they are alkaline proteases (except a few that are hypothetical proteins).&lt;br /&gt;
:Note that you can click the Accession code for a hit and go directly to the corresponding entry in the database.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&#039;&#039;:&lt;br /&gt;
:Protein BLAST (BLASTP). If you have very high quality hits, they can be identified by both methods, but if the evolutionary distance is larger, BLASTP is clearly better.&lt;br /&gt;
:Note: Recall from the PyMOL exercises that information between distant genes/proteins are conserved from: Structure &amp;gt; Peptide Sequence &amp;gt; Nucleotide sequence. So when the evolutionary distance is larger, blastp would generally give better hits than blastn.&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===QUESTION 3.1===&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence: &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Subquestion: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
 &amp;gt;CLONE12&lt;br /&gt;
 AACGGGCACGGGACGCATGTAGCTGGAACAGTGGCAGCCGTAAATAATAATGGTATCGGA&lt;br /&gt;
 GTTGCCGGGGTTGCAGGAGGAAACGGCTCTACCAATAGTGGAGCAAGGTTAATGTCCACA&lt;br /&gt;
 CAAATTTTTAATAGTGATGGGGATTATACAAATAGCGAAACTCTTGTGTACAGAGCCATT&lt;br /&gt;
 GTTTATGGTGCAGATAACGGAGCTGTGATCTCGCAAAATAGCTGGGGTAGTCAGTCTCTG&lt;br /&gt;
 ACTATTAAGGAGTTGCAGAAAGCTGCGATCGACTATTTCATTGATTATGCAGGAATGGAC&lt;br /&gt;
 GAAACAGGAGAAATACAGACAGGCCCTATGAGGGGAGGTATATTTATAGCTGCCGCCGGA&lt;br /&gt;
 AACGATAACGTTTCCACTCCAAATATGCCTTCAGCTTATGAACGGGTTTTAGCTGTGGCC&lt;br /&gt;
 TCAATGGGACCAGATTTTACTAAGGCAAGCTATAGCACTTTTGGAACATGGACTGATATT&lt;br /&gt;
 ACTGCTCCTGGCGGAGATATTGACAAATTTGATTTGTCAGAATACGGAGTTCTCAGCACT&lt;br /&gt;
 TATGCCGATAATTATTATGCTTATGGAGAGGGAACATCCATGGCTTGTCCACATGTCGCC&lt;br /&gt;
 GGCGCCGCC&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task: &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Subquestion: Give a summary of your considerations.&#039;&#039;&lt;br /&gt;
**&#039;&#039;Based on the information given: is the sequence protein-coding? &#039;&#039;&lt;br /&gt;
::Yes — we know this because the PCR primers used to clone the sequence target &#039;&#039;&#039;known enzymes&#039;&#039;&#039;. Therefore, it will make sense to try to translate the sequence using Virtual Ribosome.&lt;br /&gt;
:*&#039;&#039;If it is, can you trust it will contain both a START and STOP codon? &#039;&#039;&lt;br /&gt;
::No — the PCR primers used to clone the sequence target &#039;&#039;&#039;the middle of the sequence&#039;&#039;&#039;, in other words we must assume that our sequence is a fragment. Therefore, the ORF finder in Virtual Ribosome should be set to &amp;lt;u&amp;gt;Start codon: None&amp;lt;/u&amp;gt;.&lt;br /&gt;
:*&#039;&#039;Do we know if the sequence is sense or anti-sense? &#039;&#039;&lt;br /&gt;
::No — the PCR process amplifies a stretch of double-stranded DNA. Therefore, we should let Virtual Ribosome search in &#039;&#039;&#039;all 6 reading frames&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
We want to use BLAST to search the large databases. Let&#039;s therefore try the following:&lt;br /&gt;
# BLASTN &lt;br /&gt;
# Translate to protein (using Virtual Ribosome).&lt;br /&gt;
# BLASTP&lt;br /&gt;
Both when doing BLASTN and BLASTP we will use the NR database in order to search as broadly as possible. It would not make sense to use an organism-specific database when we don&#039;t know which organism our sequence stems from.&lt;br /&gt;
&lt;br /&gt;
1) BLASTN. When trying BLASTN against NR we get some borderline significant results, but observe how small the query coverage percentages are (check also the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab!). &lt;br /&gt;
&lt;br /&gt;
[[image:NCBI BlastN_CLONE12 new_version.png]]&lt;br /&gt;
[[image:NCBI BlastN_CLONE12 Graphic Summary.png]]&lt;br /&gt;
&lt;br /&gt;
There is simply nothing in the entire NR database that has enough similarity to our whole query sequence. A search on the DNA level is only suited for finding very close hits.&lt;br /&gt;
&lt;br /&gt;
2) Translate using Virtual Ribosome with the settings we chose under Step 2 above.&lt;br /&gt;
&lt;br /&gt;
The result from the ORF finder:&lt;br /&gt;
 &lt;br /&gt;
 VIRTUAL RIBOSOME&lt;br /&gt;
 ----------------&lt;br /&gt;
 Translation table: Standard SGC0 &lt;br /&gt;
 &lt;br /&gt;
 &amp;gt;CLONE12_rframe1_ORF&lt;br /&gt;
 Reading frame: 1&lt;br /&gt;
 &lt;br /&gt;
     N  G  H  G  T  H  V  A  G  T  V  A  A  V  N  N  N  G  I  G  V  A  G  V  A  G  G  N  G  S  &lt;br /&gt;
 5&#039; AACGGGCACGGGACGCATGTAGCTGGAACAGTGGCAGCCGTAAATAATAATGGTATCGGAGTTGCCGGGGTTGCAGGAGGAAACGGCTCT 90&lt;br /&gt;
    .......................................................................................... &lt;br /&gt;
 &lt;br /&gt;
     T  N  S  G  A  R  L  M  S  T  Q  I  F  N  S  D  G  D  Y  T  N  S  E  T  L  V  Y  R  A  I  &lt;br /&gt;
 5&#039; ACCAATAGTGGAGCAAGGTTAATGTCCACACAAATTTTTAATAGTGATGGGGATTATACAAATAGCGAAACTCTTGTGTACAGAGCCATT 180&lt;br /&gt;
    .....................&amp;gt;&amp;gt;&amp;gt;.................................................................. &lt;br /&gt;
 &lt;br /&gt;
     V  Y  G  A  D  N  G  A  V  I  S  Q  N  S  W  G  S  Q  S  L  T  I  K  E  L  Q  K  A  A  I  &lt;br /&gt;
 5&#039; GTTTATGGTGCAGATAACGGAGCTGTGATCTCGCAAAATAGCTGGGGTAGTCAGTCTCTGACTATTAAGGAGTTGCAGAAAGCTGCGATC 270&lt;br /&gt;
    .........................................................)))............)))............... &lt;br /&gt;
 &lt;br /&gt;
     D  Y  F  I  D  Y  A  G  M  D  E  T  G  E  I  Q  T  G  P  M  R  G  G  I  F  I  A  A  A  G  &lt;br /&gt;
 5&#039; GACTATTTCATTGATTATGCAGGAATGGACGAAACAGGAGAAATACAGACAGGCCCTATGAGGGGAGGTATATTTATAGCTGCCGCCGGA 360&lt;br /&gt;
    ........................&amp;gt;&amp;gt;&amp;gt;..............................&amp;gt;&amp;gt;&amp;gt;.............................. &lt;br /&gt;
 &lt;br /&gt;
     N  D  N  V  S  T  P  N  M  P  S  A  Y  E  R  V  L  A  V  A  S  M  G  P  D  F  T  K  A  S  &lt;br /&gt;
 5&#039; AACGATAACGTTTCCACTCCAAATATGCCTTCAGCTTATGAACGGGTTTTAGCTGTGGCCTCAATGGGACCAGATTTTACTAAGGCAAGC 450&lt;br /&gt;
    ........................&amp;gt;&amp;gt;&amp;gt;....................................&amp;gt;&amp;gt;&amp;gt;........................ &lt;br /&gt;
 &lt;br /&gt;
     Y  S  T  F  G  T  W  T  D  I  T  A  P  G  G  D  I  D  K  F  D  L  S  E  Y  G  V  L  S  T  &lt;br /&gt;
 5&#039; TATAGCACTTTTGGAACATGGACTGATATTACTGCTCCTGGCGGAGATATTGACAAATTTGATTTGTCAGAATACGGAGTTCTCAGCACT 540&lt;br /&gt;
    ...............................................................)))........................ &lt;br /&gt;
 &lt;br /&gt;
     Y  A  D  N  Y  Y  A  Y  G  E  G  T  S  M  A  C  P  H  V  A  G  A  A  &lt;br /&gt;
 5&#039; TATGCCGATAATTATTATGCTTATGGAGAGGGAACATCCATGGCTTGTCCACATGTCGCCGGCGCCGCC 609&lt;br /&gt;
    .......................................&amp;gt;&amp;gt;&amp;gt;........................... &lt;br /&gt;
&lt;br /&gt;
(&#039;&#039;&#039;Tip:&#039;&#039;&#039; Remember that you can get the sequence in FASTA format via the &amp;lt;u&amp;gt;FASTA&amp;lt;/u&amp;gt; link on the result page):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;CLONE12_rframe1_ORF&lt;br /&gt;
 NGHGTHVAGTVAAVNNNGIGVAGVAGGNGSTNSGARLMSTQIFNSDGDYTNSETLVYRAI&lt;br /&gt;
 VYGADNGAVISQNSWGSQSLTIKELQKAAIDYFIDYAGMDETGEIQTGPMRGGIFIAAAG&lt;br /&gt;
 NDNVSTPNMPSAYERVLAVASMGPDFTKASYSTFGTWTDITAPGGDIDKFDLSEYGVLST&lt;br /&gt;
 YADNYYAYGEGTSMACPHVAGAA&lt;br /&gt;
&lt;br /&gt;
3) BLASTP&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- The first thing we notice (already while the search is running) is that there is a &amp;quot;Peptidases_S8_S53&amp;quot; domain. This is a very strong indicator of the function. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We get several very significant hits. When looking at the top hits and disregarding &amp;quot;hypothetical&amp;quot; and &amp;quot;uncharacterized&amp;quot; proteins, we can see that the rest are almost all serine proteases. Some of them are described as belonging to the of the S8 family.&lt;br /&gt;
&lt;br /&gt;
[[image:NCBI BlastP_CLONE12_rframe1_ORF new version.png]]&lt;br /&gt;
&lt;br /&gt;
Let&#039;s take a closer look at the first hit that is not &amp;quot;uncharacterized&amp;quot;:&lt;br /&gt;
[[image:NCBI_BlastP_CLONE12_best_hit.png]]&lt;br /&gt;
&lt;br /&gt;
Note that although it is not a perfect hit (our query sequence not existing in the database) it looks reasonable: the alignment covers a large part of the query with Identity of 54% and Similarity (Positives) of 69%.&lt;br /&gt;
&lt;br /&gt;
Taken together with the fact that almost all the best non-hypothetical hits are serine proteases, we have a very strong indication that our mystery sequence, CLONE12, is a peptidase or protease of the S8 family.&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.1===&lt;br /&gt;
&#039;&#039;What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
They are nearly identical (&amp;quot;one of two nearly identical (see also HTA1) subtypes&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
Protein sequence: &lt;br /&gt;
 &amp;gt;YBL003C  &lt;br /&gt;
 MSGGKGGKAGSAAKASQSRSAKAGLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTAVLEYL&lt;br /&gt;
 AAEILELAGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPK&lt;br /&gt;
 KSAKTAKASQEL*&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.2===&lt;br /&gt;
*&#039;&#039;How many high-confidence hits do we get?&#039;&#039;:&lt;br /&gt;
:3 — HTA1, HTA2 and HTZ1.&lt;br /&gt;
:Note: If you click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links for the two top hits, you will see that one is HTA1 and the other is HTA2.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&#039;&#039;:&lt;br /&gt;
:Yes; HTA1 and HTA2 are indeed nearly identical (only 2 amino acids differ).&lt;br /&gt;
&lt;br /&gt;
===QUESTION 4.3===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found?&#039;&#039;&lt;br /&gt;
:Answer: 29.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
Lad os ligesom før kræve at hits skal have en e-value på 1e-10 eller bedre (mindre) for at vi regner det for pålideligt. Dette passer også fint med, at disse hits er enige om at der er tale om en histon.&lt;br /&gt;
&lt;br /&gt;
Som udgangspunkt er der derfor 26 gode hits. Man kan dog godt argumentere for at man skal passe på hits der kun har en forudsagt funktion (&amp;quot;PREDICTED&amp;quot;) - dem har vi en enkelt af. Som det også ses er der en række af hits&#039;ne der dækker over variationer af samme protein (fx alle dem der hedder: &amp;lt;tt&amp;gt;histone H2A type-XYZ&amp;lt;/tt&amp;gt;). Det er ikke altid at alle detaljerne kommer med i den korte form af overskrifter - nogen gange kan det være nødvendigt mauelt at inspicere et hit (klikke på link&#039;et og læse hvad der står af information i det bagvedliggende database entry).&lt;br /&gt;
&lt;br /&gt;
Lad os arbejde videre med alle 26 gode hits i de næste analyser.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;These protein originates from a number of genes - but how many UNIQUE genes?&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Svar: Trick&#039;et er her af en del af hits&#039;ne er fra isoformer af det sammen protein. Et protein med to isofomer stammer stadig kun fra en enkelt gen&lt;br /&gt;
&lt;br /&gt;
Lad os fx kigge på følgende hits:&lt;br /&gt;
&lt;br /&gt;
 ref|NP_613075.1|  core histone macro-H2A.1 isoform 1 [Homo sap...   152    7e-38&lt;br /&gt;
 ref|NP_004884.1|  core histone macro-H2A.1 isoform 2 [Homo sap...   152    8e-38&lt;br /&gt;
&lt;br /&gt;
Hvis man gå ind og læser sekvens-entry&#039;et for disse hits kan man faktisk direkte se, at de stammer fra sammen gen (/gene=&amp;quot;H2AFY&amp;quot;, /gene=&amp;quot;H2AFY&amp;quot;). BEMÆRK: Her er vi heldige og alt den information vi har burg for står faktisk i overskrifterne.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
En hurtig optælling afslører følgende isoformet i vores set af BLAST hits:&lt;br /&gt;
&lt;br /&gt;
 ref|NP_613075.1|  core histone macro-H2A.1 isoform 1 [Homo sap...   152    7e-38&lt;br /&gt;
 ref|NP_004884.1|  core histone macro-H2A.1 isoform 2 [Homo sap...   152    8e-38&lt;br /&gt;
 ref|NP_613258.2|  core histone macro-H2A.1 isoform 3 [Homo sap...   152    8e-38&lt;br /&gt;
&lt;br /&gt;
 ref|NP_036544.1|  histone H2A.V isoform 1 [Homo sapiens]            133    4e-32&lt;br /&gt;
 ref|NP_619541.1|  histone H2A.V isoform 2 [Homo sapiens]            114    2e-26&lt;br /&gt;
 ref|NP_958844.1|  histone H2A.V isoform 3 [Homo sapiens]            112    8e-26&lt;br /&gt;
 ref|NP_958925.1|  histone H2A.V isoform 5 [Homo sapiens]           75.9    8e-15&lt;br /&gt;
 ref|NP_958924.1|  histone H2A.V isoform 4 [Homo sapiens]           62.8    7e-11&lt;br /&gt;
&lt;br /&gt;
Dvs at vi i alt har 27 - 2 - 4 = 21 unikke hits til gener.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===QUESTION 4.4===&lt;br /&gt;
&#039;&#039;&#039;Langt svar&#039;&#039;&#039;: Et lavt komplekst område er et stykke sekvens der ikke indeholder særligt meget information (fx. TTTTAAAA i human – findes milioner af gange i genomet).&lt;br /&gt;
&lt;br /&gt;
BLAST har et indbygget filter der masker disse områder ud i søgningen.&lt;br /&gt;
&lt;br /&gt;
Ud over at kunne slå det til og fra – har NCBI valgt et tredie mulighed (som default) – slå det fra men at vise hvor områderne er (små bogstaver):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  194 bits (494),  Expect = 1e-50, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 96/125 (76%), Positives = 108/125 (86%), Gaps = 0/125 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  4    gkggkagsaakasqsrsakagLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTavleylaae  63&lt;br /&gt;
             G+G + G A   ++SRS++AGL FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AE&lt;br /&gt;
 Sbjct  3    GRGKQGGKARAKAKSRSSRAGLQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAE  62&lt;br /&gt;
 &lt;br /&gt;
 Query  64   ilelaGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSA  123&lt;br /&gt;
             ILELAGNAARDNKKTRIIPRHLQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+ &lt;br /&gt;
 Sbjct  63   ILELAGNAARDNKKTRIIPRHLQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTE  122&lt;br /&gt;
 &lt;br /&gt;
 Query  124  KTAKA  128&lt;br /&gt;
                KA&lt;br /&gt;
 Sbjct  123  SHHKA  127&lt;br /&gt;
&lt;br /&gt;
Hvis man gentager søgningen med filteret slået til giver det følgende (jeg har også valgt at viser X’er i det filtrerede område – hvilket NORMALT er standard i BLAST):&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  147 bits (372),  Expect = 2e-36, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 87/104 (83%), Positives = 93/104 (89%), Gaps = 0/104 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  25   LTFPVGRVHRLLRRGNYAQRIGSGAPVYLTXXXXXXXXXXXXXXGNAARDNKKTRIIPRH  84&lt;br /&gt;
             L FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AEILELAGNAARDNKKTRIIPRH&lt;br /&gt;
 Sbjct  24   LQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAEILELAGNAARDNKKTRIIPRH  83&lt;br /&gt;
 &lt;br /&gt;
 Query  85   LQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSAKTAKA  128&lt;br /&gt;
             LQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+    KA&lt;br /&gt;
 Sbjct  84   LQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTESHHKA  127&lt;br /&gt;
&lt;br /&gt;
Bemærk det kortere alignment og den ændrede E-værdi. &lt;br /&gt;
&lt;br /&gt;
Hvis man eksplicit slår filteret fra, ser resultatet således ud:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;ref|NP_003503.1|  histone H2A type 1-C [Homo sapiens]&lt;br /&gt;
 Length=130&lt;br /&gt;
 &lt;br /&gt;
  GENE ID: 8334 HIST1H2AC | histone cluster 1, H2ac [Homo sapiens]&lt;br /&gt;
 (Over 10 PubMed links)&lt;br /&gt;
 &lt;br /&gt;
  Score =  194 bits (494),  Expect = 1e-50, Method: Compositional matrix adjust.&lt;br /&gt;
  Identities = 96/125 (76%), Positives = 108/125 (86%), Gaps = 0/125 (0%)&lt;br /&gt;
 &lt;br /&gt;
 Query  4    GKGGKAGSAAKASQSRSAKAGLTFPVGRVHRLLRRGNYAQRIGSGAPVYLTAVLEYLAAE  63&lt;br /&gt;
             G+G + G A   ++SRS++AGL FPVGRVHRLLR+GNYA+R+G+GAPVYL AVLEYL AE&lt;br /&gt;
 Sbjct  3    GRGKQGGKARAKAKSRSSRAGLQFPVGRVHRLLRKGNYAERVGAGAPVYLAAVLEYLTAE  62&lt;br /&gt;
 &lt;br /&gt;
 Query  64   ILELAGNAARDNKKTRIIPRHLQLAIRNDDELNKLLGNVTIAQGGVLPNIHQNLLPKKSA  123&lt;br /&gt;
             ILELAGNAARDNKKTRIIPRHLQLAIRND+ELNKLLG VTIAQGGVLPNI   LLPKK+ &lt;br /&gt;
 Sbjct  63   ILELAGNAARDNKKTRIIPRHLQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTE  122&lt;br /&gt;
 &lt;br /&gt;
 Query  124  KTAKA  128&lt;br /&gt;
                KA&lt;br /&gt;
 Sbjct  123  SHHKA  127&lt;br /&gt;
&lt;br /&gt;
Præcis samme længde, e-værdi mm. som i det første alignment.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kort svar&#039;&#039;&#039;: Ja, alignmentet bliver kortere når low-complexity filteret er slået til.&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1071</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1071"/>
		<updated>2026-09-21T13:41:40Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using two approaches; the Web interface to &#039;&#039;&#039;BLAST&#039;&#039;&#039; hosted by the &#039;&#039;&#039;NCBI&#039;&#039;&#039;, and using the &#039;&#039;&#039;BioPython library&#039;&#039; in a Notebook using &#039;&#039;&#039;Google Colab&#039;&#039;&#039;. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds. &lt;br /&gt;
&lt;br /&gt;
:If you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can copy the pre-saved searches under &#039;&#039;&#039;Blast Job ID:XXX&#039;&#039;&#039; and use them on the link from BLAST called &#039;&#039;&#039;Saved Strategies&#039;&#039;&#039;. Please notice that these links will only work for the duration of the exercise session.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_Saved_Strategies.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from a close relative, the common macaque (&#039;&#039;Macaca fascicularis&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;J00336.1 Monkey (M. fascicularis) preproinsulin mRNA, complete cds&lt;br /&gt;
 AACCCTCCGGGACAGGCTGCATCAGAAGAGGTCAGCAAGCAGGTCACTGTCCTTCGGCTATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGCGCTGCTGGCCCTCTGGGGACCTGACCCGGCCCCGGCCTTTGTGAAC&lt;br /&gt;
 CAGCACCTGTGCGGCTCCCACCTAGTGGAAGCTCTCTACCTGGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCCTCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGCGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCGCTGGAGGGGTCCCTGCAGAAGCGCGGCATCGTGGAGCAGTGCTGCACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAA&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2C1HZPV014&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? J00336.1&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 708&lt;br /&gt;
:* What is the percent identity and query coverage? 100% and 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the human hit you found now.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 7e-168&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2CCWWRV014&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? Human G+T (2 databases)&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 3e-170&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.6&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 2) to make the BLAST searches run quicker.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
* A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
*Generate 10 random DNA sequence of length 25bp using Google Colab&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
* Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
*# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
*# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:*What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
* &#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
* Perform the BLAST search.&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.2)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:* If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&lt;br /&gt;
:** Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastn): DU9XHV8H014&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastp): DU9T4K44014&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR6NDFMJ013&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR65XVA0016&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1070</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1070"/>
		<updated>2026-09-21T13:41:11Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Useful Links */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using two approaches; the Web interface to &#039;&#039;&#039;BLAST&#039;&#039;&#039; hosted by the &#039;&#039;&#039;NCBI&#039;&#039;&#039;, and using the &#039;&#039;&#039;BioPython library&#039;&#039; in a Notebook using &#039;&#039;&#039;Google Colab&#039;&#039;&#039;. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds. &lt;br /&gt;
&lt;br /&gt;
:If you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can copy the pre-saved searches under &#039;&#039;&#039;Blast Job ID:XXX&#039;&#039; and use them on the link from BLAST called &#039;&#039;&#039;Saved Strategies&#039;&#039;&#039;. Please notice that these links will only work for the duration of the exercise session.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_Saved_Strategies.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from a close relative, the common macaque (&#039;&#039;Macaca fascicularis&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;J00336.1 Monkey (M. fascicularis) preproinsulin mRNA, complete cds&lt;br /&gt;
 AACCCTCCGGGACAGGCTGCATCAGAAGAGGTCAGCAAGCAGGTCACTGTCCTTCGGCTATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGCGCTGCTGGCCCTCTGGGGACCTGACCCGGCCCCGGCCTTTGTGAAC&lt;br /&gt;
 CAGCACCTGTGCGGCTCCCACCTAGTGGAAGCTCTCTACCTGGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCCTCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGCGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCGCTGGAGGGGTCCCTGCAGAAGCGCGGCATCGTGGAGCAGTGCTGCACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAA&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2C1HZPV014&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? J00336.1&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 708&lt;br /&gt;
:* What is the percent identity and query coverage? 100% and 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the human hit you found now.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 7e-168&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2CCWWRV014&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? Human G+T (2 databases)&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 3e-170&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.6&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 2) to make the BLAST searches run quicker.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
* A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
*Generate 10 random DNA sequence of length 25bp using Google Colab&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
* Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
*# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
*# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:*What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
* &#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
* Perform the BLAST search.&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.2)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:* If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&lt;br /&gt;
:** Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastn): DU9XHV8H014&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastp): DU9T4K44014&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR6NDFMJ013&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR65XVA0016&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1069</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1069"/>
		<updated>2026-09-21T13:40:09Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Useful Links */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using two approaches; the Web interface to &#039;&#039;&#039;BLAST&#039;&#039;&#039; hosted by the &#039;&#039;&#039;NCBI&#039;&#039;&#039;, and using the &#039;&#039;&#039;BioPython library&#039;&#039; in a Notebook using &#039;&#039;&#039;Google Colab&#039;&#039;&#039;. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds. &lt;br /&gt;
&lt;br /&gt;
:If you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can copy the pre-saved searches and use the link from BLAST called &#039;&#039;&#039;Saved Strategies&#039;&#039;&#039;. Please notice that these links will only work for the duration of the exercise session.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_Saved_Strategies.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from a close relative, the common macaque (&#039;&#039;Macaca fascicularis&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;J00336.1 Monkey (M. fascicularis) preproinsulin mRNA, complete cds&lt;br /&gt;
 AACCCTCCGGGACAGGCTGCATCAGAAGAGGTCAGCAAGCAGGTCACTGTCCTTCGGCTATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGCGCTGCTGGCCCTCTGGGGACCTGACCCGGCCCCGGCCTTTGTGAAC&lt;br /&gt;
 CAGCACCTGTGCGGCTCCCACCTAGTGGAAGCTCTCTACCTGGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCCTCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGCGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCGCTGGAGGGGTCCCTGCAGAAGCGCGGCATCGTGGAGCAGTGCTGCACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAA&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2C1HZPV014&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? J00336.1&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 708&lt;br /&gt;
:* What is the percent identity and query coverage? 100% and 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the human hit you found now.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 7e-168&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2CCWWRV014&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? Human G+T (2 databases)&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 3e-170&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.6&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 2) to make the BLAST searches run quicker.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
* A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
*Generate 10 random DNA sequence of length 25bp using Google Colab&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
* Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
*# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
*# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:*What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
* &#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
* Perform the BLAST search.&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.2)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:* If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&lt;br /&gt;
:** Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastn): DU9XHV8H014&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastp): DU9T4K44014&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR6NDFMJ013&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR65XVA0016&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=File:BLAST_Saved_Strategies.png&amp;diff=1068</id>
		<title>File:BLAST Saved Strategies.png</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=File:BLAST_Saved_Strategies.png&amp;diff=1068"/>
		<updated>2026-09-21T13:37:13Z</updated>

		<summary type="html">&lt;p&gt;Carol: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1067</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1067"/>
		<updated>2026-09-21T13:34:28Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Concerning database size and E-values */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using two approaches; the Web interface to &#039;&#039;&#039;BLAST&#039;&#039;&#039; hosted by the &#039;&#039;&#039;NCBI&#039;&#039;&#039;, and using the &#039;&#039;&#039;BioPython library&#039;&#039; in a Notebook using &#039;&#039;&#039;Google Colab&#039;&#039;&#039;. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds, that it is &#039;&#039;&#039;important you remember to follow&#039;&#039;&#039;. In some of the sections below, you will be asked to limit your search to a certain subset of the BLAST database (e.g. only search in the &amp;quot;bacterial&amp;quot; part of the NR database). This will limit the amount of data to search through and will make the search finish faster.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_limit_search.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;NOTE: if you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can click on the provided links to get the expected output. Please notice that these links will only work for the duration of the exercise session.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from a close relative, the common macaque (&#039;&#039;Macaca fascicularis&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;J00336.1 Monkey (M. fascicularis) preproinsulin mRNA, complete cds&lt;br /&gt;
 AACCCTCCGGGACAGGCTGCATCAGAAGAGGTCAGCAAGCAGGTCACTGTCCTTCGGCTATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGCGCTGCTGGCCCTCTGGGGACCTGACCCGGCCCCGGCCTTTGTGAAC&lt;br /&gt;
 CAGCACCTGTGCGGCTCCCACCTAGTGGAAGCTCTCTACCTGGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCCTCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGCGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCGCTGGAGGGGTCCCTGCAGAAGCGCGGCATCGTGGAGCAGTGCTGCACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAA&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2C1HZPV014&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? J00336.1&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 708&lt;br /&gt;
:* What is the percent identity and query coverage? 100% and 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the human hit you found now.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 7e-168&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2CCWWRV014&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? Human G+T (2 databases)&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 3e-170&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.6&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 2) to make the BLAST searches run quicker.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
* A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
*Generate 10 random DNA sequence of length 25bp using Google Colab&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
* Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
*# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
*# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:*What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
* &#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
* Perform the BLAST search.&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.2)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:* If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&lt;br /&gt;
:** Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastn): DU9XHV8H014&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastp): DU9T4K44014&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR6NDFMJ013&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR65XVA0016&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1066</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1066"/>
		<updated>2026-09-21T13:33:30Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Search against Human G+T */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using two approaches; the Web interface to &#039;&#039;&#039;BLAST&#039;&#039;&#039; hosted by the &#039;&#039;&#039;NCBI&#039;&#039;&#039;, and using the &#039;&#039;&#039;BioPython library&#039;&#039; in a Notebook using &#039;&#039;&#039;Google Colab&#039;&#039;&#039;. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds, that it is &#039;&#039;&#039;important you remember to follow&#039;&#039;&#039;. In some of the sections below, you will be asked to limit your search to a certain subset of the BLAST database (e.g. only search in the &amp;quot;bacterial&amp;quot; part of the NR database). This will limit the amount of data to search through and will make the search finish faster.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_limit_search.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;NOTE: if you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can click on the provided links to get the expected output. Please notice that these links will only work for the duration of the exercise session.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from a close relative, the common macaque (&#039;&#039;Macaca fascicularis&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;J00336.1 Monkey (M. fascicularis) preproinsulin mRNA, complete cds&lt;br /&gt;
 AACCCTCCGGGACAGGCTGCATCAGAAGAGGTCAGCAAGCAGGTCACTGTCCTTCGGCTATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGCGCTGCTGGCCCTCTGGGGACCTGACCCGGCCCCGGCCTTTGTGAAC&lt;br /&gt;
 CAGCACCTGTGCGGCTCCCACCTAGTGGAAGCTCTCTACCTGGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCCTCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGCGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCGCTGGAGGGGTCCCTGCAGAAGCGCGGCATCGTGGAGCAGTGCTGCACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAA&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2C1HZPV014&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? J00336.1&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 708&lt;br /&gt;
:* What is the percent identity and query coverage? 100% and 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the human hit you found now.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 7e-168&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2CCWWRV014&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? Human G+T (2 databases)&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 3e-170&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 2) to make the BLAST searches run quicker.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
* A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
*Generate 10 random DNA sequence of length 25bp using Google Colab&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
* Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
*# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
*# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:*What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
* &#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
* Perform the BLAST search.&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.2)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:* If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&lt;br /&gt;
:** Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastn): DU9XHV8H014&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastp): DU9T4K44014&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR6NDFMJ013&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR65XVA0016&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1065</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1065"/>
		<updated>2026-09-21T13:33:13Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Part 1: Your first BLAST search */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using two approaches; the Web interface to &#039;&#039;&#039;BLAST&#039;&#039;&#039; hosted by the &#039;&#039;&#039;NCBI&#039;&#039;&#039;, and using the &#039;&#039;&#039;BioPython library&#039;&#039; in a Notebook using &#039;&#039;&#039;Google Colab&#039;&#039;&#039;. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds, that it is &#039;&#039;&#039;important you remember to follow&#039;&#039;&#039;. In some of the sections below, you will be asked to limit your search to a certain subset of the BLAST database (e.g. only search in the &amp;quot;bacterial&amp;quot; part of the NR database). This will limit the amount of data to search through and will make the search finish faster.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_limit_search.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;NOTE: if you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can click on the provided links to get the expected output. Please notice that these links will only work for the duration of the exercise session.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from a close relative, the common macaque (&#039;&#039;Macaca fascicularis&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;J00336.1 Monkey (M. fascicularis) preproinsulin mRNA, complete cds&lt;br /&gt;
 AACCCTCCGGGACAGGCTGCATCAGAAGAGGTCAGCAAGCAGGTCACTGTCCTTCGGCTATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGCGCTGCTGGCCCTCTGGGGACCTGACCCGGCCCCGGCCTTTGTGAAC&lt;br /&gt;
 CAGCACCTGTGCGGCTCCCACCTAGTGGAAGCTCTCTACCTGGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCCTCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGCGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCGCTGGAGGGGTCCCTGCAGAAGCGCGGCATCGTGGAGCAGTGCTGCACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAA&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2C1HZPV014&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? J00336.1&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 708&lt;br /&gt;
:* What is the percent identity and query coverage? 100% and 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the human hit you found now.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 7e-168&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: B2CCWWRV014&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? Human G+T (2 databases)&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 3e-170&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 	&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 2) to make the BLAST searches run quicker.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
* A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
*Generate 10 random DNA sequence of length 25bp using Google Colab&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
* Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
*# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
*# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:*What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
* &#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
* Perform the BLAST search.&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.2)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:* If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&lt;br /&gt;
:** Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastn): DU9XHV8H014&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastp): DU9T4K44014&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR6NDFMJ013&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR65XVA0016&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1064</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1064"/>
		<updated>2026-09-21T13:30:54Z</updated>

		<summary type="html">&lt;p&gt;Carol: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using two approaches; the Web interface to &#039;&#039;&#039;BLAST&#039;&#039;&#039; hosted by the &#039;&#039;&#039;NCBI&#039;&#039;&#039;, and using the &#039;&#039;&#039;BioPython library&#039;&#039; in a Notebook using &#039;&#039;&#039;Google Colab&#039;&#039;&#039;. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds, that it is &#039;&#039;&#039;important you remember to follow&#039;&#039;&#039;. In some of the sections below, you will be asked to limit your search to a certain subset of the BLAST database (e.g. only search in the &amp;quot;bacterial&amp;quot; part of the NR database). This will limit the amount of data to search through and will make the search finish faster.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_limit_search.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;NOTE: if you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can click on the provided links to get the expected output. Please notice that these links will only work for the duration of the exercise session.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from a close relative, the common macaque (&#039;&#039;Macaca fascicularis&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;J00336.1 Monkey (M. fascicularis) preproinsulin mRNA, complete cds&lt;br /&gt;
 AACCCTCCGGGACAGGCTGCATCAGAAGAGGTCAGCAAGCAGGTCACTGTCCTTCGGCTATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGCGCTGCTGGCCCTCTGGGGACCTGACCCGGCCCCGGCCTTTGTGAAC&lt;br /&gt;
 CAGCACCTGTGCGGCTCCCACCTAGTGGAAGCTCTCTACCTGGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCCTCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGCGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCGCTGGAGGGGTCCCTGCAGAAGCGCGGCATCGTGGAGCAGTGCTGCACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAA&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2C1HZPV014&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? J00336.1&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 708&lt;br /&gt;
:* What is the percent identity and query coverage? 100% and 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the human hit you found now.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 603&lt;br /&gt;
:* What is the percent identity and query coverage? 94.34% and 99%&lt;br /&gt;
:* What is the E-value? 7e-168&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: B2B9BAB8014&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 2) to make the BLAST searches run quicker.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
* A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
*Generate 10 random DNA sequence of length 25bp using Google Colab&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
* Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
*# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
*# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:*What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
* &#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
* Perform the BLAST search.&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.2)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:* If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&lt;br /&gt;
:** Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastn): DU9XHV8H014&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastp): DU9T4K44014&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR6NDFMJ013&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR65XVA0016&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1063</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1063"/>
		<updated>2026-09-21T13:12:56Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Search against Human G+T */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using two approaches; the Web interface to &#039;&#039;&#039;BLAST&#039;&#039;&#039; hosted by the &#039;&#039;&#039;NCBI&#039;&#039;&#039;, and using the &#039;&#039;&#039;BioPython library&#039;&#039; in a Notebook using &#039;&#039;&#039;Google Colab&#039;&#039;&#039;. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds, that it is &#039;&#039;&#039;important you remember to follow&#039;&#039;&#039;. In some of the sections below, you will be asked to limit your search to a certain subset of the BLAST database (e.g. only search in the &amp;quot;bacterial&amp;quot; part of the NR database). This will limit the amount of data to search through and will make the search finish faster.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_limit_search.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;NOTE: if you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can click on the provided links to get the expected output. Please notice that these links will only work for the duration of the exercise session.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from our closest relative, the common chimpanzee (&#039;&#039;Pan troglodytes&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;NM_001008996.2 Pan troglodytes insulin (INS), mRNA&lt;br /&gt;
 AGCCCTCCAGGACAGGCTGCATCAGAAGAGGCCATCAAGCAGATCACTGTCCTTCTGCCATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGTGCTGCTGGCCCTCTGGGGACCTGACCCAGCCTCGGCCTTTGTGAAC&lt;br /&gt;
 CAACACCTGTGCGGCTCCCACCTGGTGGAAGCTCTCTACCTAGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCTGCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGTGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCCCTGGAGGGGTCCCTGCAGAAGCGTGGTATCGTGGAACAATGCTGTACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAGATGGAATAAAGCCCTTGAACCAGC&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2ARRGSG014&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_001008996.2&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 751&lt;br /&gt;
:* What is the percent identity and query coverage? 100% and 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the human hit you found now.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 682&lt;br /&gt;
:* What is the percent identity and query coverage? 98.47% and 94%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: B2B9BAB8014&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 2) to make the BLAST searches run quicker.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
* A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
*Generate 10 random DNA sequence of length 25bp using Google Colab&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
* Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
*# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
*# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:*What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
* &#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
* Perform the BLAST search.&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.2)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:* If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&lt;br /&gt;
:** Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastn): DU9XHV8H014&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastp): DU9T4K44014&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR6NDFMJ013&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR65XVA0016&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1062</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1062"/>
		<updated>2026-09-21T13:11:34Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Search against a broad database */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using two approaches; the Web interface to &#039;&#039;&#039;BLAST&#039;&#039;&#039; hosted by the &#039;&#039;&#039;NCBI&#039;&#039;&#039;, and using the &#039;&#039;&#039;BioPython library&#039;&#039; in a Notebook using &#039;&#039;&#039;Google Colab&#039;&#039;&#039;. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds, that it is &#039;&#039;&#039;important you remember to follow&#039;&#039;&#039;. In some of the sections below, you will be asked to limit your search to a certain subset of the BLAST database (e.g. only search in the &amp;quot;bacterial&amp;quot; part of the NR database). This will limit the amount of data to search through and will make the search finish faster.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_limit_search.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;NOTE: if you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can click on the provided links to get the expected output. Please notice that these links will only work for the duration of the exercise session.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from our closest relative, the common chimpanzee (&#039;&#039;Pan troglodytes&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;NM_001008996.2 Pan troglodytes insulin (INS), mRNA&lt;br /&gt;
 AGCCCTCCAGGACAGGCTGCATCAGAAGAGGCCATCAAGCAGATCACTGTCCTTCTGCCATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGTGCTGCTGGCCCTCTGGGGACCTGACCCAGCCTCGGCCTTTGTGAAC&lt;br /&gt;
 CAACACCTGTGCGGCTCCCACCTGGTGGAAGCTCTCTACCTAGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCTGCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGTGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCCCTGGAGGGGTCCCTGCAGAAGCGTGGTATCGTGGAACAATGCTGTACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAGATGGAATAAAGCCCTTGAACCAGC&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2ARRGSG014&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_001008996.2&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 751&lt;br /&gt;
:* What is the percent identity and query coverage? 100% and 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the human hit you found now.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_000207.3&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 682&lt;br /&gt;
:* What is the percent identity and query coverage? 98.47% and 94%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: DU93YZB1014&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 2) to make the BLAST searches run quicker.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
* A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
*Generate 10 random DNA sequence of length 25bp using Google Colab&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
* Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
*# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
*# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:*What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
* &#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
* Perform the BLAST search.&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.2)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:* If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&lt;br /&gt;
:** Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastn): DU9XHV8H014&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastp): DU9T4K44014&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR6NDFMJ013&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR65XVA0016&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1061</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1061"/>
		<updated>2026-09-21T13:05:51Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Search against a broad database */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using two approaches; the Web interface to &#039;&#039;&#039;BLAST&#039;&#039;&#039; hosted by the &#039;&#039;&#039;NCBI&#039;&#039;&#039;, and using the &#039;&#039;&#039;BioPython library&#039;&#039; in a Notebook using &#039;&#039;&#039;Google Colab&#039;&#039;&#039;. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds, that it is &#039;&#039;&#039;important you remember to follow&#039;&#039;&#039;. In some of the sections below, you will be asked to limit your search to a certain subset of the BLAST database (e.g. only search in the &amp;quot;bacterial&amp;quot; part of the NR database). This will limit the amount of data to search through and will make the search finish faster.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_limit_search.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;NOTE: if you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can click on the provided links to get the expected output. Please notice that these links will only work for the duration of the exercise session.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from our closest relative, the common chimpanzee (&#039;&#039;Pan troglodytes&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;NM_001008996.2 Pan troglodytes insulin (INS), mRNA&lt;br /&gt;
 AGCCCTCCAGGACAGGCTGCATCAGAAGAGGCCATCAAGCAGATCACTGTCCTTCTGCCATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGTGCTGCTGGCCCTCTGGGGACCTGACCCAGCCTCGGCCTTTGTGAAC&lt;br /&gt;
 CAACACCTGTGCGGCTCCCACCTGGTGGAAGCTCTCTACCTAGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCTGCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGTGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCCCTGGAGGGGTCCCTGCAGAAGCGTGGTATCGTGGAACAATGCTGTACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAGATGGAATAAAGCCCTTGAACCAGC&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: B2ARRGSG014&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_001008996.2&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 751&lt;br /&gt;
:* What is the percent identity and query coverage? 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the hit you found now.&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: DU93YZB1014&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 2) to make the BLAST searches run quicker.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
* A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
*Generate 10 random DNA sequence of length 25bp using Google Colab&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
* Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
*# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
*# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:*What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
* &#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
* Perform the BLAST search.&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.2)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:* If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&lt;br /&gt;
:** Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastn): DU9XHV8H014&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastp): DU9T4K44014&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR6NDFMJ013&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR65XVA0016&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1060</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1060"/>
		<updated>2026-09-19T12:45:07Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using two approaches; the Web interface to &#039;&#039;&#039;BLAST&#039;&#039;&#039; hosted by the &#039;&#039;&#039;NCBI&#039;&#039;&#039;, and using the &#039;&#039;&#039;BioPython library&#039;&#039; in a Notebook using &#039;&#039;&#039;Google Colab&#039;&#039;&#039;. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds, that it is &#039;&#039;&#039;important you remember to follow&#039;&#039;&#039;. In some of the sections below, you will be asked to limit your search to a certain subset of the BLAST database (e.g. only search in the &amp;quot;bacterial&amp;quot; part of the NR database). This will limit the amount of data to search through and will make the search finish faster.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_limit_search.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;NOTE: if you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can click on the provided links to get the expected output. Please notice that these links will only work for the duration of the exercise session.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from our closest relative, the common chimpanzee (&#039;&#039;Pan troglodytes&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;NM_001008996.2 Pan troglodytes insulin (INS), mRNA&lt;br /&gt;
 AGCCCTCCAGGACAGGCTGCATCAGAAGAGGCCATCAAGCAGATCACTGTCCTTCTGCCATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGTGCTGCTGGCCCTCTGGGGACCTGACCCAGCCTCGGCCTTTGTGAAC&lt;br /&gt;
 CAACACCTGTGCGGCTCCCACCTGGTGGAAGCTCTCTACCTAGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCTGCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGTGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCCCTGGAGGGGTCCCTGCAGAAGCGTGGTATCGTGGAACAATGCTGTACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAGATGGAATAAAGCCCTTGAACCAGC&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: XXX&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_001008996.2&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 751&lt;br /&gt;
:* What is the percent identity and query coverage? 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the hit you found now.&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: DU93YZB1014&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 2) to make the BLAST searches run quicker.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
* A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
*Generate 10 random DNA sequence of length 25bp using Google Colab&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
* Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
*# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
*# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:*What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
* &#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
* Perform the BLAST search.&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.2)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:* If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&lt;br /&gt;
:** Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastn): DU9XHV8H014&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastp): DU9T4K44014&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR6NDFMJ013&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR65XVA0016&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1059</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1059"/>
		<updated>2026-09-19T12:43:13Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using two approaches; the Web interface to &#039;&#039;&#039;BLAST&#039;&#039;&#039; hosted by the &#039;&#039;&#039;NCBI&#039;&#039;&#039;, and from a Python Notebook using Google Colab. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds, that it is &#039;&#039;&#039;important you remember to follow&#039;&#039;&#039;. In some of the sections below, you will be asked to limit your search to a certain subset of the BLAST database (e.g. only search in the &amp;quot;bacterial&amp;quot; part of the NR database). This will limit the amount of data to search through and will make the search finish faster.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_limit_search.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;NOTE: if you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can click on the provided links to get the expected output. Please notice that these links will only work for the duration of the exercise session.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from our closest relative, the common chimpanzee (&#039;&#039;Pan troglodytes&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;NM_001008996.2 Pan troglodytes insulin (INS), mRNA&lt;br /&gt;
 AGCCCTCCAGGACAGGCTGCATCAGAAGAGGCCATCAAGCAGATCACTGTCCTTCTGCCATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGTGCTGCTGGCCCTCTGGGGACCTGACCCAGCCTCGGCCTTTGTGAAC&lt;br /&gt;
 CAACACCTGTGCGGCTCCCACCTGGTGGAAGCTCTCTACCTAGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCTGCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGTGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCCCTGGAGGGGTCCCTGCAGAAGCGTGGTATCGTGGAACAATGCTGTACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAGATGGAATAAAGCCCTTGAACCAGC&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: XXX&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_001008996.2&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 751&lt;br /&gt;
:* What is the percent identity and query coverage? 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the hit you found now.&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: DU93YZB1014&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 2) to make the BLAST searches run quicker.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
* A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
*Generate 10 random DNA sequence of length 25bp using Google Colab&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
* Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
*# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
*# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:*What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
* &#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
* Perform the BLAST search.&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.2)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:* If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&lt;br /&gt;
:** Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastn): DU9XHV8H014&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastp): DU9T4K44014&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR6NDFMJ013&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR65XVA0016&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1058</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1058"/>
		<updated>2026-09-19T12:39:58Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST DNA and protein sequences. &lt;br /&gt;
BLAST is short for &#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool.&lt;br /&gt;
&lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified.&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using the Web interface to &#039;&#039;&#039;BLAST hosted by the NCBI&#039;&#039;&#039; and from a Python Notebook using Google Colab. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds, that it is &#039;&#039;&#039;important you remember to follow&#039;&#039;&#039;. In some of the sections below, you will be asked to limit your search to a certain subset of the BLAST database (e.g. only search in the &amp;quot;bacterial&amp;quot; part of the NR database). This will limit the amount of data to search through and will make the search finish faster.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_limit_search.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;NOTE: if you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can click on the provided links to get the expected output. Please notice that these links will only work for the duration of the exercise session.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from our closest relative, the common chimpanzee (&#039;&#039;Pan troglodytes&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;NM_001008996.2 Pan troglodytes insulin (INS), mRNA&lt;br /&gt;
 AGCCCTCCAGGACAGGCTGCATCAGAAGAGGCCATCAAGCAGATCACTGTCCTTCTGCCATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGTGCTGCTGGCCCTCTGGGGACCTGACCCAGCCTCGGCCTTTGTGAAC&lt;br /&gt;
 CAACACCTGTGCGGCTCCCACCTGGTGGAAGCTCTCTACCTAGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCTGCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGTGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCCCTGGAGGGGTCCCTGCAGAAGCGTGGTATCGTGGAACAATGCTGTACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAGATGGAATAAAGCCCTTGAACCAGC&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: XXX&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_001008996.2&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 751&lt;br /&gt;
:* What is the percent identity and query coverage? 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the hit you found now.&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: DU93YZB1014&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 2) to make the BLAST searches run quicker.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
* A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
*Generate 10 random DNA sequence of length 25bp using Google Colab&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
* Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
*# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
*# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:*What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
* &#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
* Perform the BLAST search.&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.2)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:* If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&lt;br /&gt;
:** Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastn): DU9XHV8H014&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastp): DU9T4K44014&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR6NDFMJ013&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR65XVA0016&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1057</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1057"/>
		<updated>2026-09-18T16:54:00Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Search against a broad database */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST (&#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool) DNA and protein sequences. &lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using the Web interface to &#039;&#039;&#039;BLAST hosted by the NCBI&#039;&#039;&#039; and from a Python Notebook from Google Colab. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds, that it is &#039;&#039;&#039;important you remember to follow&#039;&#039;&#039;. In some of the sections below, you will be asked to limit your search to a certain subset of the BLAST database (e.g. only search in the &amp;quot;bacterial&amp;quot; part of the NR database). This will limit the amount of data to search through and will make the search finish faster.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_limit_search.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;NOTE: if you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can click on the provided links to get the expected output. Please notice that these links will only work for the duration of the exercise session.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from our closest relative, the common chimpanzee (&#039;&#039;Pan troglodytes&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;NM_001008996.2 Pan troglodytes insulin (INS), mRNA&lt;br /&gt;
 AGCCCTCCAGGACAGGCTGCATCAGAAGAGGCCATCAAGCAGATCACTGTCCTTCTGCCATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGTGCTGCTGGCCCTCTGGGGACCTGACCCAGCCTCGGCCTTTGTGAAC&lt;br /&gt;
 CAACACCTGTGCGGCTCCCACCTGGTGGAAGCTCTCTACCTAGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCTGCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGTGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCCCTGGAGGGGTCCCTGCAGAAGCGTGGTATCGTGGAACAATGCTGTACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAGATGGAATAAAGCCCTTGAACCAGC&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: XXX&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* Which database did you use? core_nt&lt;br /&gt;
:* What is the identifier (Accession)? NM_001008996.2&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)? 751&lt;br /&gt;
:* What is the percent identity and query coverage? 100%&lt;br /&gt;
:* What is the E-value? 0&lt;br /&gt;
:* Are there any gaps in the alignment? No&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the hit you found now.&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: DU93YZB1014&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 2) to make the BLAST searches run quicker.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
* A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
*Generate 10 random DNA sequence of length 25bp using Google Colab&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
* Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
*# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
*# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:*What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
* &#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
* Perform the BLAST search.&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.2)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:* If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&lt;br /&gt;
:** Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastn): DU9XHV8H014&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastp): DU9T4K44014&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR6NDFMJ013&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR65XVA0016&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1056</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1056"/>
		<updated>2026-09-18T16:51:41Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Search against a broad database */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST (&#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool) DNA and protein sequences. &lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using the Web interface to &#039;&#039;&#039;BLAST hosted by the NCBI&#039;&#039;&#039; and from a Python Notebook from Google Colab. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds, that it is &#039;&#039;&#039;important you remember to follow&#039;&#039;&#039;. In some of the sections below, you will be asked to limit your search to a certain subset of the BLAST database (e.g. only search in the &amp;quot;bacterial&amp;quot; part of the NR database). This will limit the amount of data to search through and will make the search finish faster.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_limit_search.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;NOTE: if you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can click on the provided links to get the expected output. Please notice that these links will only work for the duration of the exercise session.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from our closest relative, the common chimpanzee (&#039;&#039;Pan troglodytes&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;NM_001008996.2 Pan troglodytes insulin (INS), mRNA&lt;br /&gt;
 AGCCCTCCAGGACAGGCTGCATCAGAAGAGGCCATCAAGCAGATCACTGTCCTTCTGCCATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGTGCTGCTGGCCCTCTGGGGACCTGACCCAGCCTCGGCCTTTGTGAAC&lt;br /&gt;
 CAACACCTGTGCGGCTCCCACCTGGTGGAAGCTCTCTACCTAGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCTGCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGTGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCCCTGGAGGGGTCCCTGCAGAAGCGTGGTATCGTGGAACAATGCTGTACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAGATGGAATAAAGCCCTTGAACCAGC&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: XXX&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the hit you found now.&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: DU93YZB1014&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 2) to make the BLAST searches run quicker.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
* A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
*Generate 10 random DNA sequence of length 25bp using Google Colab&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
* Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
*# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
*# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:*What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
* &#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
* Perform the BLAST search.&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.2)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:* If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&lt;br /&gt;
:** Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastn): DU9XHV8H014&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastp): DU9T4K44014&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR6NDFMJ013&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR65XVA0016&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1055</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1055"/>
		<updated>2026-09-18T16:51:13Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Search against a broad database */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST (&#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool) DNA and protein sequences. &lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using the Web interface to &#039;&#039;&#039;BLAST hosted by the NCBI&#039;&#039;&#039; and from a Python Notebook from Google Colab. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds, that it is &#039;&#039;&#039;important you remember to follow&#039;&#039;&#039;. In some of the sections below, you will be asked to limit your search to a certain subset of the BLAST database (e.g. only search in the &amp;quot;bacterial&amp;quot; part of the NR database). This will limit the amount of data to search through and will make the search finish faster.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_limit_search.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;NOTE: if you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can click on the provided links to get the expected output. Please notice that these links will only work for the duration of the exercise session.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from our closest relative, the common chimpanzee (&#039;&#039;Pan troglodytes&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;NM_001008996.2 Pan troglodytes insulin (INS), mRNA&lt;br /&gt;
 AGCCCTCCAGGACAGGCTGCATCAGAAGAGGCCATCAAGCAGATCACTGTCCTTCTGCCATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGTGCTGCTGGCCCTCTGGGGACCTGACCCAGCCTCGGCCTTTGTGAAC&lt;br /&gt;
 CAACACCTGTGCGGCTCCCACCTGGTGGAAGCTCTCTACCTAGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCTGCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGTGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCCCTGGAGGGGTCCCTGCAGAAGCGTGGTATCGTGGAACAATGCTGTACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAGATGGAATAAAGCCCTTGAACCAGC&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1.1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title: Descriptions, Graphic Summary, Alignments and Taxonomy (try it!).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* What is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* What is the percent identity and query coverage?&lt;br /&gt;
:* What is the E-value?&lt;br /&gt;
:* Are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: XXX&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the hit you found now.&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: DU93YZB1014&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 2) to make the BLAST searches run quicker.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
* A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
*Generate 10 random DNA sequence of length 25bp using Google Colab&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
* Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
*# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
*# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:*What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
* &#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
* Perform the BLAST search.&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.2)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:* If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&lt;br /&gt;
:** Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastn): DU9XHV8H014&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastp): DU9T4K44014&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR6NDFMJ013&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR65XVA0016&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1054</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1054"/>
		<updated>2026-09-18T16:48:55Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Part 1: Your first BLAST search */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST (&#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool) DNA and protein sequences. &lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using the Web interface to &#039;&#039;&#039;BLAST hosted by the NCBI&#039;&#039;&#039; and from a Python Notebook from Google Colab. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds, that it is &#039;&#039;&#039;important you remember to follow&#039;&#039;&#039;. In some of the sections below, you will be asked to limit your search to a certain subset of the BLAST database (e.g. only search in the &amp;quot;bacterial&amp;quot; part of the NR database). This will limit the amount of data to search through and will make the search finish faster.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_limit_search.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;NOTE: if you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can click on the provided links to get the expected output. Please notice that these links will only work for the duration of the exercise session.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from our closest relative, the common chimpanzee (&#039;&#039;Pan troglodytes&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;NM_001008996.2 Pan troglodytes insulin (INS), mRNA&lt;br /&gt;
 AGCCCTCCAGGACAGGCTGCATCAGAAGAGGCCATCAAGCAGATCACTGTCCTTCTGCCATGGCCCTGTG&lt;br /&gt;
 GATGCGCCTCCTGCCCCTGCTGGTGCTGCTGGCCCTCTGGGGACCTGACCCAGCCTCGGCCTTTGTGAAC&lt;br /&gt;
 CAACACCTGTGCGGCTCCCACCTGGTGGAAGCTCTCTACCTAGTGTGCGGGGAACGAGGCTTCTTCTACA&lt;br /&gt;
 CACCCAAGACCCGCCGGGAGGCAGAGGACCTGCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGTGC&lt;br /&gt;
 AGGCAGCCTGCAGCCCTTGGCCCTGGAGGGGTCCCTGCAGAAGCGTGGTATCGTGGAACAATGCTGTACC&lt;br /&gt;
 AGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAGATGGAATAAAGCCCTTGAACCAGC&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title (try it!).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* What is the identifier (Accession)?&lt;br /&gt;
:* what is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* what is the percent identity and query coverage?&lt;br /&gt;
:* what is the E-value?&lt;br /&gt;
:* are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: XXX&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the hit you found now.&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: DU93YZB1014&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 2) to make the BLAST searches run quicker.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
* A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
*Generate 10 random DNA sequence of length 25bp using Google Colab&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
* Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
*# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
*# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:*What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
* &#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
* Perform the BLAST search.&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.2)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:* If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&lt;br /&gt;
:** Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastn): DU9XHV8H014&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastp): DU9T4K44014&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR6NDFMJ013&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR65XVA0016&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1053</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1053"/>
		<updated>2026-09-18T16:38:34Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Search against a broad database */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST (&#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool) DNA and protein sequences. &lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using the Web interface to &#039;&#039;&#039;BLAST hosted by the NCBI&#039;&#039;&#039; and from a Python Notebook from Google Colab. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds, that it is &#039;&#039;&#039;important you remember to follow&#039;&#039;&#039;. In some of the sections below, you will be asked to limit your search to a certain subset of the BLAST database (e.g. only search in the &amp;quot;bacterial&amp;quot; part of the NR database). This will limit the amount of data to search through and will make the search finish faster.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_limit_search.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;NOTE: if you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can click on the provided links to get the expected output. Please notice that these links will only work for the duration of the exercise session.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from a South American rodent, the Degu (&#039;&#039;Octodon degus&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;gi|202471|gb|M57671.1|OCOINS Octodon degus insulin mRNA, complete cds&lt;br /&gt;
 GCATTCTGAGGCATTCTCTAACAGGTTCTCGACCCTCCGCCATGGCCCCGTGGATGCATCTCCTCACCGT&lt;br /&gt;
 GCTGGCCCTGCTGGCCCTCTGGGGACCCAACTCTGTTCAGGCCTATTCCAGCCAGCACCTGTGCGGCTCC&lt;br /&gt;
 AACCTAGTGGAGGCACTGTACATGACATGTGGACGGAGTGGCTTCTATAGACCCCACGACCGCCGAGAGC&lt;br /&gt;
 TGGAGGACCTCCAGGTGGAGCAGGCAGAACTGGGTCTGGAGGCAGGCGGCCTGCAGCCTTCGGCCCTGGA&lt;br /&gt;
 GATGATTCTGCAGAAGCGCGGCATTGTGGATCAGTGCTGTAATAACATTTGCACATTTAACCAGCTGCAG&lt;br /&gt;
 AACTACTGCAATGTCCCTTAGACACCTGCCTTGGGCCTGGCCTGCTGCTCTGCCCTGGCAACCAATAAAC&lt;br /&gt;
 CCCTTGAATGAG&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title (try it!).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* what is the identifier (Accession)?&lt;br /&gt;
:* what is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* what is the percent identity and query coverage?&lt;br /&gt;
:* what is the E-value?&lt;br /&gt;
:* are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: XXX&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the hit you found now.&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: DU93YZB1014&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 2) to make the BLAST searches run quicker.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
* A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
*Generate 10 random DNA sequence of length 25bp using Google Colab&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
* Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
*# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
*# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:*What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
* &#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
* Perform the BLAST search.&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.2)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:* If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&lt;br /&gt;
:** Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastn): DU9XHV8H014&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastp): DU9T4K44014&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR6NDFMJ013&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR65XVA0016&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1052</id>
		<title>Exercise:BLAST new</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22111/index.php?title=Exercise:BLAST_new&amp;diff=1052"/>
		<updated>2026-09-18T16:36:35Z</updated>

		<summary type="html">&lt;p&gt;Carol: /* Search against a broad database */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exercise written by Rasmus Wernersson and modified by Henrik Nielsen and Carolina Barra.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
In this exercise you will learn by doing to BLAST (&#039;&#039;&#039;B&#039;&#039;&#039;asic &#039;&#039;&#039;L&#039;&#039;&#039;ocal &#039;&#039;&#039;A&#039;&#039;&#039;lignment &#039;&#039;&#039;S&#039;&#039;&#039;earch &#039;&#039;&#039;T&#039;&#039;&#039;ool) DNA and protein sequences. &lt;br /&gt;
After completion of the exercise you should be able to choose an appropriate BLAST search tool selecting the correct set of parameters, interpret a BLAST result, explain what an E-value means and how database size affects it, and decide what biological conclusion is justified&lt;br /&gt;
&lt;br /&gt;
For the exercise, we will be using the Web interface to &#039;&#039;&#039;BLAST hosted by the NCBI&#039;&#039;&#039; and from a Python Notebook from Google Colab. There are several advantages to each approach:&lt;br /&gt;
&lt;br /&gt;
The Web interface is very intuitive as it provides a graphical summary and links to other databases, while the programmatic way is more flexible allowing us to further customize the search, the output, and do many searches in a single run for a batch of query sequences.&lt;br /&gt;
&lt;br /&gt;
===Useful Links=== &lt;br /&gt;
* NCBI BLAST main page: http://blast.ncbi.nlm.nih.gov/&lt;br /&gt;
* NCBI [http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;amp;PAGE_TYPE=BlastDocs BLAST help pages]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; BLAST is a quite computationally intensive algorithm, and we have in recent years run into issues with overburdening the NCBI server, with 150+ students submitting jobs at the same time from the same DTU IP address. We have therefore implemented a few optimization/workarounds, that it is &#039;&#039;&#039;important you remember to follow&#039;&#039;&#039;. In some of the sections below, you will be asked to limit your search to a certain subset of the BLAST database (e.g. only search in the &amp;quot;bacterial&amp;quot; part of the NR database). This will limit the amount of data to search through and will make the search finish faster.&lt;br /&gt;
&lt;br /&gt;
[[Image:BLAST_limit_search.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;NOTE: if you still experience long waiting times you can try an alternative internet connection, such as a mobile hotspot. Alternatively, you can click on the provided links to get the expected output. Please notice that these links will only work for the duration of the exercise session.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part 1: Your first BLAST search==&lt;br /&gt;
&lt;br /&gt;
Below is the mRNA sequence for insulin from a South American rodent, the Degu (&#039;&#039;Octodon degus&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;gi|202471|gb|M57671.1|OCOINS Octodon degus insulin mRNA, complete cds&lt;br /&gt;
 GCATTCTGAGGCATTCTCTAACAGGTTCTCGACCCTCCGCCATGGCCCCGTGGATGCATCTCCTCACCGT&lt;br /&gt;
 GCTGGCCCTGCTGGCCCTCTGGGGACCCAACTCTGTTCAGGCCTATTCCAGCCAGCACCTGTGCGGCTCC&lt;br /&gt;
 AACCTAGTGGAGGCACTGTACATGACATGTGGACGGAGTGGCTTCTATAGACCCCACGACCGCCGAGAGC&lt;br /&gt;
 TGGAGGACCTCCAGGTGGAGCAGGCAGAACTGGGTCTGGAGGCAGGCGGCCTGCAGCCTTCGGCCCTGGA&lt;br /&gt;
 GATGATTCTGCAGAAGCGCGGCATTGTGGATCAGTGCTGTAATAACATTTGCACATTTAACCAGCTGCAG&lt;br /&gt;
 AACTACTGCAATGTCCCTTAGACACCTGCCTTGGGCCTGGCCTGCTGCTCTGCCCTGGCAACCAATAAAC&lt;br /&gt;
 CCCTTGAATGAG&lt;br /&gt;
&lt;br /&gt;
We will use BLAST to determine whether this sequence looks like the human mRNA for insulin. There are two ways we can do this: &lt;br /&gt;
&lt;br /&gt;
:A. Search the entire database and look for human hits in the results&lt;br /&gt;
:B. Specifically search the human part of the database&lt;br /&gt;
&lt;br /&gt;
We will try both possibilities.&lt;br /&gt;
&lt;br /&gt;
=== Search against a broad database  ===&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;&amp;lt;u&amp;gt;nucleotide blast&amp;lt;/u&amp;gt;&amp;quot; link from the main [https://blast.ncbi.nlm.nih.gov/Blast.cgi BLAST] page.&lt;br /&gt;
&lt;br /&gt;
After pasting the sequence, we are asked to &amp;quot;Choose a search set&amp;quot; or database to perform our search.&lt;br /&gt;
&lt;br /&gt;
In the previous years the students were using a database called &amp;quot;&#039;&#039;&#039;nr/nt&#039;&#039;&#039;&amp;quot;, but today the default is a database called Core Nucleotide database &amp;quot;&#039;&#039;&#039;core_nt&#039;&#039;&#039;&amp;quot;. We want to learn more about these broad databases of nucleotides.&lt;br /&gt;
You can click on the question mark of the databases to learn more about them or you can ask your favourite AI as a sparring partner about what is the difference among them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.1&#039;&#039;&#039;: What is the main difference of the two databases in regards to content? Why NCBI offers now core_nt as the default. AI loves long and nice explanations that will help you understand, but the TAs have many submissions to review. Please rephrase the answer with your own words in one line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--The main difference is that core_nt excludes most eukaryotic chromosome sequences, making it smaller and faster than nr/nt, so NCBI uses it as the default for more efficient searches.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the answer of Question 1, choose the most efficient database from the two. &lt;br /&gt;
In the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot; select the option &amp;quot;&amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt;&amp;quot;&lt;br /&gt;
Click the &amp;lt;u&amp;gt;BLAST&amp;lt;/u&amp;gt; button to launch the search.&lt;br /&gt;
&lt;br /&gt;
After the search has been completed, make yourself familiar with the BLAST output page. Note that you can toggle between hiding and showing each tab by clicking on the title (try it!).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Descriptions&#039;&#039;&#039;&lt;br /&gt;
:A table with a one-line description of each hit with some alignment statistics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Graphic Summary&#039;&#039;&#039; &lt;br /&gt;
:Each hit is represented by a line showing which part of the query sequence the alignment covers. The lines are coloured according to the alignment score.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alignments&#039;&#039;&#039;&lt;br /&gt;
:The actual alignments between the query and the database hits.&lt;br /&gt;
&lt;br /&gt;
The columns in the &#039;&#039;&#039;Descriptions&#039;&#039;&#039; tab are:&lt;br /&gt;
&lt;br /&gt;
* Scientific Name — The species name of the matched sequence&lt;br /&gt;
* Description — the description line from the database &lt;br /&gt;
* Max score — the alignment score of the best match (local alignment) between the query and the database hit	&lt;br /&gt;
* Total score — the sum of alignment scores for all matches (alignments) between the query and the database hit (if there is only one match per hit, these two scores are identical) 	&lt;br /&gt;
* Query cover — the percentage of the query sequence that is covered by the alignment(s)	&lt;br /&gt;
* E value — the Expect value calculated from the Max score (&#039;&#039;i.e.&#039;&#039; the number of &#039;&#039;unrelated&#039;&#039; hits with that score or better you would expect to find for random reasons)	&lt;br /&gt;
* Per. Ident — the percent identity in the alignment(s)		&lt;br /&gt;
* Acc. Len — the accession length&lt;br /&gt;
* Accession - the accession ID of the matched sequence&lt;br /&gt;
&lt;br /&gt;
First, take a look at the best hit. Since our search sequence (the query) was taken from GenBank which is part of this broad database, we should find an identical sequence in the search. Make sure this is the case!&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
:Answer the following questions about the best hit:&lt;br /&gt;
:* Which database did you use?&lt;br /&gt;
:* what is the identifier (Accession)?&lt;br /&gt;
:* what is the alignment score (&amp;quot;max score&amp;quot;)?&lt;br /&gt;
:* what is the percent identity and query coverage?&lt;br /&gt;
:* what is the E-value?&lt;br /&gt;
:* are there any gaps in the alignment?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Blast Job ID: XXX&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then, find the best hit from human (&#039;&#039;Homo sapiens&#039;&#039;) that is &#039;&#039;not&#039;&#039; a synthetic construct. (&#039;&#039;&#039;Tip:&#039;&#039;&#039; you can press Ctrl-F in most browsers to search in the page).&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.2&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
:Answer the same questions as before about the hit you found now.&lt;br /&gt;
&lt;br /&gt;
=== Search against Human G+T ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; In this context, G+T does not mean Gin and Tonic.&lt;br /&gt;
&lt;br /&gt;
Open &#039;&#039;a new window/tab&#039;&#039; with the BLAST home page. Make a new BLASTN search with the same query sequence, this time with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;lt;u&amp;gt;Human genomic + transcript (Human G+T)&amp;lt;/u&amp;gt;. Remember again to select &amp;lt;u&amp;gt;Somewhat similar sequences (blastn)&amp;lt;/u&amp;gt; under &amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;. Consider the best hit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; even though you may not have found exactly the same database entry in the two searches, the &#039;&#039;alignment&#039;&#039; should be the same. Make sure this is the case by comparing the actual alignments in the two windows where you made the searches.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.3&#039;&#039;&#039;: &lt;br /&gt;
Answer the same questions as before about the best hit you found in this search.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: DU93YZB1014&lt;br /&gt;
&lt;br /&gt;
===Concerning database size and E-values===&lt;br /&gt;
&lt;br /&gt;
When answering the previous two questions, you may have noticed that the E-value changed, while the alignment score did not. We will now investigate this further.&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.4&#039;&#039;&#039;: &lt;br /&gt;
What are the sizes (in basepairs) of the databases we used for the two BLAST searches? (&#039;&#039;&#039;Tip:&#039;&#039;&#039; Expand the &amp;quot;&amp;lt;u&amp;gt;Search summary&amp;lt;/u&amp;gt;&amp;quot; section near the top by clicking it). &lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 1.5&#039;&#039;&#039;:&lt;br /&gt;
:*What is the ratio between the database sizes in the two BLAST searches? &lt;br /&gt;
:*What is the ratio between the E-values (for the best human hits) in the two BLAST searches? &lt;br /&gt;
:*What is the relationship between database size and E-value for hits with identical alignment scores?&lt;br /&gt;
:*In conclusion: if the database size is doubled, what will happen to the E-value?&lt;br /&gt;
&lt;br /&gt;
==Part 2: Assessing the statistical significance of BLAST hits==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 2) to make the BLAST searches run quicker.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As discussed in the lecture, there will be a risk of getting false positive results (hits to sequences that are not related to our input sequence) by purely stochastic means. In this first part of the exercise, we will be investigating this further, by examining what happens when we submit randomly generated sequences to BLAST searches.&lt;br /&gt;
&lt;br /&gt;
Rather than giving out a set of pre-generated DNA/Peptide sequences where you only have our word for their randomness, you&#039;ll be generating your own random sequences.&lt;br /&gt;
It is important to understand that these computer-generated sequences are &#039;&#039;totally random&#039;&#039;, just as if you were rolling a die to determine each nucleotide/amino acid in each sequence. &lt;br /&gt;
&lt;br /&gt;
In this part of the exercise, we will run BLAST through a Python Notebook from Google Colab. We will install the package called BioPython that will connect to the NCBI servers where BLAST is hosted. &lt;br /&gt;
&lt;br /&gt;
[[File:Blast exercise in Colab.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
For our purpose, there are several advantages to this approach:&lt;br /&gt;
&lt;br /&gt;
* We don&#039;t need to install it on our computers, but we can still perform custom searches which can be fine-grained control of DATA and workflow (everything can be scripted/automated) than running BLAST through a web interface&lt;br /&gt;
* NCBI offers direct access to preformatted BLAST databases of all the data that they host:&lt;br /&gt;
** GenBank (+ derivates)&lt;br /&gt;
** Full Genome database&lt;br /&gt;
** Protein databases (Both from translated GenBank and UniProt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Links=== &lt;br /&gt;
* A few notes on how to use a [https://colab.research.google.com/notebooks/basic_features_overview.ipynb#scrollTo=WUtu4316QSHL Google Colab]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Check that your notebook is always connected to the server.&lt;br /&gt;
&lt;br /&gt;
If your laptop is idle for some time, you may get the error &#039;runtime disconnected&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Runtime_disconnected.png|center|300px|border]]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
To re-connect to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Reconnect_to_a_hosted_runtime.png|center|600px|border]]&lt;br /&gt;
&lt;br /&gt;
Remember that after is disconnected we will need to run all the code cells from that part of the exercise. This could take some minutes for the blast searches, so try to avoid having the screen idle for a long time :)&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://biopython.org/DIST/docs/tutorial/Tutorial.html tutorial]&lt;br /&gt;
&lt;br /&gt;
* Biopython [https://github.com/biopython/biopython/blob/a09f38b468cbedaf25aec6cfed1475b0849011e6/Bio/Blast/NCBIWWW.py examples]&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 2.0: Create your first Python Notebook==&lt;br /&gt;
&lt;br /&gt;
[https://colab.research.google.com/drive/1DpqOH8O_KK0rEohjv-20CCx2THwCq89h#scrollTo=_7tJ_S6wc-Os Click Here]&lt;br /&gt;
&lt;br /&gt;
We are going to make a local copy of this notebook on our own drive. &lt;br /&gt;
* First you will need to log in or create a Google account.&lt;br /&gt;
* Make a copy of the Colab file in your own drive. Go to File &amp;gt; Save in Drive&lt;br /&gt;
&lt;br /&gt;
[[File:save_a_copy_in_drive.png|center|300px|border]]&lt;br /&gt;
&lt;br /&gt;
Now you can start modifying the file!&lt;br /&gt;
&lt;br /&gt;
* First, we will install BioPython in our notebook. This will only take a few seconds, but note, that this installation is temporary. If your notebook gets idle and disconnected you will need to run this code cell again.&lt;br /&gt;
&lt;br /&gt;
 ! pip install biopython&lt;br /&gt;
&lt;br /&gt;
* Now import Blast tools from BioPython &lt;br /&gt;
&lt;br /&gt;
 from Bio.Blast import NCBIWWW&lt;br /&gt;
 help(NCBIWWW.qblast)&lt;br /&gt;
&lt;br /&gt;
===Random DNA sequences and BLASTN===&lt;br /&gt;
&lt;br /&gt;
*Generate 10 random DNA sequence of length 25bp using Google Colab&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
We will now do a BLASTN search using the random sequence as query. Select the option &amp;quot;blastn&amp;quot; in the section &amp;quot;&amp;lt;u&amp;gt;Program Selection&amp;lt;/u&amp;gt;&amp;quot;. Choose &amp;quot;&amp;lt;u&amp;gt;Nucleotide Collection (nr/nt)&amp;lt;/u&amp;gt;&amp;quot; as the search database. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: &lt;br /&gt;
For this special situation where we BLAST small artificial sequences, we need to turn off some the automatics NCBI incorporate when short sequences are detected. Otherwise we&#039;ll not be able to see the intended results:&lt;br /&gt;
&lt;br /&gt;
* Extend the &amp;quot;&amp;lt;u&amp;gt;Algorithm parameters&amp;lt;/u&amp;gt;&amp;quot; section (see the screen shot below) in order to gain access to fine-tuning the options. &lt;br /&gt;
*# &#039;&#039;&#039;Deselect&#039;&#039;&#039; the &amp;quot;&amp;lt;u&amp;gt;Automatically adjust parameters for short input sequences&amp;lt;/u&amp;gt;&amp;quot; option.&lt;br /&gt;
*# Set the E-value cut-off (&amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot;) to &#039;&#039;&#039;50&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[file:Blastn_cropped+circle.png‎|center|frame|&#039;&#039;&#039;Remember to adjust the BLAST settings&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.1&#039;&#039;&#039;:&lt;br /&gt;
:Answer the following small questions, and &#039;&#039;&#039;document your findings&#039;&#039;&#039; by pasting in examples of alignments / text snippets from the overview plots generated on google colab:&lt;br /&gt;
&lt;br /&gt;
:* What is the typical length of the hits (the alignment length)?&lt;br /&gt;
:* What is the typical % identity?&lt;br /&gt;
:* In what range is the bit-scores (&amp;quot;max score&amp;quot;)? &lt;br /&gt;
:** &#039;&#039;Notice: This is conceptually the same as the &amp;quot;alignment score&amp;quot; we have already met in the pairwise alignment exercise&#039;&#039;.&lt;br /&gt;
:* What is the range of the E-values?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.2&#039;&#039;&#039;:&lt;br /&gt;
:*What is the &#039;&#039;&#039;biological&#039;&#039;&#039; significance of these hits / is there any biological meaning?&lt;br /&gt;
&lt;br /&gt;
===Random protein sequences and BLASTP===&lt;br /&gt;
Now it&#039;s time to work with a set of &#039;&#039;&#039;protein sequences&#039;&#039;&#039;: Generate 10 peptide sequences of length 25aa using Google colab.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Notice 1:&#039;&#039;&#039; The distribution of amino acids will be equal (5% prob) and this is different from true biological sequences - however this is not important for this first part of the exercise.&lt;br /&gt;
* &#039;&#039;&#039;Notice 2:&#039;&#039;&#039; Please recall from the lecture that the way &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; selects candidate sequences for full Smith-Waterman alignment is different from &amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt;. (&amp;lt;tt&amp;gt;BLASTN&amp;lt;/tt&amp;gt; - a single short (11 bp +) perfect match hit is needed. &amp;lt;tt&amp;gt;BLASTP&amp;lt;/tt&amp;gt; - a pair of &amp;quot;near match&amp;quot; hits of 3 aa within a 40 aa window is needed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
&lt;br /&gt;
Choose &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; as the algorithm to use, the &amp;quot;NR&amp;quot; database (this is the protein version, consisting of translated CDS&#039;es, UniProt etc).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VERY IMPORTANT&#039;&#039;&#039;: We also need to tweak the parameters this time - in the &amp;quot;&amp;lt;u&amp;gt;Algorithm Parameters&amp;lt;/u&amp;gt;&amp;quot; section select BLOSUM62 as the alignment matrix to use and set the &amp;quot;&amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt;&amp;quot; to 1000 (default: 10).&lt;br /&gt;
&lt;br /&gt;
* Perform the BLAST search.&lt;br /&gt;
* Inspect the results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.3&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Remember to &#039;&#039;&#039;document your answers&#039;&#039;&#039; in the same manner as Q2.2)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- :* How big is the database this time? --&amp;gt;&lt;br /&gt;
:* What is the typical length of the alignment and do they contain gaps?&lt;br /&gt;
:* What is the range of E-values?&lt;br /&gt;
:* Try to inspect a few of the alignments in details (&amp;quot;+&amp;quot; means similar sequences) - do you find any that look plausible, if we for a moment ignore the length/E-value?&lt;br /&gt;
:* If we had used the default E-value cut-off of 10 would any hits have been found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 2.4&#039;&#039;&#039;:&lt;br /&gt;
:* If we compare the result from BLAST&#039;ing random DNA sequences to random Peptide sequences - which kind of search has the higher risk of returning false positives (results that appear plausible, maybe even significant, but are truly unrelated)?&lt;br /&gt;
:** Remember to take E-values into your consideration.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 3: using BLAST to transfer functional information by finding homologs==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; The following parts can either be done on the google colab or in the webserver. If you choose the web server version remember to limit your search to &amp;quot;bacteria&amp;quot; (taxid: 2) in ALL of this section (PART 3) to make the BLAST searches run quicker. (The organisms we&#039;re looking for all belong to the &amp;quot;Bacteria&amp;quot; domain of life, so this restriction is OK).&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Homo-, Ortho- and Paralogs===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to use BLAST as a tool is in the situation where you have a sequence of &#039;&#039;&#039;unknown function&#039;&#039;&#039;, and want to &#039;&#039;&#039;find out which function it has&#039;&#039;&#039;. Since a large amount of sequence data has been gathered over the years, chances are that an &#039;&#039;&#039;evolutionarily related&#039;&#039;&#039; sequence with known function has already been identified. In general, such a related sequence is known as a &amp;quot;&#039;&#039;&#039;homolog&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Homo-, Ortho- and Paralogs:&lt;br /&gt;
* A &#039;&#039;&#039;Homolog&#039;&#039;&#039; is a general term that describes a sequence that is related by any evolutionary means.&lt;br /&gt;
* An &#039;&#039;&#039;Ortholog&#039;&#039;&#039; (&amp;quot;Ortho&amp;quot; = True) is a sequence that is &amp;quot;the same gene&amp;quot; in a different organism: The sequences shared a single common ancestor sequence, and have now diverged through speciation (e.g. the Alpha-globin gene in Human and Mouse).&lt;br /&gt;
* A &#039;&#039;&#039;Paralog&#039;&#039;&#039; arises due to a gene duplication within a species. For example, Alpha- and Beta-globin are paralogs.&lt;br /&gt;
&lt;br /&gt;
[[File:Homo_Ortho_Para-log.gif|center|frame|&#039;&#039;Image source: [http://www.thegreatgoodplace.com/tt/gwlee/126 gwLee&#039;s blog]&#039;&#039; ]]&lt;br /&gt;
&lt;br /&gt;
Notice that in both cases it&#039;s possible to transfer information, for example, about gene family / protein domains. &lt;br /&gt;
We have already touched upon the comparison of (potentially) evolutionarily related sequences in the pairwise alignment exercise. However, this time we do not start with two sequences we assume are related, but instead, we start with a single sequence (&amp;quot;query sequence&amp;quot;) which we will use to search the databases for homologs (we often informally speak of &amp;quot;BLAST hits&amp;quot;, when discussing the sequences found).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===BLAST example 1===&lt;br /&gt;
 &lt;br /&gt;
Let&#039;s start with a sequence that will produce some good hits in the database. The sequence below is a full-length transcript (mRNA) from a prokaryote. Let&#039;s find out what it is.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;Unknown_transcript01&lt;br /&gt;
 CCACTTGAAACCGTTTTAATCAAAAACGAAGTTGAGAAGATTCAGTCAACTTAACGTTAATATTTGTTTC&lt;br /&gt;
 CCAATAGGCAAATCTTTCTAACTTTGATACGTTTAAACTACCAGCTTGGACAAGTTGGTATAAAAATGAG&lt;br /&gt;
 GAGGGAACCGAATGAAGAAACCGTTGGGGAAAATTGTCGCAAGCACCGCACTACTCATTTCTGTTGCTTT&lt;br /&gt;
 TAGTTCATCGATCGCATCGGCTGCTGAAGAAGCAAAAGAAAAATATTTAATTGGCTTTAATGAGCAGGAA&lt;br /&gt;
 GCTGTTAGTGAGTTTGTAGAACAAGTAGAGGCAAATGACGAGGTCGCCATTCTCTCTGAGGAAGAGGAAG&lt;br /&gt;
 TCGAAATTGAATTGCTTCATGAATTTGAAACGATTCCTGTTTTATCCGTTGAGTTAAGCCCAGAAGATGT&lt;br /&gt;
 GGACGCGCTTGAACTCGATCCAGCGATTTCTTATATTGAAGAGGATGCAGAAGTAACGACAATGGCGCAA&lt;br /&gt;
 TCAGTGCCATGGGGAATTAGCCGTGTGCAAGCCCCAGCTGCCCATAACCGTGGATTGACAGGTTCTGGTG&lt;br /&gt;
 TAAAAGTTGCTGTCCTCGATACAGGTATTTCCACTCATCCAGACTTAAATATTCGTGGTGGCGCTAGCTT&lt;br /&gt;
 TGTACCAGGGGAACCATCCACTCAAGATGGGAATGGGCATGGCACGCATGTGGCCGGGACGATTGCTGCT&lt;br /&gt;
 TTAAACAATTCGATTGGCGTTCTTGGCGTAGCGCCGAGCGCGGAACTATACGCTGTTAAAGTATTAGGGG&lt;br /&gt;
 CGAGCGGTTCAGGTTCGGTCAGCTCGATTGCCCAAGGATTGGAATGGGCAGGGAACAATGGCATGCACGT&lt;br /&gt;
 TGCTAATTTGAGTTTAGGAAGCCCTTCGCCAAGTGCCACACTTGAGCAAGCTGTTAATAGCGCGACTTCT&lt;br /&gt;
 AGAGGGGTTCTTGTTGTAGCGGCATCTGGGAATTCAGGTGCAGGCTCAATCAGCTATCCGGCCCGTTATG&lt;br /&gt;
 CGAACGCAATGGCAGTCGGAGCGACTGACCAAAACAACAACCGCGCCAGCTTTTCACAGTATGGCGCAGG&lt;br /&gt;
 GCTTGACATTGTCGCACCAGGTGTAAACGTGCAGAGCACATACCCAGGTTCAACGTATGCCAGCTTAAAC&lt;br /&gt;
 GGTACATCGATGGCTACTCCTCATGTTGCAGGTGCAGCAGCCCTTGTTAAACAAAAGAACCCATCTTGGT&lt;br /&gt;
 CCAATGTACAAATCCGCAATCATCTAAAGAATACGGCAACGAGCTTAGGAAGCACGAACTTGTATGGAAG&lt;br /&gt;
 CGGACTTGTCAATGCAGAAGCGGCAACACGCTAATCAATAATAATAGGAGCTGTCCCAAAAGGTCATAGA&lt;br /&gt;
 TAAATGACCTTTTGGGGTGGCTTTTTTACATTTGGATAAAAAAGCACAAAAAAATCGCCTCATCGTTTAA&lt;br /&gt;
 AATGAAGGTACC&lt;br /&gt;
&lt;br /&gt;
====BLASTN search====&lt;br /&gt;
Perform a BLAST search in the NR/NT database (BLASTN) using default settings. Remember to set &amp;lt;u&amp;gt;Expect threshold&amp;lt;/u&amp;gt; back to the default value, 0.05.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1&#039;&#039;&#039;:&lt;br /&gt;
:&#039;&#039;(Once again remember to document your findings)&#039;&#039;&lt;br /&gt;
:* Do we get any significant hits?&lt;br /&gt;
:* What kind of genes (function) do we find?&lt;br /&gt;
&lt;br /&gt;
====BLASTP search====&lt;br /&gt;
Now let&#039;s try to do the same at the protein level.&lt;br /&gt;
* Find the longest ORF using [https://services.healthtech.dtu.dk/services/VirtualRibosome-2.0/ VirtualRibosome] (hint: remember to search all positive reading frames) and save of copy the sequence in FASTA format.&lt;br /&gt;
* BLAST the sequence (BLASTP) against the NR database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.2&#039;&#039;&#039;:&lt;br /&gt;
:(Document!)&lt;br /&gt;
:* Report your translated protein sequence in FASTA format.&lt;br /&gt;
:* Do we find any conserved protein domains? (&#039;&#039;Click the &amp;lt;u&amp;gt;Graphic Summary&amp;lt;/u&amp;gt; tab&#039;&#039;). Identifying known protein domains can provide important clues to the function of an unknown protein.&lt;br /&gt;
:* Do we find any significant hits? (E-value?)&lt;br /&gt;
:* Are all the best hits the same category of enzymes?&lt;br /&gt;
:* From what you have seen, what is best for identifying intermediate quality hits - DNA or Protein BLAST?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===BLAST example 2===&lt;br /&gt;
&lt;br /&gt;
The sequence is a &#039;&#039;&#039;DNA fragment&#039;&#039;&#039; from an unknown non-cultivatable microorganism. It was cloned and sequenced directly from DNA extracted from a soil-sample, and it goes by the poetic name &amp;quot;CLONE12&amp;quot;. It was amplified using degenerated PCR primers that target the middle (&amp;quot;core cloning&amp;quot;) of the sequence of &#039;&#039;&#039;a group of known enzymes&#039;&#039;&#039;. (I can guarantee this particular sequence is not in the BLAST databases, since I have cloned and sequenced it myself, and it has never been submitted to GenBank).&lt;br /&gt;
&lt;br /&gt;
 LOCUS       CLONE12.DNA    609 BP DS-DNA             UPDATED   06/14/98&lt;br /&gt;
 DEFINITION  UWGCG file capture&lt;br /&gt;
 ACCESSION   -&lt;br /&gt;
 KEYWORDS    -&lt;br /&gt;
 SOURCE      -&lt;br /&gt;
 COMMENT     Non-sequence data from original file:&lt;br /&gt;
 BASE COUNT      174 A    116 C    162 G    157 T      0 OTHER&lt;br /&gt;
 ORIGIN      ?&lt;br /&gt;
     clone12.dna Length: 609   Jun 13, 1998 - 03:39 PM   Check: 6014 ..&lt;br /&gt;
         1 AACGGGCACG GGACGCATGT AGCTGGAACA GTGGCAGCCG TAAATAATAA TGGTATCGGA&lt;br /&gt;
        61 GTTGCCGGGG TTGCAGGAGG AAACGGCTCT ACCAATAGTG GAGCAAGGTT AATGTCCACA&lt;br /&gt;
       121 CAAATTTTTA ATAGTGATGG GGATTATACA AATAGCGAAA CTCTTGTGTA CAGAGCCATT&lt;br /&gt;
       181 GTTTATGGTG CAGATAACGG AGCTGTGATC TCGCAAAATA GCTGGGGTAG TCAGTCTCTG&lt;br /&gt;
       241 ACTATTAAGG AGTTGCAGAA AGCTGCGATC GACTATTTCA TTGATTATGC AGGAATGGAC&lt;br /&gt;
       301 GAAACAGGAG AAATACAGAC AGGCCCTATG AGGGGAGGTA TATTTATAGC TGCCGCCGGA&lt;br /&gt;
       361 AACGATAACG TTTCCACTCC AAATATGCCT TCAGCTTATG AACGGGTTTT AGCTGTGGCC&lt;br /&gt;
       421 TCAATGGGAC CAGATTTTAC TAAGGCAAGC TATAGCACTT TTGGAACATG GACTGATATT&lt;br /&gt;
       481 ACTGCTCCTG GCGGAGATAT TGACAAATTT GATTTGTCAG AATACGGAGT TCTCAGCACT&lt;br /&gt;
       541 TATGCCGATA ATTATTATGC TTATGGAGAG GGAACATCCA TGGCTTGTCC ACATGTCGCC&lt;br /&gt;
       601 GGCGCCGCC&lt;br /&gt;
 //&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]][[Image:Cogs_brain.png|right|150px]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 3.1 (Long question - read all)&#039;&#039;&#039;: &lt;br /&gt;
: &#039;&#039;Your task is now to find out &#039;&#039;&#039;what kind of enzyme&#039;&#039;&#039; this sequence is likely to encode, &#039;&#039;&#039;using the methods&#039;&#039;&#039; you have learned&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;INSTRUCTIONS&#039;&#039;&#039;: You are free to write the combined answer to this question in a free-style essay-like fashion - just be sure to include the subquestions in your answers. In an exam situation you will need to put all the clues together yourself, reason about the tools/databases to use, and document your findings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 1 - cleaning up the sequence&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
The sequence is (more or less) in GenBank format and the NCBI BLAST server expects the input to be in FASTA format, or to be &amp;quot;raw&amp;quot; unformatted sequence.&lt;br /&gt;
&lt;br /&gt;
* There are two solutions to this: &lt;br /&gt;
** Copy the sequence into a text-editor and manually create a FASTA file (&amp;quot;search and replace&amp;quot; and/or &amp;quot;rectangular selection&amp;quot; is useful for the reformatting). &amp;lt;br&amp;gt;This is the most robust solution: it will always work. (Look at [[Plain text files and Geany|the Geany exercise]] for a reminder of how to do this). &lt;br /&gt;
** Hope the creators of the web-server you&#039;re using were kind enough to automatically remove non-DNA letters (paste in ONLY the DNA lines) - this turns out to be the case for both NCBI BLAST and VirtualRibosome, but it &#039;&#039;cannot be universally relied upon&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: convert the sequence to FASTA format (manually, in Geany) and quote it in your report.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 2 - thinking about the task&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Consider the following before you start on solving this task:&lt;br /&gt;
* Based on the information given: is the sequence protein-coding?&lt;br /&gt;
* If it is, can you trust it will contain both a START and STOP codon?&lt;br /&gt;
* Do we know if the sequence is sense or anti-sense?&lt;br /&gt;
and think which consequences the answers to these questions should have for your choice of methods and parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: Give a summary of your considerations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;STEP 3 - Performing the database search&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Significance&#039;&#039;: We will put the criteria for significance at 1e-10 (remember: the higher the E-value, the worse the significance).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Subquestion&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
Cover the following in your answer:&lt;br /&gt;
* What tool(s) and database(s) will be relevant to use?&lt;br /&gt;
* Document the results from the different BLAST searches - what works and what does not work? &lt;br /&gt;
* You need to copy in small snippets of the BLAST results to document what you observe.&lt;br /&gt;
* &#039;&#039;&#039;In conclusion&#039;&#039;&#039;: What kind of enzyme is CLONE12? Gather as much evidence as possible.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastn): DU9XHV8H014&lt;br /&gt;
&lt;br /&gt;
Blast Job ID (blastp): DU9T4K44014&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==Part 4: BLAST&#039;ing Genomes==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: lavender; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
:&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; do &#039;&#039;&#039;NOT&#039;&#039;&#039; limit your search to &amp;quot;bacteria&amp;quot; here - now we are actively looking at organism specific queries.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So far we have been using BLAST to search in the big broad databases that covers at huge set of sequence from a large range of organisms. In this final part of the exercise we will be doing some more focused searches in smaller databases by targeting specific genomes.&lt;br /&gt;
&lt;br /&gt;
Typically this will be useful if you have a gene of known function from one organism (say a cell-cycle controlling gene from Yeast, &#039;&#039;Saccharomyces cerevisiae&#039;&#039;) and want to find the human homolog/ortholog to this gene (genes that control cell division are often involved in cancer).&lt;br /&gt;
&lt;br /&gt;
When you have been performing the BLAST searches, you have probably already noticed, that&#039;s it possible to search specifically in the Human and Mouse genomes (these database only contains sequences from Human/Mouse). It&#039;s also possible to restrict the output from searches in the large databases (e.g. NR) to specific organisms.&lt;br /&gt;
&lt;br /&gt;
A growing number of organisms have been fully sequenced, and the research teams responsible for a large scale genome project typically put up their own Web resources for accessing the data. For example the Yeast genome is principally hosted in the Saccharomyces Genome Database (SGD - www.yeastgenome.org) - it should be noted that SGD also offers BLAST as a means to search the database.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Genome links===&lt;br /&gt;
For the purpose of this exercise we will be using the genome resources hosted at the NCBI (with a short digression to SGD):&lt;br /&gt;
&lt;br /&gt;
* NCBI: http://www.ncbi.nlm.nih.gov/mapview/&lt;br /&gt;
* SGD:  http://www.yeastgenome.org &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Genome specific analysis of histones===&lt;br /&gt;
====SGD====&lt;br /&gt;
Let&#039;s do a small study of the relationship between the histones found in Yeast and in Human (evolutionary distance: ~1-1.5 billion years). &lt;br /&gt;
&lt;br /&gt;
Look up the &#039;&#039;&#039;HTA2&#039;&#039;&#039; gene in SGD (http://www.yeastgenome.org - use the search box at the top of the page). Notice that a brief description about the function of the gene and its protein product is displayed (a huge amount of additional information can be found further down the page - much of it Yeast specific).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.1&#039;&#039;&#039;: &lt;br /&gt;
:What information is given about the relationship between this gene and the gene &amp;quot;HTA1&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Browse the page and locate the link to the protein sequence. Save the sequence as a file, &#039;&#039;&#039;we&#039;ll need it in a moment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====NCBI====&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[file:NCBI_genomes_org_table1.png|frame|&#039;&#039;&#039;NCBI Genomes page&#039;&#039;&#039; - organism specific links]]&lt;br /&gt;
&lt;br /&gt;
* Now return to the NCBI Genome page (Map viewer).&lt;br /&gt;
&lt;br /&gt;
Notice that an overview of the organisms for which genomes are available is shown in a box to the right (section: &amp;quot;Organism-specific&amp;quot;) - for each organism the information available is shown using a single letter code (&amp;quot;B&amp;quot; = BLAST). You can use this to open a BLAST page dedicated to that specific genome (you can search both DNA and proteins translated from the genes).&lt;br /&gt;
&lt;br /&gt;
Before we start looking in the human genome, let&#039;s find out if we can locate the HTA2 gene in the NCBI version of the Yeast genome:&lt;br /&gt;
* Go to the BLAST page for Yeast (Click &amp;quot;B&amp;quot;).&lt;br /&gt;
* Click the &amp;lt;u&amp;gt;blastp&amp;lt;/u&amp;gt; tab at the top of the page&lt;br /&gt;
* Choose &amp;quot;RefSeq protein&amp;quot; as the database&lt;br /&gt;
* Use the HTA2 protein sequence as query.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now return to the NCBI blastp page. Set &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, and enter &amp;lt;tt&amp;gt;Saccharomyces cerevisiae&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field (and accept the suggestion with taxid:4932).&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR6NDFMJ013&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.2&#039;&#039;&#039;: &lt;br /&gt;
:&#039;&#039;(Remember to document your answers)&#039;&#039;&lt;br /&gt;
:* How many high-confidence hits do we get?&lt;br /&gt;
:* Do the hits make sense, from what you have read about HTA2 at the SGD webpage?&lt;br /&gt;
:&#039;&#039;&#039;Tip:&#039;&#039;&#039; click on the &amp;lt;u&amp;gt;Gene&amp;lt;/u&amp;gt; links under &amp;lt;u&amp;gt;Related Information&amp;lt;/u&amp;gt; (to the right of the alignments) to see the gene names for the protein hits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step is to search the translated version of the human genome.&lt;br /&gt;
&lt;br /&gt;
Do as before, still with &amp;lt;u&amp;gt;Database&amp;lt;/u&amp;gt; set to &amp;quot;Reference proteins (refseq_protein)&amp;quot;, just enter &amp;lt;tt&amp;gt;Human&amp;lt;/tt&amp;gt; in the &amp;lt;u&amp;gt;Organism&amp;lt;/u&amp;gt; field.&lt;br /&gt;
&lt;br /&gt;
Blast Job ID: FR65XVA0016&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.3&#039;&#039;&#039;:&lt;br /&gt;
:* How many high-confidence hits (with E-value better than 10&amp;lt;sup&amp;gt;-10&amp;lt;/sup&amp;gt;) are found? (Approximately)&lt;br /&gt;
:* What are all the high-confidence hits called?&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
:* These protein originates from a number of genes - but how many UNIQUE genes?&lt;br /&gt;
:** Hint: Some of the proteins are iso-forms that originates from alternative splicing (one gene -&amp;gt; multiple iso-forms).&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
====Low complexity filter====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Notice&#039;&#039;: In the BLAST alignments - some parts of the sequences are marked in grey - these are low-complexity regions, that BLAST by default ignores in the comparison (but NCBI has chosen to show them in lower case grey for pointing out the regions).&lt;br /&gt;
&lt;br /&gt;
* As the very last thing today, try to explicitly ENABLE the low-complexity filter, and re-run the search (in a new window/tab): &lt;br /&gt;
* When you get the result page, click &amp;quot;&amp;lt;u&amp;gt;Formatting options&amp;lt;/u&amp;gt;&amp;quot; and set &amp;lt;u&amp;gt;MASKING&amp;lt;/u&amp;gt; to &amp;quot;&amp;lt;u&amp;gt;X for protein, N for nucleotide&amp;lt;/u&amp;gt;&amp;quot;.&lt;br /&gt;
* Inspect the alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Office-notes-line_drawing.png|30px|left]]&lt;br /&gt;
:&#039;&#039;&#039;QUESTION 4.4&#039;&#039;&#039;: &lt;br /&gt;
:Do we get shorter alignments this time?&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Concluding remarks==&lt;br /&gt;
Today we have been using BLAST to find a number of homologous genes (and protein-products). If we want to go even deeper into the analysis of the homologs, the next logical step would be to build a dataset of the full-length versions of the sequences we have found (not just the part found by the local alignment in BLAST).&lt;br /&gt;
&lt;br /&gt;
A further analysis could consist of a series of pairwise alignments (for finding out what is similar/different between pairs of sequences) or a multiple alignment which could form the basis of establishing the evolutionary relationship between the entire set of sequences.&lt;br /&gt;
&lt;br /&gt;
BLAST can also be used as way to build a dataset of sequences base on a known &amp;quot;seed&amp;quot; sequence. As we saw in the GenBank exercise, free-text searching in the GenBank can be difficult, and if we for instance wanted to build a dataset of variants of the insulin gene, an easiy way to go around this would be to BLAST the normal version of the insulin against the sequence database of choice, and pick the best matching hits from here.&lt;/div&gt;</summary>
		<author><name>Carol</name></author>
	</entry>
</feed>