Difference between revisions of "BIO Assignment Week 7"

From "A B C"
Jump to navigation Jump to search
(Created page with "<div id="BIO"> <div class="b1"> Assignment for Week 8<br /> <span style="font-size: 70%">Homology Modeling</span> </div> {{Template:Active}} Concepts and activities (and rea...")
 
m
Line 5: Line 5:
 
</div>
 
</div>
  
{{Template:Active}}
+
{{Template:Inactive}}
  
 
Concepts and activities (and reading, if applicable) for this assignment will be topics on next week's quiz.  
 
Concepts and activities (and reading, if applicable) for this assignment will be topics on next week's quiz.  

Revision as of 16:29, 19 November 2012

Assignment for Week 8
Homology Modeling

Note! This assignment is currently inactive. Major and minor unannounced changes may be made at any time.

 
 

Concepts and activities (and reading, if applicable) for this assignment will be topics on next week's quiz.



 

Introduction

How could the search for ultimate truth have revealed so hideous and visceral-looking an object?
Max Perutz (on his first glimpse of the Hemoglobin structure)

   

Where is the hidden beauty in structure, and where, the "ultimate truth"? In the previous assignments we have studied sequence conservation in APSES family domains and we have discovered homologues in all fungal species. This is an ancient protein family that had already duplicated to several paralogues at the time the cenancestor of all fungi lived, more than 600,000,000 years ago, in the Vendian period of the Proterozoic era of Precambrian times.

In order to understand how specific residues in the sequence contribute to the putative function of the protein, and why and how they are conserved throughout evolution, we would need to study an explicit molecular model of an APSES domain protein, bound to its cognate DNA sequence. Explanations of a protein's observed properties and functions can't rely on the general fact that it binds DNA, we need to consider details in terms of specific residues and their spatial arrangement. In particular, it would be interesting to correlate the conservation patterns of key residues with their potential to make specific DNA binding interactions. Unfortunately, no APSES domain structures in complex with bound DNA has been solved up to now, and the experimental evidence we have considered in Assignment 2 (Taylor et al., 2000) is not sufficient to unambiguously define the details of how a DNA double helix might be bound. Moreover, at least two distinct modes of DNA binding are known for proteins of the winged-helix superfamily, of which the APSES domain is a member.

In this assignment you will (1) construct a molecular model of the APSES domain from the Mbp1 orthologue in your assigned species, (2) identify similar structures of distantly related domains for which protein-DNA complexes are known, (3) assemble a hypothetical complex structure and (4) consider whether the available evidence allows you to distinguish between different modes of ligand binding.

For the following, please remember the following terminology:

Target
The protein that you are planning to model.
Template
The protein whose structure you are using as a guide to build the model.
Model
The structure that results from the modeling process. It has the Target sequence and is similar to the Template structure.

 

A brief overview article on the construction and use of homology models is linked to the resource section at the bottom of this page. That section also contains links to other sites and resources you might find useful or interesting.


 

Preparation

Template choice and template sequence

The SWISS-MODEL server provides several different options for constructing homology models. The easiest is probably the Automated Mode that requires only a target sequence as input. In this mode the program will automatically choose suitable templates and create an input alignment. I disagree however that that is the best way to use such a service: the reason is that template choice and alignment both may be significantly influenced by biochemical reasoning, and an automated algorithm cannot make the necessary decisions. Should you use a structure of reduced resolution that however has a ligand bound? Should you move an indel from an active site to a loop region even though the sequence similarity score might be less? Questions like that may yield answers that are counter to the best choices an automated algorithm could make. Therefore we will use the Alignment Mode of Swiss-Model in this assignment, choose our own template and upload our own alignment. But please note: the model you will produce is "easy" - the sequence similarity is high and there are no indels to consider. But the strategy we pursue here is suitable also for much more difficult problems. The automated strategy probably is not.

Template choice is the first step. Often more than one related structure can be found in the PDB. We have touched on principles of selecting template structures in the lectures; please refer to the template choice principles page on this Wiki where I have reviewed the principles and discussed more details and alternatives. One can either search the PDB itself through its Advanced Search interface; for example one can search for sequence similarity with a BLAST search, or search for structural similarity by accessing structures according to their CATH or SCOP classification. But the BLAST search is probably the method of choice: after all, the most important measure of the probability of success for homology modeling is sequence similarity.

