<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://cyana.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Deansalias</id>
	<title>CYANA Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://cyana.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Deansalias"/>
	<link rel="alternate" type="text/html" href="https://cyana.org/wiki/Special:Contributions/Deansalias"/>
	<updated>2026-04-08T12:08:59Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8849</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8849"/>
		<updated>2018-03-01T15:33:10Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Exercise 1: Determine the spectrum type */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the XEASY peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an X-ray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not a library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA. &lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
=== Experimental input data ===&lt;br /&gt;
&lt;br /&gt;
Spectra are processed and referenced relative to each other. Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview and saved as &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the name of the xeasy peak list file.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed). &lt;br /&gt;
&lt;br /&gt;
As part of the data supplied for the exercises, experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D &amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C-resolved NOESY   called aro (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D &amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C-resolved NOESY   called cnoesy (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D &amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N-resolved NOESY   called nnoesy (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
==== SPECTRUM definitions in the CYANA library ====&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded, and of course they do not in general match the SPECTRUM definition given in the &#039;cyana.lib&#039; file. If it does not match, do not change it in the &#039;cyana.lib&#039; file but switch the order of the atom labels it in the definition you add to your &#039;*.peaks&#039; file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
==== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ====&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;. Collecting the commands in macros has the added advantage, that the macros serve as a record allowing to reconstruct previous calculations.&lt;br /&gt;
&lt;br /&gt;
==== The init macro ====&lt;br /&gt;
&lt;br /&gt;
The initialization macro file has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program by typing &#039;init&#039;. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, and the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
==== The FLYA CALC macro ====&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The command above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter chooses the &amp;quot;quick&amp;quot; optimization schedule in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
The next command specifies that swapping of diastereotopic pairs is optimized with respect to the supplied reference assignment (only applied during consolidation):&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify the following:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the &#039;CALC.cya&#039; macro in parallel:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check whether the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FLYA output files ===&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
==== The flya.txt file ====&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
==== The flya.tab file ====&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
==== The flya.pdf file ====&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical text editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate torsion angle restraints ==&lt;br /&gt;
&lt;br /&gt;
Torsion angle restraints from the backbone chemical shifts help restrict angular conformation space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate backbone torsion angle restraints using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use a text editor of your choice to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angle restraints.&lt;br /&gt;
&lt;br /&gt;
TALOS is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.prot with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS+ and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
==== The noeassign CALC macro ====&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures:=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---Where as ????x torsion angle dynamics steps will be applied per conformer. ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you are done preparing the macros as outlined run the calculation.&lt;br /&gt;
&lt;br /&gt;
The automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;. 7 cycles of calculations will be preformed.&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open LIG.png&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726   &lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
Run the calculation:&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Name additional experimental restraints (or inputs) you could use for structure calculation.&lt;br /&gt;
*Name additional NMR experiments you could measure, to acquire experimental data that are not supplied with the demo_data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8848</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8848"/>
		<updated>2018-03-01T15:31:40Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Exercise 1: Determine the spectrum type */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the XEASY peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an X-ray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not a library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA. &lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
=== Experimental input data ===&lt;br /&gt;
&lt;br /&gt;
Spectra are processed and referenced relative to each other. Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview and saved as &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the name of the xeasy peak list file.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed). &lt;br /&gt;
&lt;br /&gt;
As part of the data supplied for the exercises, experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D &amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C-resolved NOESY   called aro (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D &amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C-resolved NOESY   called cnoesy (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D &amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N-resolved NOESY   called nnoesy (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
==== SPECTRUM definitions in the CYANA library ====&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded, and of course they do not in general match the SPECTRUM definition given in the &#039;cyana.lib&#039; file. If it does not match, do not change it in the &#039;cyana.lib&#039; file but switch the order of the atom types it in the definition you add to your &#039;*.peaks&#039; file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
==== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ====&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;. Collecting the commands in macros has the added advantage, that the macros serve as a record allowing to reconstruct previous calculations.&lt;br /&gt;
&lt;br /&gt;
==== The init macro ====&lt;br /&gt;
&lt;br /&gt;
The initialization macro file has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program by typing &#039;init&#039;. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, and the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
==== The FLYA CALC macro ====&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The command above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter chooses the &amp;quot;quick&amp;quot; optimization schedule in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
The next command specifies that swapping of diastereotopic pairs is optimized with respect to the supplied reference assignment (only applied during consolidation):&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify the following:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the &#039;CALC.cya&#039; macro in parallel:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check whether the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FLYA output files ===&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
==== The flya.txt file ====&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
==== The flya.tab file ====&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
==== The flya.pdf file ====&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical text editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate torsion angle restraints ==&lt;br /&gt;
&lt;br /&gt;
Torsion angle restraints from the backbone chemical shifts help restrict angular conformation space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate backbone torsion angle restraints using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use a text editor of your choice to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angle restraints.&lt;br /&gt;
&lt;br /&gt;
TALOS is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.prot with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS+ and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
==== The noeassign CALC macro ====&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures:=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---Where as ????x torsion angle dynamics steps will be applied per conformer. ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you are done preparing the macros as outlined run the calculation.&lt;br /&gt;
&lt;br /&gt;
The automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;. 7 cycles of calculations will be preformed.&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open LIG.png&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726   &lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
Run the calculation:&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Name additional experimental restraints (or inputs) you could use for structure calculation.&lt;br /&gt;
*Name additional NMR experiments you could measure, to acquire experimental data that are not supplied with the demo_data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8847</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8847"/>
		<updated>2018-03-01T15:29:06Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Exercise 1: Determine the spectrum type */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the XEASY peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an X-ray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not a library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA. &lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
=== Experimental input data ===&lt;br /&gt;
&lt;br /&gt;
Spectra are processed and referenced relative to each other. Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview and saved as &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the name of the xeasy peak list file.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed). &lt;br /&gt;
&lt;br /&gt;
As part of the data supplied for the exercises, experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D &amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C-resolved NOESY   called aro (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D &amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C-resolved NOESY   called cnoesy (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D &amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N-resolved NOESY   called nnoesy (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
==== SPECTRUM definitions in the CYANA library ====&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not in general match the SPECTRUM definition given in the &#039;cyana.lib&#039; file. If it does not match, do not change it in the &#039;cyana.lib&#039; file but switch the order of the atom types it in the definition you add to your &#039;*.peaks&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
==== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ====&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;. Collecting the commands in macros has the added advantage, that the macros serve as a record allowing to reconstruct previous calculations.&lt;br /&gt;
&lt;br /&gt;
==== The init macro ====&lt;br /&gt;
&lt;br /&gt;
The initialization macro file has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program by typing &#039;init&#039;. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, and the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
==== The FLYA CALC macro ====&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The command above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter chooses the &amp;quot;quick&amp;quot; optimization schedule in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
The next command specifies that swapping of diastereotopic pairs is optimized with respect to the supplied reference assignment (only applied during consolidation):&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify the following:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the &#039;CALC.cya&#039; macro in parallel:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check whether the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FLYA output files ===&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
==== The flya.txt file ====&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
==== The flya.tab file ====&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
==== The flya.pdf file ====&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical text editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate torsion angle restraints ==&lt;br /&gt;
&lt;br /&gt;
Torsion angle restraints from the backbone chemical shifts help restrict angular conformation space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate backbone torsion angle restraints using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use a text editor of your choice to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angle restraints.&lt;br /&gt;
&lt;br /&gt;
TALOS is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.prot with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS+ and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
==== The noeassign CALC macro ====&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures:=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---Where as ????x torsion angle dynamics steps will be applied per conformer. ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you are done preparing the macros as outlined run the calculation.&lt;br /&gt;
&lt;br /&gt;
The automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;. 7 cycles of calculations will be preformed.&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open LIG.png&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726   &lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
Run the calculation:&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Name additional experimental restraints (or inputs) you could use for structure calculation.&lt;br /&gt;
*Name additional NMR experiments you could measure, to acquire experimental data that are not supplied with the demo_data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8846</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8846"/>
		<updated>2018-03-01T15:27:40Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Exercise 1: Determine the spectrum type */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the XEASY peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an X-ray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not a library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA. &lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
=== Experimental input data ===&lt;br /&gt;
&lt;br /&gt;
Spectra are processed and referenced relative to each other. Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview and saved as &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the name of the xeasy peak list file.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed). &lt;br /&gt;
&lt;br /&gt;
As part of the data supplied for the exercises, experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D &amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C-resolved NOESY   called aro (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D &amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C-resolved NOESY   called cnoesy (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D &amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N-resolved NOESY   called nnoesy (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
==== SPECTRUM definitions in the CYANA library ====&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not in general match the SPECTRUM definition given in the &#039;cyana.lib&#039; file. If it does not match, do not change it in the cyana lib file but switch it in the definition you add to your &#039;*.peaks&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
==== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ====&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;. Collecting the commands in macros has the added advantage, that the macros serve as a record allowing to reconstruct previous calculations.&lt;br /&gt;
&lt;br /&gt;
==== The init macro ====&lt;br /&gt;
&lt;br /&gt;
The initialization macro file has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program by typing &#039;init&#039;. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, and the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
==== The FLYA CALC macro ====&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The command above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter chooses the &amp;quot;quick&amp;quot; optimization schedule in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
The next command specifies that swapping of diastereotopic pairs is optimized with respect to the supplied reference assignment (only applied during consolidation):&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify the following:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the &#039;CALC.cya&#039; macro in parallel:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check whether the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FLYA output files ===&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
==== The flya.txt file ====&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
==== The flya.tab file ====&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
==== The flya.pdf file ====&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical text editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate torsion angle restraints ==&lt;br /&gt;
&lt;br /&gt;
Torsion angle restraints from the backbone chemical shifts help restrict angular conformation space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate backbone torsion angle restraints using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use a text editor of your choice to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angle restraints.&lt;br /&gt;
&lt;br /&gt;
TALOS is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.prot with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS+ and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
==== The noeassign CALC macro ====&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures:=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---Where as ????x torsion angle dynamics steps will be applied per conformer. ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you are done preparing the macros as outlined run the calculation.&lt;br /&gt;
&lt;br /&gt;
The automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;. 7 cycles of calculations will be preformed.&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open LIG.png&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726   &lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
Run the calculation:&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Name additional experimental restraints (or inputs) you could use for structure calculation.&lt;br /&gt;
*Name additional NMR experiments you could measure, to acquire experimental data that are not supplied with the demo_data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8845</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8845"/>
		<updated>2018-02-26T12:18:16Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the XEASY peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an X-ray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not a library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA. &lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
=== Experimental input data ===&lt;br /&gt;
&lt;br /&gt;
Spectra are processed and referenced relative to each other. Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview and saved as &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the name of the xeasy peak list file.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed). &lt;br /&gt;
&lt;br /&gt;
As part of the data supplied for the exercises, experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D &amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C-resolved NOESY   called aro (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D &amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C-resolved NOESY   called cnoesy (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D &amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N-resolved NOESY   called nnoesy (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
==== SPECTRUM definitions in the CYANA library ====&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
==== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ====&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;. Collecting the commands in macros has the added advantage, that the macros serve as a record allowing to reconstruct previous calculations.&lt;br /&gt;
&lt;br /&gt;
==== The init macro ====&lt;br /&gt;
&lt;br /&gt;
The initialization macro file has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program by typing &#039;init&#039;. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, and the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
==== The FLYA CALC macro ====&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The command above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter chooses the &amp;quot;quick&amp;quot; optimization schedule in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
The next command specifies that swapping of diastereotopic pairs is optimized with respect to the supplied reference assignment (only applied during consolidation):&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify the following:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the &#039;CALC.cya&#039; macro in parallel:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check whether the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FLYA output files ===&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
==== The flya.txt file ====&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
==== The flya.tab file ====&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
==== The flya.pdf file ====&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical text editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate torsion angle restraints ==&lt;br /&gt;
&lt;br /&gt;
Torsion angle restraints from the backbone chemical shifts help restrict angular conformation space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate backbone torsion angle restraints using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use a text editor of your choice to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angle restraints.&lt;br /&gt;
&lt;br /&gt;
TALOS is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.prot with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS+ and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
==== The noeassign CALC macro ====&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures:=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---Where as ????x torsion angle dynamics steps will be applied per conformer. ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you are done preparing the macros as outlined run the calculation.&lt;br /&gt;
&lt;br /&gt;
The automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;. 7 cycles of calculations will be preformed.&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open LIG.png&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726   &lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
Run the calculation:&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Name additional experimental restraints (or inputs) you could use for structure calculation.&lt;br /&gt;
*Name additional NMR experiments you could measure, to acquire experimental data that are not supplied with the demo_data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8844</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8844"/>
		<updated>2018-02-26T12:16:10Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Exercise 14: Work on improving the final structure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the XEASY peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an X-ray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not a library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA. &lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
=== Experimental input data ===&lt;br /&gt;
&lt;br /&gt;
Spectra are processed and referenced relative to each other. Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview and saved as &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the name of the xeasy peak list file.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed). &lt;br /&gt;
&lt;br /&gt;
As part of the data supplied for the exercises, experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D &amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C-resolved NOESY   called aro (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D &amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C-resolved NOESY   called cnoesy (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D &amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N-resolved NOESY   called nnoesy (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
==== SPECTRUM definitions in the CYANA library ====&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
==== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ====&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;. Collecting the commands in macros has the added advantage, that the macros serve as a record allowing to reconstruct previous calculations.&lt;br /&gt;
&lt;br /&gt;
==== The init macro ====&lt;br /&gt;
&lt;br /&gt;
The initialization macro file has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program by typing &#039;init&#039;. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, and the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
==== The FLYA CALC macro ====&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The command above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter chooses the &amp;quot;quick&amp;quot; optimization schedule in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
The next command specifies that swapping of diastereotopic pairs is optimized with respect to the supplied reference assignment (only applied during consolidation):&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify the following:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the &#039;CALC.cya&#039; macro in parallel:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check whether the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FLYA output files ===&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
==== The flya.txt file ====&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
==== The flya.tab file ====&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
==== The flya.pdf file ====&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical text editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate torsion angle restraints ==&lt;br /&gt;
&lt;br /&gt;
Torsion angle restraints from the backbone chemical shifts help restrict angular conformation space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate backbone torsion angle restraints using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use a text editor of your choice to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angle restraints.&lt;br /&gt;
&lt;br /&gt;
TALOS is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.prot with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS+ and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
==== The noeassign CALC macro ====&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures:=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---Where as ????x torsion angle dynamics steps will be applied per conformer. ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you are done preparing the macros as outlined run the calculation.&lt;br /&gt;
&lt;br /&gt;
The automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;. 7 cycles of calculations will be preformed.&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open LIG.png&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726   &lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
Run the calculation:&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for structure calculation?&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8836</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8836"/>
		<updated>2018-02-25T21:14:58Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA. &lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
=== Experimental input data ===&lt;br /&gt;
&lt;br /&gt;
Spectra are processed and referenced relative to each other. Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview and saved as &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the name of the xeasy peak list file.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed). &lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
==== SPECTRUM definitions in the CYANA library ====&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
==== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ====&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;. Collecting the commands in macros has the added advantage, that the macros serve as a record allowing to reconstruct previous calculations.&lt;br /&gt;
&lt;br /&gt;
==== The init macro ====&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
==== The FLYA CALC macro ====&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FLYA output files ===&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
==== The flya.txt file ====&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
==== The flya.tab file ====&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
==== The flya.pdf file ====&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
==== The noeassign CALC macro ====&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---Where as ????x torsion angle dynamics steps will be applied per conformer. ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you are done preparing the macros as outlined run the calculation.&lt;br /&gt;
&lt;br /&gt;
The automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;. 7 cycles of calculations will be preformed.&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open LIG.png&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726   &lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
Run the calculation:&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8835</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8835"/>
		<updated>2018-02-25T20:50:55Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA. &lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
=== Experimental input data ===&lt;br /&gt;
&lt;br /&gt;
Spectra are processed and referenced relative to each other. Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview and saved as &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the name of the xeasy peak list file.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed). &lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
==== SPECTRUM definitions in the CYANA library ====&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
==== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ====&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;. Collecting the commands in macros has the added advantage, that the macros serve as a record allowing to reconstruct previous calculations.&lt;br /&gt;
&lt;br /&gt;
==== The init macro ====&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
==== The FLYA CALC macro ====&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FLYA output files ===&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
==== The flya.txt file ====&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
==== The flya.tab file ====&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
==== The flya.pdf file ====&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
==== The noeassign CALC macro ====&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---Where as ????x torsion angle dynamics steps will be applied per conformer. ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you are done preparing the macros as outlined run the calculation.&lt;br /&gt;
&lt;br /&gt;
The automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;. 7 cycles of calculations will be preformed.&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open LIG.png&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
Run the calculation:&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8834</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8834"/>
		<updated>2018-02-25T18:40:01Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Exercise 6: Drawing the molecule and obtaining the SMILES code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA. &lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
=== Experimental input data ===&lt;br /&gt;
&lt;br /&gt;
Spectra are processed and referenced relative to each other. Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview and saved as &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the name of the xeasy peak list file.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed). &lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
==== SPECTRUM definitions in the CYANA library ====&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
==== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ====&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;. Collecting the commands in macros has the added advantage, that the macros serve as a record allowing to reconstruct previous calculations.&lt;br /&gt;
&lt;br /&gt;
==== The init macro ====&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
==== The FLYA CALC macro ====&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FLYA output files ===&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
==== The flya.txt file ====&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
==== The flya.tab file ====&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
==== The flya.pdf file ====&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
==== The noeassign CALC macro ====&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---Where as ????x torsion angle dynamics steps will be applied per conformer. ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you are done preparing the macros as outlined run the calculation.&lt;br /&gt;
&lt;br /&gt;
The automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;. 7 cycles of calculations will be preformed.&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open LIG.png&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8833</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8833"/>
		<updated>2018-02-25T14:26:10Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Execution scripts or &amp;quot;macros&amp;quot; in CYANA */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA. &lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
=== Experimental input data ===&lt;br /&gt;
&lt;br /&gt;
Spectra are processed and referenced relative to each other. Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview and saved as &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the name of the xeasy peak list file.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed). &lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
==== SPECTRUM definitions in the CYANA library ====&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
==== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ====&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;. Collecting the commands in macros has the added advantage, that the macros serve as a record allowing to reconstruct previous calculations.&lt;br /&gt;
&lt;br /&gt;
==== The init macro ====&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
==== The FLYA CALC macro ====&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FLYA output files ===&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
==== The flya.txt file ====&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
==== The flya.tab file ====&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
==== The flya.pdf file ====&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
==== The noeassign CALC macro ====&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---Where as ????x torsion angle dynamics steps will be applied per conformer. ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you are done preparing the macros as outlined run the calculation.&lt;br /&gt;
&lt;br /&gt;
The automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;. 7 cycles of calculations will be preformed.&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8832</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8832"/>
		<updated>2018-02-25T14:25:20Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Execution scripts or &amp;quot;macros&amp;quot; in CYANA */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA. &lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
=== Experimental input data ===&lt;br /&gt;
&lt;br /&gt;
Spectra are processed and referenced relative to each other. Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview and saved as &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the name of the xeasy peak list file.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed). &lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
==== SPECTRUM definitions in the CYANA library ====&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
==== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ====&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;. Collecting the commands in macros has the added advantage, that the serve also as a record allowing to reconstruct previous calculations.&lt;br /&gt;
&lt;br /&gt;
==== The init macro ====&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
==== The FLYA CALC macro ====&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FLYA output files ===&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
==== The flya.txt file ====&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
==== The flya.tab file ====&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
==== The flya.pdf file ====&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
==== The noeassign CALC macro ====&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---Where as ????x torsion angle dynamics steps will be applied per conformer. ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you are done preparing the macros as outlined run the calculation.&lt;br /&gt;
&lt;br /&gt;
The automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;. 7 cycles of calculations will be preformed.&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8831</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8831"/>
		<updated>2018-02-25T14:12:03Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Experimental input data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA. &lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
=== Experimental input data ===&lt;br /&gt;
&lt;br /&gt;
Spectra are processed and referenced relative to each other. Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview and saved as &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the name of the xeasy peak list file.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed). &lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
==== SPECTRUM definitions in the CYANA library ====&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
==== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ====&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
==== The init macro ====&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
==== The FLYA CALC macro ====&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FLYA output files ===&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
==== The flya.txt file ====&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
==== The flya.tab file ====&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
==== The flya.pdf file ====&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
==== The noeassign CALC macro ====&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---Where as ????x torsion angle dynamics steps will be applied per conformer. ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you are done preparing the macros as outlined run the calculation.&lt;br /&gt;
&lt;br /&gt;
The automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;. 7 cycles of calculations will be preformed.&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8830</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8830"/>
		<updated>2018-02-25T14:11:26Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Experimental input data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA. &lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
=== Experimental input data ===&lt;br /&gt;
&lt;br /&gt;
Spectra are processed and referenced relative to each other. Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the name of the xeasy peak list file.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed). &lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
==== SPECTRUM definitions in the CYANA library ====&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
==== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ====&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
==== The init macro ====&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
==== The FLYA CALC macro ====&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FLYA output files ===&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
==== The flya.txt file ====&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
==== The flya.tab file ====&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
==== The flya.pdf file ====&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
==== The noeassign CALC macro ====&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---Where as ????x torsion angle dynamics steps will be applied per conformer. ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you are done preparing the macros as outlined run the calculation.&lt;br /&gt;
&lt;br /&gt;
The automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;. 7 cycles of calculations will be preformed.&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8829</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8829"/>
		<updated>2018-02-25T14:10:09Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Automated resonance assignment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA. &lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
=== Experimental input data ===&lt;br /&gt;
&lt;br /&gt;
Spectra are processed and referenced relative to each other. Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed). &lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
==== SPECTRUM definitions in the CYANA library ====&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
==== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ====&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
==== The init macro ====&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
==== The FLYA CALC macro ====&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FLYA output files ===&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
==== The flya.txt file ====&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
==== The flya.tab file ====&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
==== The flya.pdf file ====&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
==== The noeassign CALC macro ====&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---Where as ????x torsion angle dynamics steps will be applied per conformer. ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you are done preparing the macros as outlined run the calculation.&lt;br /&gt;
&lt;br /&gt;
The automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;. 7 cycles of calculations will be preformed.&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8828</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8828"/>
		<updated>2018-02-25T14:05:25Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* The noeassign CALC macro */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA. Spectra are processed and referenced relative to each other. Then, peak lists are generated and cleaned as much as possible (water peaks, noise peaks etc.). In order to read the prepared peak lists, the spectrum definitions have to be added to the xeasy peak list as in exercise 1.&lt;br /&gt;
&lt;br /&gt;
=== Experimental input data ===&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
==== SPECTRUM definitions in the CYANA library ====&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
==== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ====&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
==== The init macro ====&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
==== The FLYA CALC macro ====&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FLYA output files ===&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
==== The flya.txt file ====&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
==== The flya.tab file ====&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
==== The flya.pdf file ====&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
==== The noeassign CALC macro ====&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---Where as ????x torsion angle dynamics steps will be applied per conformer. ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you are done preparing the macros as outlined run the calculation.&lt;br /&gt;
&lt;br /&gt;
The automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;. 7 cycles of calculations will be preformed.&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8827</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8827"/>
		<updated>2018-02-25T14:04:26Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* The flya.pdf file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA. Spectra are processed and referenced relative to each other. Then, peak lists are generated and cleaned as much as possible (water peaks, noise peaks etc.). In order to read the prepared peak lists, the spectrum definitions have to be added to the xeasy peak list as in exercise 1.&lt;br /&gt;
&lt;br /&gt;
=== Experimental input data ===&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
==== SPECTRUM definitions in the CYANA library ====&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
==== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ====&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
==== The init macro ====&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
==== The FLYA CALC macro ====&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FLYA output files ===&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
==== The flya.txt file ====&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
==== The flya.tab file ====&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
==== The flya.pdf file ====&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---Where as ????x torsion angle dynamics steps will be applied per conformer. ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you are done preparing the macros as outlined run the calculation.&lt;br /&gt;
&lt;br /&gt;
The automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;. 7 cycles of calculations will be preformed.&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8826</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8826"/>
		<updated>2018-02-25T14:04:12Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* The flya.tab file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA. Spectra are processed and referenced relative to each other. Then, peak lists are generated and cleaned as much as possible (water peaks, noise peaks etc.). In order to read the prepared peak lists, the spectrum definitions have to be added to the xeasy peak list as in exercise 1.&lt;br /&gt;
&lt;br /&gt;
=== Experimental input data ===&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
==== SPECTRUM definitions in the CYANA library ====&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
==== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ====&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
==== The init macro ====&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
==== The FLYA CALC macro ====&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FLYA output files ===&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
==== The flya.txt file ====&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
==== The flya.tab file ====&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---Where as ????x torsion angle dynamics steps will be applied per conformer. ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you are done preparing the macros as outlined run the calculation.&lt;br /&gt;
&lt;br /&gt;
The automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;. 7 cycles of calculations will be preformed.&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8825</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8825"/>
		<updated>2018-02-25T14:03:52Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* The flya.txt file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA. Spectra are processed and referenced relative to each other. Then, peak lists are generated and cleaned as much as possible (water peaks, noise peaks etc.). In order to read the prepared peak lists, the spectrum definitions have to be added to the xeasy peak list as in exercise 1.&lt;br /&gt;
&lt;br /&gt;
=== Experimental input data ===&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
==== SPECTRUM definitions in the CYANA library ====&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
==== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ====&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
==== The init macro ====&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
==== The FLYA CALC macro ====&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FLYA output files ===&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
==== The flya.txt file ====&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---Where as ????x torsion angle dynamics steps will be applied per conformer. ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you are done preparing the macros as outlined run the calculation.&lt;br /&gt;
&lt;br /&gt;
The automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;. 7 cycles of calculations will be preformed.&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8824</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8824"/>
		<updated>2018-02-25T14:03:32Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* The FLYA CALC macro */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA. Spectra are processed and referenced relative to each other. Then, peak lists are generated and cleaned as much as possible (water peaks, noise peaks etc.). In order to read the prepared peak lists, the spectrum definitions have to be added to the xeasy peak list as in exercise 1.&lt;br /&gt;
&lt;br /&gt;
=== Experimental input data ===&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
==== SPECTRUM definitions in the CYANA library ====&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
==== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ====&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
==== The init macro ====&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
==== The FLYA CALC macro ====&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FLYA output files ===&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---Where as ????x torsion angle dynamics steps will be applied per conformer. ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you are done preparing the macros as outlined run the calculation.&lt;br /&gt;
&lt;br /&gt;
The automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;. 7 cycles of calculations will be preformed.&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8823</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8823"/>
		<updated>2018-02-25T14:03:15Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* The init macro */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA. Spectra are processed and referenced relative to each other. Then, peak lists are generated and cleaned as much as possible (water peaks, noise peaks etc.). In order to read the prepared peak lists, the spectrum definitions have to be added to the xeasy peak list as in exercise 1.&lt;br /&gt;
&lt;br /&gt;
=== Experimental input data ===&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
==== SPECTRUM definitions in the CYANA library ====&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
==== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ====&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
==== The init macro ====&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FLYA output files ===&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---Where as ????x torsion angle dynamics steps will be applied per conformer. ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you are done preparing the macros as outlined run the calculation.&lt;br /&gt;
&lt;br /&gt;
The automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;. 7 cycles of calculations will be preformed.&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8822</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8822"/>
		<updated>2018-02-25T14:01:32Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Execution scripts or &amp;quot;macros&amp;quot; in CYANA */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA. Spectra are processed and referenced relative to each other. Then, peak lists are generated and cleaned as much as possible (water peaks, noise peaks etc.). In order to read the prepared peak lists, the spectrum definitions have to be added to the xeasy peak list as in exercise 1.&lt;br /&gt;
&lt;br /&gt;
=== Experimental input data ===&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
==== SPECTRUM definitions in the CYANA library ====&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
==== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ====&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
=== The init macro ===&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FLYA output files ===&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---Where as ????x torsion angle dynamics steps will be applied per conformer. ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you are done preparing the macros as outlined run the calculation.&lt;br /&gt;
&lt;br /&gt;
The automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;. 7 cycles of calculations will be preformed.&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8821</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8821"/>
		<updated>2018-02-25T14:00:43Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* SPECTRUM definitions in the CYANA library */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA. Spectra are processed and referenced relative to each other. Then, peak lists are generated and cleaned as much as possible (water peaks, noise peaks etc.). In order to read the prepared peak lists, the spectrum definitions have to be added to the xeasy peak list as in exercise 1.&lt;br /&gt;
&lt;br /&gt;
=== Experimental input data ===&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
==== SPECTRUM definitions in the CYANA library ====&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
=== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ===&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
=== The init macro ===&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FLYA output files ===&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---Where as ????x torsion angle dynamics steps will be applied per conformer. ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you are done preparing the macros as outlined run the calculation.&lt;br /&gt;
&lt;br /&gt;
The automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;. 7 cycles of calculations will be preformed.&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8820</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8820"/>
		<updated>2018-02-25T14:00:00Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* FLYA output files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA. Spectra are processed and referenced relative to each other. Then, peak lists are generated and cleaned as much as possible (water peaks, noise peaks etc.). In order to read the prepared peak lists, the spectrum definitions have to be added to the xeasy peak list as in exercise 1.&lt;br /&gt;
&lt;br /&gt;
=== Experimental input data ===&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
=== SPECTRUM definitions in the CYANA library ===&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
=== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ===&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
=== The init macro ===&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FLYA output files ===&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---Where as ????x torsion angle dynamics steps will be applied per conformer. ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you are done preparing the macros as outlined run the calculation.&lt;br /&gt;
&lt;br /&gt;
The automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;. 7 cycles of calculations will be preformed.&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8819</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8819"/>
		<updated>2018-02-25T13:57:22Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA. Spectra are processed and referenced relative to each other. Then, peak lists are generated and cleaned as much as possible (water peaks, noise peaks etc.). In order to read the prepared peak lists, the spectrum definitions have to be added to the xeasy peak list as in exercise 1.&lt;br /&gt;
&lt;br /&gt;
=== Experimental input data ===&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
=== SPECTRUM definitions in the CYANA library ===&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
=== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ===&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
=== The init macro ===&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FLYA output files ==&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---Where as ????x torsion angle dynamics steps will be applied per conformer. ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you are done preparing the macros as outlined run the calculation.&lt;br /&gt;
&lt;br /&gt;
The automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;. 7 cycles of calculations will be preformed.&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8818</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8818"/>
		<updated>2018-02-25T13:56:32Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA. Spectra are processed and referenced relative to each other. Then, peak lists are generated and cleaned as much as possible (water peaks, noise peaks etc.). In order to read the prepared peak lists, the spectrum definitions have to be added to the xeasy peak list as in exercise 1.&lt;br /&gt;
&lt;br /&gt;
=== Experimental input data ===&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
== SPECTRUM definitions in the CYANA library ==&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
=== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ===&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
=== The init macro ===&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FLYA output files ==&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---Where as ????x torsion angle dynamics steps will be applied per conformer. ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you are done preparing the macros as outlined run the calculation.&lt;br /&gt;
&lt;br /&gt;
The automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;. 7 cycles of calculations will be preformed.&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8817</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8817"/>
		<updated>2018-02-25T13:55:28Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA. Spectra are processed and referenced relative to each other. Then, peak lists are generated and cleaned as much as possible (water peaks, noise peaks etc.). In order to read the prepared peak lists, the spectrum definitions have to be added to the xeasy peak list as in exercise 1.&lt;br /&gt;
&lt;br /&gt;
== Experimental input data ==&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
== SPECTRUM definitions in the CYANA library ==&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
=== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ===&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
=== The init macro ===&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FLYA output files ==&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---Where as ????x torsion angle dynamics steps will be applied per conformer. ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you are done preparing the macros as outlined run the calculation.&lt;br /&gt;
&lt;br /&gt;
The automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;. 7 cycles of calculations will be preformed.&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8816</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8816"/>
		<updated>2018-02-25T13:51:29Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* The noeassign CALC macro */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Experimental input data ==&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
== SPECTRUM definitions in the CYANA library ==&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA. Spectra are processed and referenced relative to each other. Then, peak lists are generated and cleaned as much as possible (water peaks, noise peaks etc.). In order to read the prepared peak lists, the spectrum definitions have to be added to the xeasy peak list as in exercise 1.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
=== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ===&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
=== The init macro ===&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FLYA output files ==&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---Where as ????x torsion angle dynamics steps will be applied per conformer. ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you are done preparing the macros as outlined run the calculation.&lt;br /&gt;
&lt;br /&gt;
The automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;. 7 cycles of calculations will be preformed.&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8815</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8815"/>
		<updated>2018-02-25T13:51:02Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* The noeassign CALC macro */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Experimental input data ==&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
== SPECTRUM definitions in the CYANA library ==&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA. Spectra are processed and referenced relative to each other. Then, peak lists are generated and cleaned as much as possible (water peaks, noise peaks etc.). In order to read the prepared peak lists, the spectrum definitions have to be added to the xeasy peak list as in exercise 1.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
=== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ===&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
=== The init macro ===&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FLYA output files ==&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---Where as ????x torsion angle dynamics steps will be applied per conformer. ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you are done preparing the macros as outlined run the calculation.&lt;br /&gt;
&lt;br /&gt;
The automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;. 7 cycle of calculations will be preformed.&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8814</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8814"/>
		<updated>2018-02-25T13:46:19Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Automated resonance assignment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Experimental input data ==&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
== SPECTRUM definitions in the CYANA library ==&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA. Spectra are processed and referenced relative to each other. Then, peak lists are generated and cleaned as much as possible (water peaks, noise peaks etc.). In order to read the prepared peak lists, the spectrum definitions have to be added to the xeasy peak list as in exercise 1.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
=== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ===&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
=== The init macro ===&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FLYA output files ==&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. Where as ????x torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
&lt;br /&gt;
7 cycle of automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8813</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8813"/>
		<updated>2018-02-25T13:44:54Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Automated resonance assignment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Experimental input data ==&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
== SPECTRUM definitions in the CYANA library ==&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA.&lt;br /&gt;
Spectra are processed and referenced relative to each other. Then peak lists are generated and cleaned as much as possible (water peaks, noise peaks etc.)&lt;br /&gt;
In order to read the prepared peak lists to use with FLYA, the spectrum definitions have to added to the xeasy peak list as done in exercise 1.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
=== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ===&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
=== The init macro ===&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FLYA output files ==&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. Where as ????x torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
&lt;br /&gt;
7 cycle of automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8812</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8812"/>
		<updated>2018-02-25T13:44:31Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Automated resonance assignment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Experimental input data ==&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
== SPECTRUM definitions in the CYANA library ==&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA.&lt;br /&gt;
Spectra are processed and referenced relative to each other. Then peak list are generated and cleaned as much as possible (water peaks, noise peaks etc.)&lt;br /&gt;
In order to read the prepared peak lists to use with FLYA, the spectrum definitions have to added to the xeasy peak list as done in exercise 1.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
=== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ===&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
=== The init macro ===&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FLYA output files ==&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. Where as ????x torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
&lt;br /&gt;
7 cycle of automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8811</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8811"/>
		<updated>2018-02-25T13:43:40Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Automated resonance assignment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Experimental input data ==&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
== SPECTRUM definitions in the CYANA library ==&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
Resonance assignment within cyana is done using the module FLYA.&lt;br /&gt;
Spectra are processed and referenced to each other. Then peak list are generated and cleaned as much as possible (water peaks, noise peaks etc.)&lt;br /&gt;
In order to read the prepared peak lists to use with FLYA, the spectrum definitions have to added to the xeasy peak list as done in exercise 1.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
=== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ===&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
=== The init macro ===&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FLYA output files ==&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. Where as ????x torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
&lt;br /&gt;
7 cycle of automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8810</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8810"/>
		<updated>2018-02-25T13:39:57Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Exercise 2: Running FLYA */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Experimental input data ==&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
== SPECTRUM definitions in the CYANA library ==&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Run FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
=== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ===&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
=== The init macro ===&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FLYA output files ==&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. Where as ????x torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
&lt;br /&gt;
7 cycle of automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8809</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8809"/>
		<updated>2018-02-25T13:38:22Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Exercise 2: Automated resonance assignment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Experimental input data ==&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
== SPECTRUM definitions in the CYANA library ==&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
== Automated resonance assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Running FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
=== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ===&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
=== The init macro ===&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FLYA output files ==&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. Where as ????x torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
&lt;br /&gt;
7 cycle of automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8808</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8808"/>
		<updated>2018-02-25T13:38:03Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Experimental input data ==&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
== SPECTRUM definitions in the CYANA library ==&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
== Exercise 2: Automated resonance assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Running FLYA ===&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
=== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ===&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
=== The init macro ===&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FLYA output files ==&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. Where as ????x torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
&lt;br /&gt;
7 cycle of automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8807</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8807"/>
		<updated>2018-02-25T13:36:02Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Experimental input data ==&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
== SPECTRUM definitions in the CYANA library ==&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
== Exercise 2: Automated resonance assignment using FLYA ==&lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
=== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ===&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
=== The init macro ===&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FLYA output files ==&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. Where as ????x torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
&lt;br /&gt;
7 cycle of automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8806</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8806"/>
		<updated>2018-02-25T13:25:33Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Automated NOESY assignment and structure calculation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Experimental input data ==&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
== SPECTRUM definitions in the CYANA library ==&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ==&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Automated resonance assignment using FLYA === &lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
=== The init macro ===&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FLYA output files ==&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined.&lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. Where as ????x torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
&lt;br /&gt;
7 cycle of automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8805</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8805"/>
		<updated>2018-02-25T13:24:54Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Exercise 5: Run noeassign */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Experimental input data ==&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
== SPECTRUM definitions in the CYANA library ==&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ==&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Automated resonance assignment using FLYA === &lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
=== The init macro ===&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FLYA output files ==&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. Where as ????x torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
&lt;br /&gt;
7 cycle of automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8804</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8804"/>
		<updated>2018-02-25T13:23:48Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Exercise 4: Calculate the backbone angels using Talos */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Experimental input data ==&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
== SPECTRUM definitions in the CYANA library ==&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ==&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Automated resonance assignment using FLYA === &lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
=== The init macro ===&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FLYA output files ==&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell before running cyana (since talos needs a cshell to run): &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. Where as ????x torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
&lt;br /&gt;
7 cycle of automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined above.&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8803</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8803"/>
		<updated>2018-02-25T13:21:54Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Using Talos to generate aco restraints */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Experimental input data ==&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
== SPECTRUM definitions in the CYANA library ==&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ==&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Automated resonance assignment using FLYA === &lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
=== The init macro ===&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FLYA output files ==&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell to run talos: &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. Where as ????x torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
&lt;br /&gt;
7 cycle of automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined above.&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8802</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8802"/>
		<updated>2018-02-25T13:21:02Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Exercise 4: Calculate the backbone angels using Talos */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Experimental input data ==&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
== SPECTRUM definitions in the CYANA library ==&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ==&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Automated resonance assignment using FLYA === &lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
=== The init macro ===&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FLYA output files ==&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell to run talos: &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. Where as ????x torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
&lt;br /&gt;
7 cycle of automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined above.&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8801</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8801"/>
		<updated>2018-02-25T13:19:55Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* The FLYA CALC macro */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Experimental input data ==&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
== SPECTRUM definitions in the CYANA library ==&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ==&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Automated resonance assignment using FLYA === &lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
=== The init macro ===&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you have prepared the &#039;init.cya&#039; and the &#039;CALC.cya&#039; start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FLYA output files ==&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell to run talos: &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. Where as ????x torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
&lt;br /&gt;
7 cycle of automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined above.&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8800</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8800"/>
		<updated>2018-02-25T13:18:20Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Exercise 2: Runing the FLYA calculation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Experimental input data ==&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
== SPECTRUM definitions in the CYANA library ==&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ==&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Automated resonance assignment using FLYA === &lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
=== The init macro ===&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you are done start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FLYA output files ==&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell to run talos: &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. Where as ????x torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
&lt;br /&gt;
7 cycle of automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined above.&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8799</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8799"/>
		<updated>2018-02-25T13:16:39Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Exercise 2: Runing the FLYA calculation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Experimental input data ==&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
== SPECTRUM definitions in the CYANA library ==&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ==&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Runing the FLYA calculation === &lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
=== The init macro ===&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you are done start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FLYA output files ==&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell to run talos: &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. Where as ????x torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
&lt;br /&gt;
7 cycle of automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined above.&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8798</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8798"/>
		<updated>2018-02-25T13:14:54Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Execution scripts or &amp;quot;macros&amp;quot; in CYANA */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Experimental input data ==&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
== SPECTRUM definitions in the CYANA library ==&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ==&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Runing the FLYA calculation === &lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
=== The init macro ===&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Runing the FLYA calculation === &lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
When you are done start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FLYA output files ==&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell to run talos: &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. Where as ????x torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
&lt;br /&gt;
7 cycle of automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined above.&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8797</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8797"/>
		<updated>2018-02-25T13:08:58Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Exercise 7: Converting the SMILES code to mol2 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Experimental input data ==&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
== SPECTRUM definitions in the CYANA library ==&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ==&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
=== The init macro ===&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Runing the FLYA calculation === &lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
When you are done start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FLYA output files ==&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell to run talos: &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. Where as ????x torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
&lt;br /&gt;
7 cycle of automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined above.&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings and the stereochemistry). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8796</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8796"/>
		<updated>2018-02-25T13:06:42Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Exercise 6: Drawing the molecule and obtaining the SMILES code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Experimental input data ==&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
== SPECTRUM definitions in the CYANA library ==&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ==&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
=== The init macro ===&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Runing the FLYA calculation === &lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
When you are done start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FLYA output files ==&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell to run talos: &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. Where as ????x torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
&lt;br /&gt;
7 cycle of automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined above.&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings!). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Then using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8795</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8795"/>
		<updated>2018-02-25T13:04:51Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Exercise 6: Drawing the molecule and obtaining the SMILES code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Experimental input data ==&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
== SPECTRUM definitions in the CYANA library ==&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ==&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
=== The init macro ===&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Runing the FLYA calculation === &lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
When you are done start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FLYA output files ==&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell to run talos: &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. Where as ????x torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
&lt;br /&gt;
7 cycle of automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined above.&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
&lt;br /&gt;
To look at the supplied image file in the terminal, use:&lt;br /&gt;
&lt;br /&gt;
 xdg-open Lig.pdf&lt;br /&gt;
&lt;br /&gt;
Be well aware of the stereochemistry.&lt;br /&gt;
&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings!). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Then using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8794</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8794"/>
		<updated>2018-02-24T21:29:18Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: /* Exercise 4: Calculate the backbone angels using Talos */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Experimental input data ==&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
== SPECTRUM definitions in the CYANA library ==&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ==&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
=== The init macro ===&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Runing the FLYA calculation === &lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
When you are done start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FLYA output files ==&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; change to a cshell to run talos: &lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. Where as ????x torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
&lt;br /&gt;
7 cycle of automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined above.&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
&lt;br /&gt;
Be well aware of the stereochemistry.&lt;br /&gt;
&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings!). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Then using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
	<entry>
		<id>https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8793</id>
		<title>Automated calculation of a protein-ligand complex structure (AUREMN, Brazil 2018)</title>
		<link rel="alternate" type="text/html" href="https://cyana.org/w/index.php?title=Automated_calculation_of_a_protein-ligand_complex_structure_(AUREMN,_Brazil_2018)&amp;diff=8793"/>
		<updated>2018-02-24T19:04:54Z</updated>

		<summary type="html">&lt;p&gt;Deansalias: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this tutorial we will determine the resonance assignments and the structure of a protein-ligand complex using modules of CYANA. &lt;br /&gt;
&lt;br /&gt;
To this end we will first run the CYANA module FLYA to obtain the resonance assignments from backbone, side chain and NOESY experiments  (actually, the xeasy peak lists of these experiments). &lt;br /&gt;
&lt;br /&gt;
Then we will use noeassign to assign the NOESY spectra and calculate the holo protein structure without the ligand.&lt;br /&gt;
&lt;br /&gt;
In a next step we will first draw the ligand, convert the obtained SMILES code to a *.mol2 file and generate the *.lib file for CYANA. &lt;br /&gt;
&lt;br /&gt;
Then we will assign intermolecular peaks lists and redo the structure calculation, this time of the protein-ligand complex.&lt;br /&gt;
&lt;br /&gt;
To finalize you will compare the calculated NMR structure to an Xray structure and generate statistics.&lt;br /&gt;
&lt;br /&gt;
And ultimately you can try to improve your structure results by studying and applying the options available within the FLYA and noeassign modules of CYANA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CYANA setup for the AUREMN Practical NMR Course in Campino (24-26 February 2018) ==&lt;br /&gt;
&lt;br /&gt;
Please follow the following steps carefully (exact Linux commands are given below; you may copy them to a terminal):&lt;br /&gt;
&lt;br /&gt;
# Go to your home directory (or data directory).&lt;br /&gt;
# Get the data for the practical from the server (AUREMN2018.tgz).&lt;br /&gt;
# Unpack the input data for the practical.&lt;br /&gt;
# Get the demo version of CYANA for this practical.&lt;br /&gt;
# Unpack CYANA.&lt;br /&gt;
# Setup the CYANA environment variables.&lt;br /&gt;
# Change into the newly created directory &#039;AUREMN2018&#039;.&lt;br /&gt;
# Copy the demo_data directory to &#039;flyabb&#039;.&lt;br /&gt;
# Change into the subdirectory &#039;flyabb&#039;.&lt;br /&gt;
# Test whether CYANA can be started by typing its name, &#039;cyana&#039;.&lt;br /&gt;
# Exit from CYANA by typing &#039;q&#039; or &#039;quit&#039;.&lt;br /&gt;
# Download Chimera (to your personal laptop) from: [https://www.cgl.ucsf.edu/chimera/download.html Chimera]&lt;br /&gt;
# Download Avogadro (to your personal laptop) from: [https://avogadro.cc/ Avogadro]&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 cp /home/julien/AUREMN2018.tar.gz .&lt;br /&gt;
 tar zxf AUREMN2018.tar.gz &lt;br /&gt;
 &lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar zxf Cyana-3.98bin-180213Demo.tgz&lt;br /&gt;
 cd cyana-3.98/&lt;br /&gt;
 ./setup&lt;br /&gt;
 &lt;br /&gt;
 cd ~&lt;br /&gt;
 &lt;br /&gt;
 cd AUREMN2018&lt;br /&gt;
 cp -r demo_data flyabb &lt;br /&gt;
 cd flyabb&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 ../../cyana-3.98/cyana&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cyana&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
 CYANA 3.98 (mac-intel)&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2002-17 Peter Guentert. All rights reserved.&lt;br /&gt;
 ___________________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
     Demo license valid for specific sequences until 2018-12-31&lt;br /&gt;
 &lt;br /&gt;
     Library file &amp;quot;/Users/deans/cyana-3.98/lib/cyana.lib&amp;quot; read, 41 residue types.&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 114:&lt;br /&gt;
            LIG  333&lt;br /&gt;
 cyana&amp;gt; q&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If all worked, you are ready to go in terms of everything related to CYANA! The reason you see the ERROR message, is because you have a sequence file in the directory, but not library file for the ligand yet.&lt;br /&gt;
Don&#039;t worry, this is as expected and you will take care of it during the exercise.&lt;br /&gt;
&lt;br /&gt;
If you want to return to your practical later, using your own Linux or Mac OS X computer, you can download the demo version of CYANA from [http://www.cyana.org/wiki/images/6/64/Cyana-3.98bin-180213Demo.tgz here].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; More information on the CYANA commands etc. is in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
== Experimental input data ==&lt;br /&gt;
&lt;br /&gt;
In the most general sense, there are two type of experiments used for protein resonance assignments.&lt;br /&gt;
Through bond, TOSCY kind of experiments and through space NOESY type of experiments.&lt;br /&gt;
Each of these two experiments carries distinct information that help the resonance assignment.&lt;br /&gt;
The HSQC, HMQC or TROSY elements of these experiments merely help the resolution, by allowing the separation of resonances according to spin types (1H, 13C, 15N) into additional dimensions.&lt;br /&gt;
&lt;br /&gt;
At the very minimum, for small systems and in favorable cases, a NOESY experiment may be sufficient to get an assignment and enough distance restraints for a structure calculation. &lt;br /&gt;
&lt;br /&gt;
Peak lists in XEASY format are prepared by automatic peak picking with a visualization program such as CcpNmr Analysis, NMRdraw or NMRview are stored in files &#039;&#039;XXX&#039;&#039;.peaks, where &#039;&#039;XXX&#039;&#039; denotes the FLYA spectrum type.&lt;br /&gt;
Then they are cleaned (unnecessary water and noise peaks removed).&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises,  experimental peak lists are available for the following spectra:&lt;br /&gt;
* HNtrosy             (spectrum type  &#039;N15HSQC&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* trHNCA              (spectrum type &#039;HNCA&#039; in the CYANA library)&lt;br /&gt;
* HNCOCA           (spectrum type &#039;HNcoCA&#039; in the CYANA library)&lt;br /&gt;
* HNCACB            (spectrum type &#039;CBCANH&#039; in the CYANA library)&lt;br /&gt;
* HCCCHTOCSY  (the spectrum type will have to be determined in the first exercise)&lt;br /&gt;
* NTOCSY            (spectrum type &#039;N15TOCSY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called aro        (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;13&amp;lt;/sup&amp;gt;C]-resolved NOESY   called cnoesy  (spectrum type &#039;C13NOESY&#039; in the CYANA library)&lt;br /&gt;
* 3D [&amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N]-resolved NOESY   called nnoesy  (spectrum type &#039;N15NOESY&#039; in the CYANA library)&lt;br /&gt;
&lt;br /&gt;
Each peak list starts with a header that defines the experiment type and the order of dimensions. For instance, for HNCA.peaks:&lt;br /&gt;
&lt;br /&gt;
 # Number of dimensions 3&lt;br /&gt;
 #FORMAT xeasy3D&lt;br /&gt;
 #INAME 1 HN&lt;br /&gt;
 #INAME 2 C&lt;br /&gt;
 #INAME 3 N&lt;br /&gt;
 #SPECTRUM HNCA HN C N&lt;br /&gt;
       5   6.475  58.033  98.548 1 U   2.769E+02  0.000E+00 e 0     0     0     0&lt;br /&gt;
       6   6.476  62.123  98.126 1 U   2.571E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
       7   6.475  54.017  98.159 1 U   2.547E+01  0.000E+00 e 0     0     0     0&lt;br /&gt;
&lt;br /&gt;
The first line specifies the number of dimensions (3 in this case). The &#039;#SPECTRUM&#039; (no space between characters) lines gives the experiment type (HNCA, which refers to the corresponding experiment definition in the CYANA library), followed by an identifier for each dimension of the peak list (HN C N) that specifies which chemical shift is stored in the corresponding dimension of the peak list. The experiment type and identifiers must correspond to an experiment definition in the general CYANA library (see below). If a definition is missing for an experiment it must be added to the CYANA library. After the &#039;#SPECTRUM&#039; line follows one line for every peak. For example, the first peak in the &#039;HNCA.peaks&#039; list has&lt;br /&gt;
&lt;br /&gt;
* Peak number 5&lt;br /&gt;
* HN chemical shift 6.475 ppm&lt;br /&gt;
* C (CA) chemical shift 58.033 ppm&lt;br /&gt;
* N chemical shift 98.548 ppm&lt;br /&gt;
&lt;br /&gt;
The other data are irrelevant for automated chemical shift assignment with FLYA. In particular, the peak volume or intensity (2.769E+02) is &#039;&#039;not&#039;&#039; used by the algorithm.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; The formats of other CYANA files are described in the [[CYANA 3.0 Reference Manual]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The protein sequence is supplied by three-letter code in a XXX.seq file.&lt;br /&gt;
&lt;br /&gt;
As part of the supplied data for the exercises there are two sequences:&lt;br /&gt;
* demoShort.seq              (the protein sequence alone) &lt;br /&gt;
* demoLong.seq               (the protein sequence, ligand and a linker that connects the two molecules) &lt;br /&gt;
&lt;br /&gt;
Linker sequences serve to keep two or more molecules close in coordinate space during calculations, is usually between 15-20 elements long and is composed of dummy atoms that allow the linking.&lt;br /&gt;
&lt;br /&gt;
== SPECTRUM definitions in the CYANA library ==&lt;br /&gt;
&lt;br /&gt;
When you start CYANA, the program reads the library and &#039;&#039;&#039;displays the full path name of the library file&#039;&#039;&#039;. You can open the standard library file to inspect, for example, the NMR experiment definitions that define which expected peaks are generated by FLYA. For instance, the definition for the HNCA spectrum (search for &#039;HNCA&#039; in the library file &#039;cyana.lib&#039;) is&lt;br /&gt;
&lt;br /&gt;
 SPECTRUM HNCA  HN N C&lt;br /&gt;
  0.980  HN:H_AMI  N:N_AM*  C:C_ALI  C_BYL&lt;br /&gt;
  0.800  HN:H_AMI  N:N_AMI  (C_ALI) C_BYL  C:C_ALI &lt;br /&gt;
&lt;br /&gt;
The first line corresponds to the &#039;#SPECTRUM&#039; line in the peak list. It specifies the experiment name and identifies the atoms that are detected in each dimension of the spectrum. The number of identifiers defines the dimensionality of the experiment (3 in case of HNCA).&lt;br /&gt;
&lt;br /&gt;
Each line below defines a (formal) magnetization transfer pathway that gives rise to an expected peak. in the case of HNCA there are two lines, corresponding to the intraresidual and sequential peak. For instance, the definition for the intraresidual peak starts with the probability to observe the peak (0.980), followed by a series of atom types, e.g. H_AMI for amide proton etc. An expected peak is generated for each molecular fragment in which these atom types occur connected by single covalent bonds. The atoms whose chemical shifts appear in the spectrum are identified by their labels followed by &#039;:&#039;, e.g. for HNCA &#039;HN:&#039;, &#039;N:&#039;, and &#039;C:&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 1: Determine the spectrum type === &lt;br /&gt;
&lt;br /&gt;
For the HCCCHToscy, determine the spectrum type and put the definition in the HCCCHTocsy.peaks file with the appropriate syntax.&lt;br /&gt;
&lt;br /&gt;
The experiment is a TOCSY, a through-bond experiment. It allows you to see, in this case, from the backbone all the way out into the side chains.&lt;br /&gt;
&lt;br /&gt;
* Use the less command (to view files in the terminal but not change) to search the spectrum type in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Look at the definitions themselves and not just the SPECTRUM names, to determine which TOCSY is the appropriate one.&lt;br /&gt;
Take the experiment with the most through-bond transfers.&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
* Use a graphic text editor (or if you feel comfortable, use the vi terminal text editor) to manipulate the HCCCHTOCSY.peaks file and enter the appropriate spectrum type and identifiers in the correct order.&lt;br /&gt;
* &#039;&#039;&#039;Check that the order of the dimensions in your SPECTRUM definition matches the actual experiment.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Depending on how the xeasy peak file was generated, the order of the dimensions does not have to match the way experiments are recorded,&lt;br /&gt;
&lt;br /&gt;
and of course they do not necessarily match the SPECTRUM definition given in the &#039;cyana.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; A quick determination of the order of the dimensions and  atom types, can be done by looking at the columns of the chemical shifts and detect the chemical shift patterns.&lt;br /&gt;
&lt;br /&gt;
This may be harder than it sounds at first instance, take your time to detect the pattern if it is not immediately obvious to you.&lt;br /&gt;
&lt;br /&gt;
As you know, the chemical shifts of specific atom types and groups are quite distinct. If you need help with the chemical shift statistics, go to: [http://www.bmrb.wisc.edu/ref_info/stats.php?set=filt&amp;amp;restype=aa&amp;amp;output=html BMRB]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; For information on how to use the vi terminal editor: [https://www.cs.colostate.edu/helpdocs/vi.html vi editor]&lt;br /&gt;
&lt;br /&gt;
== Execution scripts or &amp;quot;macros&amp;quot; in CYANA ==&lt;br /&gt;
&lt;br /&gt;
For more complex task within CYANA, rather than to enter the execution commands line by line at the CYANA prompt, the necessary commands are collected in a file named &#039;*.cya&#039;.&lt;br /&gt;
&lt;br /&gt;
Therefore, CYANA scripts (&amp;quot;macros&amp;quot;) &#039;CALC*.cya&#039; contain the various commands to perform the required tasks.&lt;br /&gt;
&lt;br /&gt;
=== The init macro ===&lt;br /&gt;
&lt;br /&gt;
One has the fixed name &#039;init.cya&#039; and is executed automatically each time CYANA is started. It can also be called any time one wants to reinitialize the program. It contains normally at least two commands that read the CYANA library and the protein sequence: &lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read demoShort.seq&lt;br /&gt;
&lt;br /&gt;
The first line sets the appropriate rmsdrange, the command &#039;cyanalib&#039; reads the standard CYANA library. The next command reads the protein sequence.&lt;br /&gt;
&lt;br /&gt;
The protein sequence is stored in three-letter code in the file &#039;demo.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
=== The FLYA CALC macro ===&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; starts with the specification of the names of the input peak lists:&lt;br /&gt;
&lt;br /&gt;
 peaks:=aro,cnoesy,nnoesy,HNtrosy,trHNCA,HNCOCA,HNCACB,NTocsy,HCCCHTocsy&lt;br /&gt;
&lt;br /&gt;
The peak list names are separated by commas (without blanks!). The files on disk have the file name extension .peaks, e.g. &#039;HNCA.peaks&#039;.&lt;br /&gt;
&lt;br /&gt;
The commands above will use all available peak lists. You can choose any subset of them by modifying the &#039;peaks:=...&#039; statement. &lt;br /&gt;
&lt;br /&gt;
These are followed by tolerances for chemical shift matching:&lt;br /&gt;
&lt;br /&gt;
 assigncs_accH=0.03&lt;br /&gt;
 assigncs_accC=0.4&lt;br /&gt;
 assigncs_accN=assigncs_accC&lt;br /&gt;
 tolerance:=$assigncs_accH,$assigncs_accH,$assigncs_accC&lt;br /&gt;
&lt;br /&gt;
In this case, a tolerance of 0.03 ppm will be used for protons, and 0.4 ppm for carbon and nitrogen.&lt;br /&gt;
The &#039;assigncs_accX&#039; variables are used within flya, the tolerance variable is used in consolidation.&lt;br /&gt;
&lt;br /&gt;
The next parameter specifies the seed value for the random number generator (an arbitrary positive integer is ok). &lt;br /&gt;
 &lt;br /&gt;
 randomseed=101&lt;br /&gt;
&lt;br /&gt;
The next parameter is set in order to speed up the calculation for this practical:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
 shiftassign_population=25 (we do not set this, so the default of XX is used)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if this parameter is not set. The parameters specifies:&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
* The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation)  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* An option to choose the &amp;quot;quick&amp;quot; optimization schedule.&lt;br /&gt;
&lt;br /&gt;
 shifts_consolidate_swap=.true.&lt;br /&gt;
&lt;br /&gt;
Swapping is optimized in comparison to the supplied reference assignment (only applied during consolidation).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the command to start the FLYA algorithm:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
Here, the given parameters of the &#039;flya&#039; command specify that:&lt;br /&gt;
&lt;br /&gt;
* The number of independent runs of the algorithm, from which the consolidated shift will be calculated (chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
* The input peak lists that will be used (as defined above).&lt;br /&gt;
* An ensemble of random structures will be calculated for generating expected peaks (leads to prediction of short range NOES in NOESY-type experiments).&lt;br /&gt;
* The results will be compared with the reference chemical shifts in the file &#039;manREF.prot&#039; (which have been determined by conventional methods).&lt;br /&gt;
&lt;br /&gt;
=== Exercise 2: Runing the FLYA calculation === &lt;br /&gt;
&lt;br /&gt;
* work in the copy of the data directory (&#039;cd flyabb&#039;)&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, create your &#039;init.cya&#039; macro as outlined (&#039;&#039;&#039;The init macro&#039;&#039;&#039;) and also your &#039;CALC.cya&#039; macro (&#039;&#039;&#039;The FLYA CALC macro&#039;&#039;&#039;) to run FLYA. Be extra careful to avoid typos and unwanted spaces in coma lists etc.&lt;br /&gt;
&lt;br /&gt;
When you are done start your FLYA (&#039;CALC.cya&#039;) macro using 10 processors by calling it as outlined just below. It will take between 10-20 minutes (depending on your system) to complete the assignment, once the calculation starts.&lt;br /&gt;
&lt;br /&gt;
To run the FLYA calculation, one could start CYANA and execute the &#039;CALC.cya&#039; macro from the CYANA prompt, however on a computer with multiple processors it is better to speed up the calculation by running the the &#039;CALC.cya&#039; macro through a MPI scheduler:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 10 CALC.cya&lt;br /&gt;
&lt;br /&gt;
This starts 10 independent calculations on 10 processors by using the MPI scheduler (if installed on your system, otherwise shared memory will be used).&lt;br /&gt;
&lt;br /&gt;
It is strongly recommended that you check the MPI scheduler if your calculation is running. If you made a mistake in one of the two macros, the calculation may or may not start, or get interrupted at some point.&lt;br /&gt;
&lt;br /&gt;
 ls -ltr &lt;br /&gt;
&lt;br /&gt;
This command allows you to check if the calculation has generated intermediary files or final results, with a time stamp.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
To check the queuing on the server use (PEND or if running you see the time elapsed and JOBID):&lt;br /&gt;
&lt;br /&gt;
 squeue&lt;br /&gt;
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)&lt;br /&gt;
              4414      bnmr     CALC    dxxxx  R       0:56      3 guri[1,5-6]&lt;br /&gt;
&lt;br /&gt;
And to cancel the processes started by you before completion:&lt;br /&gt;
&lt;br /&gt;
 scancel 4414&lt;br /&gt;
&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
To check the general load on your local computer use:&lt;br /&gt;
&lt;br /&gt;
 top&lt;br /&gt;
&lt;br /&gt;
To kill all processes running (from you):&lt;br /&gt;
&lt;br /&gt;
 skill -u &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FLYA output files ==&lt;br /&gt;
&lt;br /&gt;
The FLYA algorithm will produce the following output files:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;flya.prot:&#039;&#039;&#039; Consensus assigned chemical shifts. This file contains a chemical shift for every atom that has been assigned to least one peak.&lt;br /&gt;
* &#039;&#039;&#039;flya.tab:&#039;&#039;&#039; Table with details about the chemical shift assignment of each atom (comparison with reference shifts). In this file you can see for each atom whether the assignment is &amp;quot;strong&amp;quot; (self-consistent) or &amp;quot;weak&amp;quot; (only tentative).&lt;br /&gt;
* &#039;&#039;&#039;flya.txt:&#039;&#039;&#039; Assignment statistics&lt;br /&gt;
* &#039;&#039;&#039;flya.pdf:&#039;&#039;&#039; Graphical representation of the assignment results&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_exp.peaks:&#039;&#039;&#039; List of expected peaks, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;XXX&#039;&#039;_asn.peaks:&#039;&#039;&#039; Assigned peak list, corresponding to input peak list &#039;&#039;XXX&#039;&#039;.peaks&lt;br /&gt;
&lt;br /&gt;
=== The flya.txt file ===&lt;br /&gt;
&lt;br /&gt;
This output file starts with overall assignment statistics for each group of atoms as defined by &#039;analyzeassign_group:=...&#039;:&lt;br /&gt;
&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    CHEMICAL SHIFT ASSIGNMENT&lt;br /&gt;
    ____________________________________________________________&lt;br /&gt;
 &lt;br /&gt;
    SEED: 1&lt;br /&gt;
    chemical shifts for 542  atoms found&lt;br /&gt;
    Peaks assigned from frequencies&lt;br /&gt;
 &lt;br /&gt;
    BB: REFERENCES(2):512 CHEMICALSHIFTS(1):542 (1)and(2):512 MATCH:507(99.0% of (2))&lt;br /&gt;
&lt;br /&gt;
* REFERENCES(2) is the number of reference assignments (in the selected group)&lt;br /&gt;
* CHEMICALSHIFTS(1) is is the number of atoms assigned by FLYA&lt;br /&gt;
* (1)and(2) is the number of atoms that are assigned by FLYA and in the reference. &lt;br /&gt;
* MATCH is the number of atoms with the same assignment by FLYA and in the reference. The percentage is relative to the number of reference assignments.&lt;br /&gt;
&lt;br /&gt;
Further below comes a table with information about each peak list:&lt;br /&gt;
 &lt;br /&gt;
    PEAKLISTS&lt;br /&gt;
    #Expected: Total number of expected peaks&lt;br /&gt;
    noRef: Number of expected peaks with missing reference shifts&lt;br /&gt;
    noPeak: Number of expected peaks for wich no peak can be measured&lt;br /&gt;
    Assigned: Number of expected peaks that could be assigned&lt;br /&gt;
    Match: Number of assigned peaks that fit reference shifts&lt;br /&gt;
    #Measured: Total number of peaks in peak list&lt;br /&gt;
    Assigned: Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
    exp/meas: Ratio of assigned expected and measured peaks&lt;br /&gt;
 &lt;br /&gt;
    Lists      #Expected  noRef   noPeak   Assigned        Match    #Measured Assigned  exp/meas Assigned&lt;br /&gt;
    N15HSQC        106       8       1   104( 98.11%)    97( 91.51%)    131     96( 73.28%)   1.1&lt;br /&gt;
    HNCA           211      15      11   194( 91.94%)   186( 88.15%)    329    179( 54.41%)   1.1&lt;br /&gt;
    HNcaCO         211      15      11   197( 93.36%)   183( 86.73%)    246    176( 71.54%)   1.1&lt;br /&gt;
    HNCO           105       7       1   101( 96.19%)    97( 92.38%)    158     97( 61.39%)   1.0&lt;br /&gt;
    HNcoCA         105       7       0   101( 96.19%)    97( 92.38%)    158     99( 62.66%)   1.0&lt;br /&gt;
    CBCANH         399      26      25   361( 90.48%)   350( 87.72%)    623    339( 54.41%)   1.1&lt;br /&gt;
    CBCAcoNH       200      13       2   196( 98.00%)   185( 92.50%)    324    192( 59.26%)   1.0&lt;br /&gt;
    ALL           1337      91      51  1254( 93.79%)  1195( 89.38%)   1969   1178( 59.83%)   1.1&lt;br /&gt;
 &lt;br /&gt;
It contains the following data:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;#Expected:&#039;&#039;&#039; Total number of expected peaks&lt;br /&gt;
* &#039;&#039;&#039;noRef:&#039;&#039;&#039; Number of expected peaks with missing reference shifts&lt;br /&gt;
* &#039;&#039;&#039;noPeak:&#039;&#039;&#039; Number of expected peaks for which no peak can be measured&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of expected peaks that could be assigned based on the reference chemical shift assignments. The theoretical maximum of 100% corresponds to the situation that the spectra “explain” all expected peaks. Each expected peak can be mapped to at most one measured peak. Remaining expected peaks correspond to missing peaks in the measured peak list.&lt;br /&gt;
* &#039;&#039;&#039;Match:&#039;&#039;&#039; Number of assigned peaks that fit (within tolerance) reference shifts. The theoretical maximum of 100% corresponds to having all measured peaks assigned. Note that several expected peaks can be mapped to the same measured peak, i.e. the assignments of measured peaks can be unambiguous or ambiguous. Remaining unassigned measured peaks are likely to be artifacts.&lt;br /&gt;
* &#039;&#039;&#039;#Measured:&#039;&#039;&#039; Total number of peaks in peak list&lt;br /&gt;
* &#039;&#039;&#039;Assigned:&#039;&#039;&#039; Number of measured peaks that could be assigned to expected peaks&lt;br /&gt;
* &#039;&#039;&#039;exp/meas:&#039;&#039;&#039; Ratio of assigned expected and measured peaks&lt;br /&gt;
&lt;br /&gt;
There is more information on the results of the assignment calculation in the &#039;flya.txt&#039; file (not described here).&lt;br /&gt;
&lt;br /&gt;
=== The flya.tab file ===&lt;br /&gt;
&lt;br /&gt;
This file provides information about the chemical shift assignment of each individual atom:&lt;br /&gt;
&lt;br /&gt;
    Atom  Residue      Ref   Shift     Dev  Extent  inside   inref&lt;br /&gt;
    ...&lt;br /&gt;
    N     GLY   57 102.109 102.043   0.066    10.0   100.0   100.0  strong=&lt;br /&gt;
    H     GLY   57   8.571   8.570   0.001    10.0   100.0   100.0  strong=&lt;br /&gt;
    CA    GLY   57  45.415  45.433  -0.018    10.0   100.0   100.0  strong=&lt;br /&gt;
    HA2   GLY   57   4.042&lt;br /&gt;
    HA3   GLY   57   3.436&lt;br /&gt;
    C     GLY   57 173.621 173.662  -0.041    10.0    89.4    90.0  strong=&lt;br /&gt;
    N     LEU   58 120.640 120.649  -0.009    10.0    80.0    80.0  =&lt;br /&gt;
    H     LEU   58   7.488   7.492  -0.004    10.0    79.8    80.0  =&lt;br /&gt;
    CA    LEU   58  51.943  51.940   0.003    10.0    70.0    70.0  =&lt;br /&gt;
    HA    LEU   58   4.995&lt;br /&gt;
    CB    LEU   58  45.602  45.568   0.034    10.0    82.7    80.0  strong=&lt;br /&gt;
    CG    LEU   58  26.528&lt;br /&gt;
    HG    LEU   58   1.515&lt;br /&gt;
    CD1   LEU   58  24.745&lt;br /&gt;
    C     LEU   58 173.619 174.576  -0.957    10.0    40.1    10.0  ! (C 59)&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Ref:&#039;&#039;&#039; Chemical shift value in the reference chemical shift list (ref.prot). It was not used in the calculation.&lt;br /&gt;
* &#039;&#039;&#039;Shift:&#039;&#039;&#039; Consensus chemical shift value from FLYA&lt;br /&gt;
* &#039;&#039;&#039;Dev&#039;&#039;&#039; = Ref - Shift&lt;br /&gt;
* &#039;&#039;&#039;Extent:&#039;&#039;&#039; Number of runs in which the atom was assigned by FLYA.&lt;br /&gt;
* &#039;&#039;&#039;Inside:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the consensus value.&lt;br /&gt;
* &#039;&#039;&#039;inref:&#039;&#039;&#039; Percentage of chemical shift values from the (10) independent runs of FLYA that agree (within the tolerance) with the reference value.&lt;br /&gt;
* Outcome of the assignment:&lt;br /&gt;
** &#039;&#039;&#039;strong:&#039;&#039;&#039; &amp;quot;strong&amp;quot; assignment, i.e. Inside &amp;gt; 80%.&lt;br /&gt;
** &#039;&#039;&#039;=:&#039;&#039;&#039; Assignment that agrees with reference, i.e. Dev &amp;lt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;!:&#039;&#039;&#039; Assignment that does not agree with the reference, i.e. Dev &amp;gt; tolerance.&lt;br /&gt;
** &#039;&#039;&#039;(&#039;&#039;&#039;&#039;&#039;atom name&#039;&#039;&#039;&#039;&#039;):&#039;&#039;&#039; Correct assignment, if within the same residue (no residue number given), or the neighboring residues.&lt;br /&gt;
&lt;br /&gt;
=== The flya.pdf file ===&lt;br /&gt;
&lt;br /&gt;
This PDF file provides a graphical representation of the &#039;flya.tab&#039; file. Each assignment for an atom is represented by a colored rectangle. &lt;br /&gt;
[[Image:flyabackbone.png|thumb|600px|&#039;&#039;&#039;flya.pdf&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Green:&#039;&#039;&#039; Assignment by FLYA agrees with the manually determined reference assignment (within tolerance) &lt;br /&gt;
* &#039;&#039;&#039;Red:&#039;&#039;&#039; Assignment by FLYA does not agree with the manually determined reference assignment&lt;br /&gt;
* &#039;&#039;&#039;Blue:&#039;&#039;&#039; Assigned by FLYA but no reference available&lt;br /&gt;
* &#039;&#039;&#039;Black:&#039;&#039;&#039; With reference assignment but not assigned by FLYA. &lt;br /&gt;
&lt;br /&gt;
Respective light colors indicate assignments not classified as strong by the chemical shift consolidation. The row labeled HN/Hα shows for each residue HN on the left and Hα in the center. The N/Cα/C’ row shows for each residue the N, Cα, and C’ assignments from left to right. The rows β-η show the side-chain assignments for the heavy atoms in the center and hydrogen atoms to the left and right. In the case of branched side-chains, the corresponding row is split into an upper part for one branch and a lower part for the other branch.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 3: Analyze the FLYA results ===&lt;br /&gt;
&lt;br /&gt;
*Analyze your FLYA results using &#039;less&#039; or a graphical editor and a pdf viewer. &lt;br /&gt;
&lt;br /&gt;
*What do you think? &lt;br /&gt;
&lt;br /&gt;
*How does the automated assignment compare to the provided assignment?&lt;br /&gt;
&lt;br /&gt;
*How robust you think are the results? &lt;br /&gt;
&lt;br /&gt;
*What could you do to likely improve the result?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039; Use the terminal command &#039;gs&#039; to view pdf files (control-C to quit gracefully):&lt;br /&gt;
 gs flya.pdf&lt;br /&gt;
&lt;br /&gt;
== Using Talos to generate aco restraints ==&lt;br /&gt;
&lt;br /&gt;
Angle restraints from the backbone chemical shifts help restrict angular conformational space. We wish to use only &amp;quot;strong assignments&amp;quot; to generate these restraints.&lt;br /&gt;
&lt;br /&gt;
If you do not have TALOS installed get it from [https://www.ibbr.umd.edu/nmrpipe/install.html here]. It is part of the nmrpipe software package.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TALOS  is used to generate torsion angle restraints from the backbone chemical shifts in &#039;flya.prot&#039;.&lt;br /&gt;
&lt;br /&gt;
 consolidate reference=flya.prot file=flya.tab plot=flya.pdf prot=details/a[0-9][0-9][0-9].prot&lt;br /&gt;
&lt;br /&gt;
This overwrites the original flya.pdf with only strong assignments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 read prot flya-strong.prot unknown=skip&lt;br /&gt;
 &lt;br /&gt;
 talos talos=talos+                &lt;br /&gt;
 talosaco pred.tab&lt;br /&gt;
 &lt;br /&gt;
 write aco talos.aco&lt;br /&gt;
&lt;br /&gt;
This will call the program TALOS and store the resulting torsion angle restraints in the file &#039;talos.aco&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 4: Calculate the backbone angels using Talos ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; Copy the FLYA results into a new folder, since otherwise you will overwrite your original &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
Essentially you will need to copy the details directory and the &#039;flya.prot&#039; file.&lt;br /&gt;
&lt;br /&gt;
 cp -r  flyabb acoPREP&lt;br /&gt;
 cd acoPREP&lt;br /&gt;
 rm *.peaks *.out *.job&lt;br /&gt;
&lt;br /&gt;
Use the text editor of your choice, to create a &#039;CALC.cya&#039; file with the commands to calculate the talos angles.&lt;br /&gt;
&lt;br /&gt;
Since this is not a calculation suited for the MPI scheduler, start CYANA first, then call the &#039;CALC.cya&#039; macro from the prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;Hint: &#039;&#039;&#039; On stift (or kreide): change to a cshell and prepare nmrpipe by typing: &lt;br /&gt;
 csh&lt;br /&gt;
 prepare nmrpipe&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Automated NOESY assignment and structure calculation ==&lt;br /&gt;
&lt;br /&gt;
We will perform an automated NOE restraint assignment and structure calculation by torsion angle dynamics.&lt;br /&gt;
&lt;br /&gt;
The &#039;flya.prot&#039; file from the automated resonance assignment will be used together with the (unassigned) NOESY peak lists to assign the NOESY peaks and to generate distance restraints. The structure is calculated in cycles, essentially testing the NOE assignment and iteratively refining it, in order to compute the three-dimensional structure of the protein. &lt;br /&gt;
&lt;br /&gt;
=== The noeassign CALC macro ===&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks 	&lt;br /&gt;
 prot:= flya.prot                   		&lt;br /&gt;
 restraints:= talos.aco                    		&lt;br /&gt;
 tolerance:= 0.040,0.030,0.45            		&lt;br /&gt;
 structures := 100,20                      		&lt;br /&gt;
 steps:= 10000                       		&lt;br /&gt;
 randomseed:= 434726    &lt;br /&gt;
                   		&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot autoaco&lt;br /&gt;
&lt;br /&gt;
To speed up the calculation, you can set optionally in &#039;CALC.cya&#039;:&lt;br /&gt;
&lt;br /&gt;
 structures      :=50,10&lt;br /&gt;
 steps=5000&lt;br /&gt;
&lt;br /&gt;
These commands tell the program to calculate, in each cycle, 50 conformers, and to analyze the best 10 of them. 5000 torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
If you do not set these option 100 conformers will be calculate, and the 20 best will be analyzed and kept. Where as ????x torsion angle dynamics steps will be applied per conformer.&lt;br /&gt;
&lt;br /&gt;
7 cycle of automated NOE assignment and structure calculation will be performed by running the &#039;CALC.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
Doing this, basically means each processor will calculate 100/33=3 conformers. If you changed the setup to calculate 50 structures, you would start the calculation with &#039;cyana -n 25 CALC.cya&#039;&lt;br /&gt;
&lt;br /&gt;
Statistics on the NOE assignment and the structure calculation will be in the file &#039;Table&#039;, which can also be produced with the command &#039;cyanatable -lp&#039;.&lt;br /&gt;
&lt;br /&gt;
The final structure will be &#039;final.pdb&#039;. You can visualize it, for example, with the command&lt;br /&gt;
&lt;br /&gt;
 chimera final.pdb&lt;br /&gt;
&lt;br /&gt;
The optimal residue range for superposition can be found with the command&lt;br /&gt;
&lt;br /&gt;
 cyana overlay final.pdb&lt;br /&gt;
&lt;br /&gt;
=== Exercise 5: Run noeassign === &lt;br /&gt;
&lt;br /&gt;
Copy the &#039;flyabb&#039; directory and give it the name &#039;noebb&#039;, then delete all the files and data we do not need to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r flyabb noebb&lt;br /&gt;
 cd noebb&lt;br /&gt;
 rm *asn.peaks *exp.peaks *.out *.job&lt;br /&gt;
 rm -rf details&lt;br /&gt;
&lt;br /&gt;
From the directory &#039;acoPREP&#039; copy the calculated talos restraints (&#039;talos.aco&#039;).&lt;br /&gt;
 &lt;br /&gt;
Inside the &#039;noebb&#039; directory, use a text editor to edit the &#039;CALC.cya&#039; file for noeassign as outlined above.&lt;br /&gt;
&lt;br /&gt;
Run noeassign with your &#039;CALC.cya&#039; macro.&lt;br /&gt;
&lt;br /&gt;
You can check the statistics (and success of &#039;noeassign&#039;) by running:&lt;br /&gt;
&lt;br /&gt;
 cyanatable&lt;br /&gt;
&lt;br /&gt;
== Creating the ligand library file for CYANA ==&lt;br /&gt;
&lt;br /&gt;
In the next three exercises you will create the ligand library file for CYANA from scratch. Do this carefully and check your result, otherwise your structure calculation will not work as intended.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 6: Drawing the molecule and obtaining the SMILES code ===&lt;br /&gt;
&lt;br /&gt;
* make a copy of the libex and work in there (libexbb)&lt;br /&gt;
 cp -r libex libexbb&lt;br /&gt;
 cd libexbb&lt;br /&gt;
&lt;br /&gt;
Go to the [http://zinc.docking.org/search/structure ZINC] website.&lt;br /&gt;
&lt;br /&gt;
Click on the Structure tab and draw the molecule using the supplied drawing (LIG.png) of the compound as a guide.&lt;br /&gt;
&lt;br /&gt;
Be well aware of the stereochemistry.&lt;br /&gt;
&lt;br /&gt;
Copy the SMILES code.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 7: Converting the SMILES code to mol2 ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
&lt;br /&gt;
There are many options and programs to do this, we outline two:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you can use Avogadro (best):&lt;br /&gt;
&lt;br /&gt;
For Mac OS download Avogadro from: [https://avogadro.cc/ Avogadro] &lt;br /&gt;
&lt;br /&gt;
Build -- &amp;gt; Insert --&amp;gt; SMILES&lt;br /&gt;
&lt;br /&gt;
Paste the SMILES code&lt;br /&gt;
&lt;br /&gt;
Extensions -- &amp;gt; Optimize Geometry&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have to use chimera:&lt;br /&gt;
&lt;br /&gt;
(If you are on the linux server chimera is installed)&lt;br /&gt;
&lt;br /&gt;
Tools --&amp;gt; Structure Editing  --&amp;gt; Build Structure &lt;br /&gt;
Start Structure&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; SMILES string  &lt;br /&gt;
&lt;br /&gt;
set the Residue name to LIG (capital letters)&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Apply&lt;br /&gt;
Save your mol2 file as: LIG.mol2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Now, there is one issue we have to take care of: The intermolecular NOE assignments have to match the ligand structure assignment, otherwise the intermolecular NOEs will be wrong.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the text editor of your choice, manually change the &amp;quot;UNL1&amp;quot; in your mol2 file to &amp;quot;LIG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Then open the supplied demoLIG.pdb structure in chimera, as well as the created mol2 structure.&lt;br /&gt;
&lt;br /&gt;
 chimera demoLIG.pdb LIG.mol2&lt;br /&gt;
&lt;br /&gt;
First check the geometry (especially the rings!). If it is wrong fix it!&lt;br /&gt;
&lt;br /&gt;
Then using the text editor of your choice, or more conveniently using chimera change the proton names in your mol2 file to match those of the pdb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Overlay the two ligand structures in chimera.&lt;br /&gt;
&lt;br /&gt;
Favorites --&amp;gt; Command Line&lt;br /&gt;
&lt;br /&gt;
In the command line enter:&lt;br /&gt;
&lt;br /&gt;
 match #1 #0&lt;br /&gt;
&lt;br /&gt;
Depending on how the models are loaded you may need to change the #? numbers.&lt;br /&gt;
To see the model number use the Favorites --&amp;gt; Model Panel.&lt;br /&gt;
&lt;br /&gt;
If chimera complains about &amp;quot;Unequal numbers of atoms chosen for evaluation&amp;quot;, delete the pseudo atoms of &#039;demoLIG.pdb&#039; temporarily for the overlay. In the command line&lt;br /&gt;
 sel: @Q @Q? @Q??&lt;br /&gt;
 delete sel&lt;br /&gt;
&lt;br /&gt;
To rename selected atoms (control click) in the command line:&lt;br /&gt;
 setattr a name HX sel&lt;br /&gt;
&lt;br /&gt;
Hovering over atoms will display their names!&lt;br /&gt;
&lt;br /&gt;
=== Exercise 8: Converting the mol2 file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
*work in the copy of the libex directory (&#039;cd libexbb&#039;)&lt;br /&gt;
*unpack the tool to convert the mol2 to a *.lib file&lt;br /&gt;
&lt;br /&gt;
 tar zxf cylib-2.0.tgz&lt;br /&gt;
&lt;br /&gt;
run cylib with the options -nc -sc&lt;br /&gt;
&lt;br /&gt;
 ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
this will create the LIG.lib file.&lt;br /&gt;
&lt;br /&gt;
The -sc option keeps the angles of the rings fixed. We can do this since they are in this molecule either aromatic or have sp3 conjugated carbons in them, fixing the ring geometry.&lt;br /&gt;
If they had to be flexible, you would need to keep the angeles flexible and supply additional restraints to close the rings.&lt;br /&gt;
&lt;br /&gt;
To test the lib file we need CYANA:&lt;br /&gt;
&lt;br /&gt;
Create a sequence file containing &#039;LIG 333&#039; and name the file &#039;LIG.seq&#039;.&lt;br /&gt;
&lt;br /&gt;
Start CYANA&lt;br /&gt;
This will read the CYANA library file correctlly but give you the error:&lt;br /&gt;
&lt;br /&gt;
 *** ERROR: Illegal residue name &amp;quot;LIG&amp;quot;.&lt;br /&gt;
 *** ERROR: Cannot read line 1:&lt;br /&gt;
                      LIG     333&lt;br /&gt;
&lt;br /&gt;
Because we do not have an init file and have not read the &#039;LIG.lib&#039; file yet, the program just tries to read the default sequence file in the directory, but the ligand is not yet in the library, so it fails...&lt;br /&gt;
&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq LIG.seq&lt;br /&gt;
 &lt;br /&gt;
 anneal&lt;br /&gt;
 &lt;br /&gt;
 atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pseudo=1&lt;br /&gt;
 write pdb test.pdb selected&lt;br /&gt;
&lt;br /&gt;
the command pseudo=1 ensures that the pseudo atoms will be in the written pdb file, &#039;atoms select &amp;quot;* - &amp;amp;DUMMY&amp;quot;&#039; followed by &#039;write *.pdb selected&#039; prevents the dummy atoms of the linker to be written to pdb.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hint:&#039;&#039;&#039;  Since you might have to do this a few times, until the library is working and correct, it might be worthwhile to create a &#039;init.cya&#039; and a &#039;CALC.cya&#039; macro with the respective commands. This to speed things up and prevent the error output shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Carefully analyze the WARNING and ERROR messages if any. &lt;br /&gt;
&lt;br /&gt;
Then take a look at your lig.pdb in chimera and check that the chemistry and bonds are all as expected (ring closure!)&lt;br /&gt;
&lt;br /&gt;
 chimera test.pdb&lt;br /&gt;
&lt;br /&gt;
Again overlay the &#039;LIG.pdb&#039; with the provided &#039;demoLIG.pdb&#039;.&lt;br /&gt;
&lt;br /&gt;
If there are any issues &amp;quot;go back to the drawing board&amp;quot; to fix the issues.&lt;br /&gt;
Carefully check the names also of the pseudo atom names, since they are used in intermolecular-NOEs later.&lt;br /&gt;
&lt;br /&gt;
To help find problems, you may use the command:&lt;br /&gt;
&lt;br /&gt;
 write lib LIG.lib names&lt;br /&gt;
&lt;br /&gt;
This will write the library file containing actual atom names rather than numbers.&lt;br /&gt;
&lt;br /&gt;
=== Alternative Exercise 6-8: Converting a pdb file to a lib file for CYANA ===&lt;br /&gt;
&lt;br /&gt;
In case you were unsuccessful with exercises 6-8 in terms of getting a working ligand library file, do not dispair!&lt;br /&gt;
There is an easy workaround that you may be able to use in the real case as well, converting a pdb file to a library file for CYANA.&lt;br /&gt;
&lt;br /&gt;
Use Avogadro:&lt;br /&gt;
&lt;br /&gt;
File --&amp;gt; Open&lt;br /&gt;
&lt;br /&gt;
Open the 5c5aLig.pdb&lt;br /&gt;
&lt;br /&gt;
Save as&lt;br /&gt;
&lt;br /&gt;
LIG.mol2 (*.mol2)&lt;br /&gt;
&lt;br /&gt;
Rename the Residue to LIG in the LIG.mol2 file.&lt;br /&gt;
&lt;br /&gt;
  ./cylib-2.0/cylib -nc -sc LIG.mol2&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
You can run the tests outlined above, using &#039;&#039;&#039;anneal&#039;&#039;&#039; etc to test your library file.&lt;br /&gt;
&lt;br /&gt;
== Calculating the structure of the protein-ligand complex ==&lt;br /&gt;
&lt;br /&gt;
=== Exercise 9: (Semi-automatic) Intermolecular cross peaks assignment and structure calculation ===&lt;br /&gt;
&lt;br /&gt;
Since the molecular system contains protein and ligand, CYANA has to read the &#039;LIG.lib&#039; file in addition to the regular &#039;cyana.lib&#039; file.&lt;br /&gt;
The sequence file needs to contain the protein and the ligand (and a linker to connect the two).&lt;br /&gt;
&lt;br /&gt;
Copy the noebb directory and give it the name noecc, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noebb noecc&lt;br /&gt;
 cd noecc&lt;br /&gt;
 rm *cycle* *.out *.job final* rama*&lt;br /&gt;
&lt;br /&gt;
Update the &#039;init.cya&#039; file in order to read the ligand library file and the sequence file containing the linker and the ligand.&lt;br /&gt;
&lt;br /&gt;
Ad the &#039;read lib LIG.lib append&#039; following the &#039;cyanalib&#039; read command but before reading the sequence. &#039;append&#039; is necessary, otherwise the &#039;cyana.lib&#039; file will be overwritten by the &#039;LIG.lib&#039; file.&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib &lt;br /&gt;
 &lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
Intermolecular cross peaks we assign by supplying noeassign an intermolecular xeasy peak list with just the ligand resonances assigned.&lt;br /&gt;
The ligand resonance were assigned manually and determined from an additional set of experiments (the semi-automatic part).&lt;br /&gt;
Thereby the resonance assignment matches the ligand atom assignment in the library file created in the previous exercise.&lt;br /&gt;
&lt;br /&gt;
The protein side will then be assigned by noeassign.&lt;br /&gt;
&lt;br /&gt;
Update the your previous &#039;CALC.cya&#039; macro by adding the intermol-NOEs.peaks to the peaks list and adding the keep=all option to the noeassign command:&lt;br /&gt;
&lt;br /&gt;
 peaks:= cnoesy.peaks,nnoesy.peaks,aro.peaks,intermol-NOEs.peaks 	&lt;br /&gt;
&lt;br /&gt;
 write_peaks_names=.true.&lt;br /&gt;
 assign_noartifact:=&amp;quot;** list=intermol-NOEs.peaks&amp;quot;&lt;br /&gt;
 noeassign peaks=$peaks prot=$prot keep=all selectcombine=&amp;quot;* - @LIG&amp;quot; autoaco&lt;br /&gt;
&lt;br /&gt;
The command &#039;assign_noartifact&#039; effectivly disables network anchoring tests for the ligand. Since the list supplied is cleaned and presumed artifact free, we are allowed to do this.&lt;br /&gt;
We therby encourage the use of the intermolecular NEOs even if the support by other nearby NOEs is weak.&lt;br /&gt;
The command &#039;write_peaks_names=.true.&#039; ensures that the assigned peak list are written to file with the actual resonance names (this is not xeasy standard).&lt;br /&gt;
&lt;br /&gt;
You can run the calculation again, commenting out (#) the &#039;assign_noartifact&#039; command, and see the effect on the final structure.&lt;br /&gt;
&lt;br /&gt;
&#039;selectcombine&#039; calls for testing for errors to be done different:&lt;br /&gt;
Intermolecular peaks do not have to compete with intra protein peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RUN this task using a different version of CYANA:&#039;&#039;&#039;&lt;br /&gt;
 cyana -n 33 CALC.cya&lt;br /&gt;
&lt;br /&gt;
== Comparing the calculated NMR structure to an XRAY reference structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exercise 10: Compare the NMR structure to the Xray structure ===&lt;br /&gt;
&lt;br /&gt;
Download (www.rcsb.org) the xray structure with ID: 5c5a&lt;br /&gt;
&lt;br /&gt;
Use either a web-browser or the terminal:&lt;br /&gt;
&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;&#039;https://files.rcsb.org/download/5c5a.pdb&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using chimera it is possible to compare two structures, by overlaying and inspecting visually.&lt;br /&gt;
&lt;br /&gt;
When you have your xray structure ready, load your calculated nmr structure and the xray structure in chimera.&lt;br /&gt;
&lt;br /&gt;
Use to chimera specific commands to overlay the two structures and compare the structures visually.&lt;br /&gt;
&lt;br /&gt;
=== Exercise 11: Preparing an xray structure to use within CYANA ===&lt;br /&gt;
&lt;br /&gt;
Deposited structures often lack specific features. i.e. Xray structures usually lack proton coordinates.&lt;br /&gt;
&lt;br /&gt;
Copy your noecc results to a new directory call regulabb, then delete all the previous, unnecessary output files to reduce clutter and have better oversight.&lt;br /&gt;
&lt;br /&gt;
 cp -r noecc regulabb&lt;br /&gt;
 cd regulabb&lt;br /&gt;
 rm *cycle* *.out *.job&lt;br /&gt;
&lt;br /&gt;
After reading the sequence file, the pdb file can be read with the option unknown=warn or unknown=skip, this will then skip the parts of the molecule not specified in the sequence file.&lt;br /&gt;
&lt;br /&gt;
 read pdb xxxx.pdb unknown=warn&lt;br /&gt;
&lt;br /&gt;
Other options to read pdb&#039;s:&lt;br /&gt;
&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
&lt;br /&gt;
where the option &#039;hetatm&#039; allows for reading of coordinate labeled HETATM, rather than ATOM in the pdb. &#039;new&#039; will read the sequence from the pdb.&lt;br /&gt;
&lt;br /&gt;
To write back out pdb&#039;s and sequences:&lt;br /&gt;
 write pdb XXX.pdb&lt;br /&gt;
 write seq XXX.seq  &lt;br /&gt;
&lt;br /&gt;
Inspect the pdb using chimera:&lt;br /&gt;
Now, there are several issues besides HETATM, that make the comparison to the calculated NMR structure not possible within CYANA before you fix them.&lt;br /&gt;
You may use a graphical text editor to fix them. In the end, you need to have a conformer of the complex ready to compare with the calculated NMR structure. &lt;br /&gt;
&lt;br /&gt;
Best would be to practice the use of the &#039;regularize&#039; command as well. This is however not really necessary in this particular case, since this xray structure contains proton coordinates.&lt;br /&gt;
Using the regularize command one can get a structure calculated within CYANA that has these features but still is very close to the input structure of your choice.&lt;br /&gt;
&lt;br /&gt;
Copy your &#039;LIG.lib&#039; file and name it &#039;NUT.lib&#039;, in the &#039;NUT.lib&#039; file change the residue name from LIG to NUT. &lt;br /&gt;
The &#039;NUT.lib&#039; file is necessary to read the original xray structure with ligand into CYANA.&lt;br /&gt;
&lt;br /&gt;
Copy the &#039;demoLong.seq&#039; file and name it &#039;demoLongEd.seq&#039;, in the &#039;demoLongEd.seq&#039; file delete the linker residues.&lt;br /&gt;
&lt;br /&gt;
Create an &#039;init.cya&#039; macro with:&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
Then create a &#039;CALC_reg.cya&#039; macro with:&lt;br /&gt;
 read lib NUT.lib append&lt;br /&gt;
 read 5c5a.pdb unknown=warn hetatm new&lt;br /&gt;
 write 5c5a_Ed.seq &lt;br /&gt;
 write 5c5a_Ed.pdb&lt;br /&gt;
 &lt;br /&gt;
 #renumber and rename the ligand from 201 333, NUT to LIG&lt;br /&gt;
 library rename &amp;quot;@NUT&amp;quot; residue=LIG&lt;br /&gt;
 atoms select @LIG&lt;br /&gt;
 atoms set residue=333&lt;br /&gt;
 &lt;br /&gt;
 write 5c5a_renum.seq&lt;br /&gt;
 write 5c5a_renum.pdb&lt;br /&gt;
 &lt;br /&gt;
 #sequence with ligand but without linker&lt;br /&gt;
 read demoLongEd.seq&lt;br /&gt;
 read 5c5a_renum.pdb rigid unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write XrayAChainRenum.pdb&lt;br /&gt;
 &lt;br /&gt;
 initialize&lt;br /&gt;
 &lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 read pdb XrayAChainRenum.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 write pdb test.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb test.pdb&lt;br /&gt;
 regularize steps=20000 link=LL keep&lt;br /&gt;
&lt;br /&gt;
Execute the &#039;CALC_reg.cya&#039; macro in the CYANA shell (or use only one processor, do not distribute the job):&lt;br /&gt;
&lt;br /&gt;
 cyana CALC_reg.cya&lt;br /&gt;
&lt;br /&gt;
=== Exercise 12: Calclulate the RMSD of NMR vs. xray structure using a CYANA macro ===&lt;br /&gt;
&lt;br /&gt;
Using the INCLAN language of CYANA ([[Writing and using INCLAN macros]],[[Using INCLAN variables]],[[Using INCLAN control statements]]) it is possible to write complex macros that interact with the FORTRAN code of CYANA. Reading internal variables and manipulating them to achieves custom task.&lt;br /&gt;
&lt;br /&gt;
* save the manually edited xray structure (exercise 11) or the the regularized xray structure (containing the ligand and called &#039;regula.pdb&#039;) as &#039;reg_xray.pdb&#039; to use the macro below (or change the name in the macro accordingly).&lt;br /&gt;
* what do you think about the RMSD, does the value make sense? Does the range make sense?&lt;br /&gt;
&lt;br /&gt;
Below you find the commands for a macro (call it &#039;CALC_RMSD.cya&#039;) that will read the regularized xray structure and the calculated nmr structure, then calculating the rmsd of both the protein and ligand parts of the complex:&lt;br /&gt;
&lt;br /&gt;
 read demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 rmsd range=15-111 structure=final.pdb reference=reg_xray.pdb&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)&lt;br /&gt;
    end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;RMSD of the LIG: ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 read pdb final.pdb&lt;br /&gt;
 structure mean&lt;br /&gt;
 write pdb mean.pdb&lt;br /&gt;
 &lt;br /&gt;
 read pdb mean.pdb&lt;br /&gt;
 read pdb reg_xray.pdb append&lt;br /&gt;
 &lt;br /&gt;
 atom select &amp;quot;BACKBONE 15-111&amp;quot;&lt;br /&gt;
 t=rmsdmean&lt;br /&gt;
 atom select &amp;quot;WITHCOORDALL&amp;quot;&lt;br /&gt;
 j=rindex(&#039;333&#039;)&lt;br /&gt;
 n=0&lt;br /&gt;
 s=0.0&lt;br /&gt;
 do i ifira(j) ifira(j+1)-1&lt;br /&gt;
   if (element(i).gt.1.and.asel(i)) then&lt;br /&gt;
     n=n+1&lt;br /&gt;
     s=s+displacement(i)*2&lt;br /&gt;
   end if&lt;br /&gt;
 end do&lt;br /&gt;
 print &amp;quot;Displacement of the LIG (to ref xray): ${s/n} ($n atoms)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Beyond The Basics: Improving the final structure ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FLYA options ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of commands to modify FLYA runs to accommodate experimental labeling schemes or apply previous assignments etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the chemical shift statistics used for assignment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Supply user-defined chemical shift statistics instead of standard BMRB statistics from library and&lt;br /&gt;
replace the general statistics from &#039;cyana.lib&#039; (CSTABLE).&lt;br /&gt;
&lt;br /&gt;
* average value and stddev from input chemical shift list &#039;shiftx.prot&#039;&lt;br /&gt;
* &#039;assigncs_sd:=bmrb&#039; to use stddev from BMRB (&#039;cyana.lib&#039;) instead of input chemical shift list&lt;br /&gt;
* &#039;assigncs_sdfactor:=0.5&#039; to scale BMRB stddev by given factor&lt;br /&gt;
&lt;br /&gt;
 shiftassign_statistics:=predicted.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the reported statistics&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Groups of atoms for which assignment statistics will be calculated and reported in the &#039;flya.txt&#039; output file can be defined as:&lt;br /&gt;
&lt;br /&gt;
 analyzeassign_group := BB: N H CA CB C&lt;br /&gt;
&lt;br /&gt;
In this case, the command defines a group called BB (a name that can be chosen freely) comprising the atoms N, H, CA, CB, C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The optional parameter &#039;shiftreference=manREF.prot&#039; specifies reference chemical shift list, used only for comparison in flya.tab, flya.txt, flya.pdf:&lt;br /&gt;
&lt;br /&gt;
  shiftassign_reference:=manREF.prot&lt;br /&gt;
&lt;br /&gt;
The same parameter may also be set as part of the flya command:&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks shiftreference=manREF.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modify the expected peak lists&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Specific labeling can be handled and peak list-specific atom selections can be applied.&lt;br /&gt;
&lt;br /&gt;
To restrict the generation of expected peaks to a subset of atoms, here the backbone atoms:&lt;br /&gt;
&lt;br /&gt;
 command select_atoms&lt;br /&gt;
   atom select &amp;quot;N H CA CB C&amp;quot;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Input structures may be used to generate expected peaks for through-space experiments:&lt;br /&gt;
* specify with parameter &#039;structure&#039; of the command &#039;flya&#039;&lt;br /&gt;
* if parameter &#039;structure&#039; is absent, a set of random structures is generated automatically&lt;br /&gt;
* if set to blank (&#039;structure=&#039;), no random structures are generated (if not needed because only through-bond spectra are used)&lt;br /&gt;
&lt;br /&gt;
 flya runs=10 assignpeaks=$peaks structure=XXX.pdb&lt;br /&gt;
&lt;br /&gt;
Experimental peaks may also be employed as expected peak lists:&lt;br /&gt;
* command N15NOESY_expect, reading input peak list N15NOESY_in.peaks&lt;br /&gt;
 N15NOESY_expect :=N15NOESY_in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Keeping previously determined assignments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep input peak assignments in user peak assignments:&lt;br /&gt;
* (partially) assigned input peak list XXX.peaks&lt;br /&gt;
* parameter &#039;keepassigned&#039; for &#039;loadspectra.cya&#039;&lt;br /&gt;
&lt;br /&gt;
 loadspectra_keepassigned:=.true.&lt;br /&gt;
&lt;br /&gt;
To fix input chemical shift assignments contained in a prot file&lt;br /&gt;
&lt;br /&gt;
To do this i.e for backbone atoms extracted from the manREF.prot list:&lt;br /&gt;
&lt;br /&gt;
Make a list of only the reference backbone chemical shifts by entering the CYANA commands:&lt;br /&gt;
&lt;br /&gt;
 read manREF.prot&lt;br /&gt;
   atom set &amp;quot;* - H N CA CB C&amp;quot; shift=none&lt;br /&gt;
 write fix.prot&lt;br /&gt;
 &lt;br /&gt;
The file &#039;fix.prot&#039; will contain the reference chemical shifts only for the backbone (and CB) atoms H, N, CA, CB, C&#039;. Now you can repeat the assignment calculation by inserting the &#039;shiftassign_fix:=fix.prot&#039; statement in &#039;CALC.cya&#039; and choosing only the input peak lists that are relevant for sidechain assignment:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_fix:=fix.prot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chemical shift assignment using exclusively NOESY&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*increased population size with &#039;shiftassign_population=200&#039;&lt;br /&gt;
* see Schmidt et al. J. Biomol. NMR 57, 193-204 (2013)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Speeding up FLYA runs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Serves the fast automated chemical shift assignment and means the results in general are less accurate since either the populations are smaller, there are less parallel runs or the optimization schedule is modified.&lt;br /&gt;
&lt;br /&gt;
In production runs, better results can be expected (at the expense of longer computation times) if these parameters are not set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three parameters of the assignment algorithm that can be set in order to speed up the calculation.&lt;br /&gt;
&lt;br /&gt;
Fixed number of generations in evolutionary optimization:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_population=25&lt;br /&gt;
&lt;br /&gt;
The population size for the genetic algorithm, i.e. how many assignments form one generation (25; chosen smaller than in normal production runs in order to speed up the calculation).&lt;br /&gt;
&lt;br /&gt;
There is also an option to choose the &amp;quot;quick&amp;quot; optimization schedule:&lt;br /&gt;
&lt;br /&gt;
 shiftassign_quick=.true.&lt;br /&gt;
&lt;br /&gt;
And last the &#039;runs&#039; option can be set for flya as we did in the exercise (&#039;flya runs=10&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--_&lt;br /&gt;
* peak lists for distance restraint generation specified by parameter &#039;structurepeaks=&#039;  (used to pass on from flya to noeasign if done in one go)&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== neoassign options ===&lt;br /&gt;
&lt;br /&gt;
To learn more about noeassign consult the tutorial [[Structure calculation with automated NOESY assignment]]. Other options for neoassign are described here: [[CYANA_Macro:_noeassign]]&lt;br /&gt;
&lt;br /&gt;
=== Exercise 13: Mapping restraints onto a known structure ===&lt;br /&gt;
&lt;br /&gt;
One can map the calculated restraints, such as distance restraints (upl/lol) onto a known structure (in the example here an xray structure). This is another approach to analyze restraints and their influence on the results.&lt;br /&gt;
&lt;br /&gt;
Below you find the commands to accomplish this. You see by studying the commands, which files are needed to execute the macro. Therefore, create a new directory (&#039;mkdir&#039;) or copy a directory containing the respective files. Delete what you do not need. Use the regularized xray structure from exercise 11.&lt;br /&gt;
&lt;br /&gt;
Commands preceded by hashtags (#) are commented out, remove the hashtags if you want to use them. If you decide to use the intermo-NOEx-cycle7.peaks file, make sure to comment any commands you no longer need.&lt;br /&gt;
&lt;br /&gt;
You need an init file:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
And the main macro (name it &#039;CALC_xraymap.cya&#039;):&lt;br /&gt;
&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
&lt;br /&gt;
The following block of commands, takes the assigned intermol.peaks list and calculates distance restraints from the peak intensities:&lt;br /&gt;
 #peaks:=intermol-NOEs-cycle7.peaks&lt;br /&gt;
 #calibration peaks=$peaks&lt;br /&gt;
 #peaks calibrate simple&lt;br /&gt;
 #write upl intermol.upl&lt;br /&gt;
&lt;br /&gt;
The following block of commands, reads the &#039;final.upl&#039; list (in this case of neoassign) and selects the intermolecular NOEs to LIG and writes them to file:&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 distance select &amp;quot;*, @LIG&amp;quot; info=full&lt;br /&gt;
 write intermol.upl&lt;br /&gt;
&lt;br /&gt;
 read intermol.upl unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 read regula.pdb unknown=warn&lt;br /&gt;
 &lt;br /&gt;
 weight_vdw=0&lt;br /&gt;
 overview intermol_xray.ovw&lt;br /&gt;
&lt;br /&gt;
*If the restraints do not match with the xray structure, does it mean they are wrong?&lt;br /&gt;
*If you tried the two options, what is (are) the difference(s)?&lt;br /&gt;
*Did you look at the LIG.upl/lol files in the demo_data folder, what are they? What type of NMR experiments are there to obtain them?&lt;br /&gt;
&lt;br /&gt;
=== Exercise 14: Work on improving the final structure ===&lt;br /&gt;
&lt;br /&gt;
Using what you have learned so far, employing some of the options of FLYA and noeassign, consider if it is possible to improve the resolution of the final structure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
General questions to answer regarding this task:&lt;br /&gt;
*Are there additional restraints (or inputs) you could use for running FLYA or noeassign?&lt;br /&gt;
*Are there other ways to calculate NMR structures within CYANA? [[Basic structure calculation starting from given restraints]].&lt;br /&gt;
*Are there additional NMR experiments you could measure, that are not supplied with the demo_data?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
For a structure calculation starting from given experimental restraints use the commands below:&lt;br /&gt;
&lt;br /&gt;
The &#039;init.cya&#039; macro:&lt;br /&gt;
&lt;br /&gt;
 rmsdrange:=15-111,333&lt;br /&gt;
 cyanalib&lt;br /&gt;
 read lib LIG.lib append&lt;br /&gt;
&lt;br /&gt;
The &#039;CALC.cya&#039; macro:&lt;br /&gt;
 read seq demoLong.seq&lt;br /&gt;
 &lt;br /&gt;
 read aco talos.aco&lt;br /&gt;
 read upl final.upl&lt;br /&gt;
 &lt;br /&gt;
 #read upl lig.upl append&lt;br /&gt;
 #read lol lig.lol&lt;br /&gt;
 &lt;br /&gt;
 randomseed:= 434726&lt;br /&gt;
 calc_all structures=100 command=anneal steps=10000   &lt;br /&gt;
 overview calc.ovw structures=20 pdb&lt;br /&gt;
---&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deansalias</name></author>
	</entry>
</feed>