In Assignment 3, you have defined the extent of the APSES domain in yeast Mbp1. In Assignment 6, you have used PSI-BLAST to search for APSES domains in YFO. In Assignment 7 you have confirmed by Reciprocal Best Match which of these APSES domain sequences is the closest related orthologue to yeast Mbp1. This sequence is the best candidate for having a conserved function similar to yeast Mbp1. Therefore, this sequence is the one you will model: it is called the target for the homology modeling procedure. In the same assignment you have also computed a multiple sequence alignment that includes the sequence of Mbp1 with YFO.

Defining a template means finding a PDB coordinate set that has sufficient sequence similarity to your target that you can build a model based on that template. In Assignment 2 you have used a keyword search at the PDB to find "Mbp1" structures - but some of these structures were not homologs: keyword searches are notoriously unreliable. To find suitable PDB structures, we will perform a BLAST search at the PDB instead.


Task:

  1. Retrieve your YFO Mbp1-like APSES domain sequence. You can find the domain boundaries for the yeast protein in the Mbp1 annotation reference page, and you can get the aligned sequence from your MSA, or simply recompute it with the needle program of the EMBOSS suite. This YFO sequence is your target sequence.
  2. Navigate to the PDB.
  3. Click on Advanced to enter the advanced search interface.
  4. Open the menu to Choose a Query Type:
  5. Find the Sequence features section and choose Sequence (BLAST...)
  6. Paste your target sequence into the Sequence field, select not to mask low-complexity regions and Submit Query. Since the E-value is set rather high by default, you will get a number of low-confidence hits as well as the actual homologs, these have very low E-values.

All hits that are homologs are potentially suitable templates, but some are more suitable than others. Consider how the coordinate sets differ and which features would make each more or less suitable for creating a homology model: you should consider ...

  • sequence similarity to your target
  • size of expected model (= length of alignment)
  • presence or absence of ligands
  • experimental method and quality of the data set

Sequence similarity is the most important, but we can have the PDB tabulate the other features concisely for this task.

  1. There is a menu to create Reports: - select customizable table.
  2. Select (at least) the following information items:
Structure Summary
  • Experimental Method
Sequence
  • Chain Length
Ligands
  • Ligand Name
Biological details
  • Macromolecule Name
refinement Details
  • Resolution
  • R Work
  • R free
  1. click: Create report.

Unfortunately you don't get the E-values into the report, and those should strongly influence your final decision. However in our case the sequences and therefore the E-values of the top three hits are all the same. Neither of the structures has a bound DNA ligand, but the experimental methods and structure quality are different. Two of the sequences have a longer chain-length ... but those are only disordered residues (otherwise these would be better suited templates; regrettably, you'd need to check that in the real world, there is no automatic tool to evaluate disorder and its effects on template choice). In my opinion that leaves pretty much only one unambiguous choice: 1BM8. In case you don't agree, please let me know.

Finally
navigate to the structure page for your template and save the FASTA file to your computer.


 


Sequence numbering

 

It is not straightforward at all how to number sequence in such a project. A "natural" numbering starts with the start-codon of the full length protein and goes sequentially from there. However, this does not map exactly to other numbering schemes we have encountered. As you know the first residue of the APSES domain (as defined by CDD) is not Residue 1 of the Mbp1 protein. The first residue of the 1BM8 FASTA file (one of the related PDB structures) is the fourth residue of the Mbp1 protein. The first residue in the structure is GLN 3, therefore Q is the first residue in a FASTA sequence derived from the cordinate section of the PDB file (the ATOM records. In the 1MB1 structure, the original N-terminal amino acids are present in the molecule, therefore they are present in the FASTA file which starts with MSNQIY..., but they are disordered in the structure and no coordinates are present for M and S. A sequence derived explicitly from the coordinates is therefore different from the reported FASTA sequence, which is really bad because that is what the modeling program has to work with ... and so on. It can get complicated. You need to remember: a sequence number is not absolute, but assigned in a particular context and you need to be careful how to do this.

Fortunately, the numbering for the residues in the coordinate section of our target structure corresponds not to its FASTA sequence, but to the numbering of the gene. Otherwise we would need to renumber the sequence (e.g. by using the bio3D R package).


 


The input alignment

  The sequence alignment between target and template is the single most important factor that determines the quality of your model. No comparative modeling process will repair an incorrect alignment; it is useful to consider a homology model rather like a three-dimensional map of a sequence alignment rather than a structure in its own right. In a homology modeling project, typically the largest amount of time should be spent on preparing the best possible alignment. Even though automated servers like the SwissModel server will align sequences and select template structures for you, it would be unwise to use these only because they are convenient. You should take advantage of the much more sophisticated alignment methods available. Analysis of wrong models can't be expected to produce right results.

The best possible alignment is usually constructed from a multiple sequence alignment that includes at least the target and template sequence and other related sequences as well. The additional sequences are an important aid in identifying the correct placement of insertions and deletions. Your alignment should have been carefully reviewed by you and wherever required, manually adjusted to move insertions or deletions between target and template out of the secondary structure elements of the template structure.

In most of the Mbp1 orthologues, we do not observe indels in the APSES domain regions - (and for the ones in which we do see indels, we might suspect that these are actually gene-model errors). Evolutionary pressure on the APSES domains has selected against indels in the more than 600 million years these sequences have evolved independently in their respective species. To obtain an alignment between the template sequence and the target sequence from your species, proceed as follows.


 

Task:
Choose on of the following options to align your target and template sequence.


In Jalview...
  • Load your Jalview project with aligned APSES domain sequences or recreate it from the Mbp1 orthologue sequences from the Mbp1 protein orthologs page that I prepared for Assignment 7. Include the sequence of your template protein and re-align.
  • Delete all sequence you no longer need, i.e. keep only the APSES domains of the target (from your species) and the template (from the PDB) and choose Edit → Remove empty columns. This is your input alignment.
  • Choose File→Output to textbox→FASTA to obtain the aligned sequences. They should both have exactly the same length, i.e. N- or C- termini have to be padded by hyphens if the original sequences had different length. Save the sequences in a text-file.


Using a different MSA program
  • Copy the FASTA formatted sequences of the Mbp1 proteins in the reference species from the Reference APSES domain page.
  • Access e.g. the MSA tools page at the EBI.
  • Paste the Mbp1 sequence set, your target sequence and the template sequence into the input form.
  • Run the alignment and save the output.


Using the EMBOSS explorer
  • Use the needle tool for the alignment ... but remember that pairwise alignments will only be suitable in casethe alignment is absolutely unambiguous (such as here) . If there are any indels, an MSA will give much more reliable information.


By hand

APSES domains are strongly conserved and have few if any indels. You could also simply align by hand.

  • Copy the CLUSTAL formatted reference alignment of the Mbp1 proteins in the reference species from the Reference APSES domain page.
  • Open a new file in a text editor.
  • Paste the Mbp1 sequence set, your target sequence and the template sequence into the file.
  • Align by hand, replace all spaces with hyphens and save the output.


Whatever method you use: the result should be a two sequence alignment in multi-FASTA format, that was constructed from a number of supporting sequences and that contains your aligned target and template sequence. This is your input alignment for the homology modeling server. For a Schizosaccharomyces pombe model, which I am using as an example here, it looks like this:

>1BM8_A 
QIYSARYSGVDVYEFIHSTGSIMKRKKDDWVNATHILKAANFAKAKRTRI
LEKEVLKETHEKVQGGFGKYQGTWVPLNIAKQLAEKFSVYDQLKPLFDF
>Mbp1_SCHPO 2-100 NP_593032
AVHVAVYSGVEVYECFIKGVSVMRRRRDSWLNATQILKVADFDKPQRTRV
LERQVQIGAHEKVQGGYGKYQGTWVPFQRGVDLATKYKVDGIMSPILSL


 

Homology model

 


SwissModel

 

Access the Swissmodel server at http://swissmodel.expasy.org . Navigate to the Alignment Mode page.

Task:

  • Paste your alignment for target and model into the form field. Refer to the Fallback Data file if you are not sure about the format. Make sure to select the correct option (FASTA) for the alignment input format on the form.
  • Click submit alignment and on the returned page define your target and template sequence. For the template sequence define the PDB ID of the coordinate file it came from. Enter the correct Chain-ID (usually "A", note: upper-case).
If you run into problems, compare your input to the fallback data. It has worked for me, it will work for you. In particular we have seen problems that arise from "special" characters in the FASTA header like the pipe "|" character that the NCBI uses to separate IDs - keep the header short and remove all non-alphanumeric characters to be safe.
  • Click submit alignment and review the alignment on the returned page. Make sure it has been interpreted correctly by the server. The conserved residues have to be lined up and matching. Then click submit alignment again, to start the modeling process.
  • The resulting page returns information about the resulting model. Save the model coordinates on your computer. Read the information on what is being returned by the server (click on the red questionmark icon). Study the quality measures.


The server should complete your model within a few minutes and alert you by e-mail. You will also find the results in the Webpage you started the model from.


Task:

  1. Click on download model: as pdb.
  2. Also save:
    1. The output page as pdf (for reference)
    2. The "Energy profile".

Model analysis

   

The PDB file

 

Task:
Open your model coordinates in a text-editor (make sure you view the PDB file in a fixed-width font (like "courier") so all the columns line up correctly) and consider the following questions:

  • What is the residue number of the first residue in the model? What should it be, based on the alignment? If the putative DNA binding region was reported to be residues 50-74 in the Mbp1 protein, which residues of your model correspond to that region?


R code: renumbering the model

As you have seen, SwissModel numbers the first residue "1" and does not keep the numbering of the template. We should renumber the model so we can compare the model and the template with the same residue numbers. Fortunately there is a very useful R package that will help us with that.

Task:

  1. Navigate to the bio3D home page and follow the link to the download section.
  2. Follow the instructions to install bio3D for R on your platform.
  3. Explore and execute the following R script. I am assuming that your model is in your working directory, change paths and filenames as required.
# renumberPDB.R
# This is an exceedingly simple renumbering script that uses the
# bio3D package. We simply set the first residue number to what it
# should be and renumber all residues based on the first one.
# The script assumes your input PDBfile is in your working
# directory.

setwd("~/my/working/directory")
PDBin      <- "YFO_model.pdb"
PDBout     <- "YFO_model_ren.pdb"
first <- 4  # residue number that the first residue should have
 
# ================================================
#    Read coordinate file
# ================================================
 
# read PDB file using bio3D function read.pdb()
library(bio3d)
pdb  <- read.pdb(PDBin) # read the PDB file into a list

pdb            # examine the information
pdb$atom[1,]   # get information for the first atom

# you can explore ?read.pdb and study the examples.

# ================================================
#    Change residue numbers
# ================================================


resNum <- as.numeric(pdb$atom[,"resno"])  # get residue numbers for all atoms
resNum <- resNum + (first - resNum[1])         # calculate offset
pdb$atom[,"resno"] <- resNum             # replace old numbers with new
pdb$atom[1,]                                   # check result


# ================================================
#    Write output to file
# ================================================

write.pdb(pdb=pdb,file=PDBout)

# Done.


 

First visualization

 

Previously you have already studied a Mbp1 structure and compared it with your organism's Mbp1 APSES domain. Since a homology model inherits its structural details from the template, the model should look very similar to the original structure but contain the sequence of the target.

Task:

  1. Load the model coordinates you have saved on your computer in VMD.
  2. From the PDB, also load the template structure. (Use File → New Molecule ...)
  3. In the GraphicsRepresentations window you can switch between the two molecules by clicking on the Selected Molecule.
  4. Choose Trace as the Drawing Method and give the two chains distinct colors
  5. The two molecules should already be aligned quite well, to be sure go, back to the VMD main window, choose ExtensionsAnalysisRMSD calculator and align the two chains.
  6. Note the backbone coordinate differences, if any.
  7. Next, display the two molecules in a line or licorice style and note how the sidechains have been modeled. Note especially how sidechain coordinates have been guessed, where the template had shorter sidechains than the target.
  8. Display only the selections residue 50 to 74 respectively residue 50 to 74 and not element H to confirm that the numbering targets the right residues.

 
 


R code: coloring the model by energy

Swiss model calculates energies for each residue of the model with a molecular mechanics forcefield. The result summary page contains an image what these energies look like. You have downloaded the Energy profile scores, but it will be useful to be able to map these scores to the actual model.


The general strategy we can use here is to use the B factor field in the PDB file. As discussed in class, B factors characterize the mobility or disorder of an atom in a crystal structure and VMD allows you to color structures according to their B factors. All we need to do is to get the

Task:

  1. Back in VMD, undisplay the structure of your model, by selecting the model in the Graphical Representations window and double-clicking on the representation (in the window where its style, color and selection are listed.) The representation description changes from black to pink.
  2. Then select the template structure and draw it in licorice style.
  3. Choose Beta as the coloring method.
  4. In the VMD main window, choose GraphicsColors and select the Color Scale tab.
  5. Choose BWR (blue - white - red) as the color scale. This color low B-values, immobile residues a cool blue, mobile residues (high B-values) a warm red. Note how there is a tendency for immobile residues in the core, higher B-values on the surface.


If you examine the model PDB file, you will notice that there are only two B-values used: 99 for "completely made up" coordinates, 50 for all others. Let us thus load the energy value file in R and put these values in the correct PDB field. You have downloaded the Energy profile from SwissModel, right? Formally, the script is a bit similar to the one above, but pay special attention to the way we use conditional expressions to select exatly the rows and columns we want.

# energy2Bvalue.R
# This is an exceedingly simple renumbering script that uses the
# bio3D package. We simply set the first residue number to what it
# should be and renumber all residues based on the first one.
# The script assumes your input PDBfile is in your working
# directory.

setwd("~/Documents/00.0.DEV/35-BCH441\ Bioinformatics\ 2012")
PDBin     <- "SCHPO_model_ren.pdb"
PDBout    <- "SCHPO_model_energyB.pdb"
Eprof     <- "Local_energy_profile.csv"
 
# ================================================
#    Read coordinate file
# ================================================
 
# read PDB file using bio3D function read.pdb()
library(bio3d)
pdb  <- read.pdb(PDBin) # read the PDB file into a list

# ================================================
#    Read energy file
# ================================================
 
en <- read.csv(Eprof, header=TRUE, sep=" ") # read file

en   # examine contents
scores <- unlist(en[,"QMEANlocalScore"])

# normalize "scores" to lie between 0 and 80
scores <- 80 * ((scores - min(scores))/(max(scores)-min(scores)))


# ================================================
#    replace B-values with energies
# ================================================
 

### get the correct sequence of residue numbers

numbers <- pdb$atom[pdb$atom[,"elety"] == "CA","resno"]

# This might warrant some explanation:
# pdb$atom[,"elety"] == "CA" is a logical expression: TRUE for
# all rows which are CA atoms.
# If this expression appears in the "rows" position of 
# pdb$atom[rows, columns], only those rows will be selected for
# which the expression is TRUE. From these rows, I collect only
# the column with the name "resno". This gives me the residue
# numbers, in sequence, assuming every residue has a C-alpha
# (CA) atom. Therefore every *index* of numbers[,] corresponds to
# the same index of the vector scores[,] , which holds the scores,
# sequentially; every *value* of numbers[,] corresponds to a "resno"
# in pdb$atom[,].

for (i in 1:length(scores)) { # for all values in the scores vector
	residue <- numbers[i]     # define which residue this is
	pdb$atom[pdb$atom[,"resno"] == residue,"b"] <- scores[i] # update "b" for
	                                                         # all atoms in
	                                                         # this residue 
}


# ================================================
#    Write output to file
# ================================================

write.pdb(pdb=pdb,file=PDBout)

# Done.
  1. Load the new coordinate file, color by B-values ("Beta") and ensure the color scale is "BWR.
  2. Think carefully about which residues in general are considered reliable (low energy, blue) and which ones are less reliable (pink and red, high B-values. I think one of the quiz questions will probably be about that.


That is all.


Links and Resources

 


Data
  • Fallback Data page - Refer to this page in case your own efforts fail, or you have insurmountable problems with your input files.


Reference sequences


 


Footnotes and references


 

Ask, if things don't work for you!

If anything about the assignment is not clear to you, please ask on the mailing list. You can be certain that others will have had similar problems. Success comes from joining the conversation.