AGCoL

  Parameters

Build database   Selected Projects   Available Syntenies   Align&Synteny Project Parameters   Display   Load project   Load annotation   GFF Attributes   Save Pair Parameters   Alignment   Collinear Sets   Synteny   Drop-down and Save Synteny Compare Go to top


       UA BIO5        SyMAP
Home
  
Download   Docs          System
Guide
  
Input   Parameters          User
Guide
  
Queries

The original SyMAP was written for diverse plant genomes with short introns, but has been modified to work for the long introns of mammalian genomes, and less diverse genomes.

1. Build database
  1. Start SyMAP
  2. Selected Projects (Load)
  3. Available Syntenies
  4. Align&Synteny (A&S)
  5. CPU and Verbose
Additional
    2. Load Project Parameters
  1. Parameter panel
  2. Display
  3. Load project
  4. Load annotation
  5. GFF Attributes
  6. Save project parameters
    3. A&S Pair Parameters
  1. Parameter panel
  2. Alignment
  3. Collinear Sets
  4. Synteny
  5. Drop-down and Save
4. Synteny parameter comparison

1. Build database

Start
SyMAP
Selected
Projects
Available
Syntenies
Align&
Synteny
CPU&
Verbose

Start SyMAP

To start SyMAP, type at the command line: ./symap
The Project Manager will be displayed.

To view the command line options: ./symap -h

   For the first time user of SyMAP, see:

Project Manager
manager

Selected Projects

manager The possible functions next to a project name vary as to whether the project is loaded or not.

If there is any selected project not loaded to the database, you will see:

Load All Projects - Load all projects that have not been loaded yet.

LoadedLabelDescription
No Remove from disk A Confirm/Cancel popup will show that actions that will occur, as follows:
  Remove project:
     data/seq/[project-name]
  Remove results:
     [followed by list of directories that will be removed]

e.g. If the demo has been completely run, and demoBrap is to be removed from disk, the following popup will show what will be removed: remove project from disk

Yes Remove from database The projects and its synteny pairs will be removed from the database.
Once complete, the label will change to Remove from disk.
 
No Load project Loads the sequence and optional annotations to the database.
When loading is complete, always verify by selecting the View, e.g. View.
Yes Reload project A popup will show the following options:
   Only: Reload project
   All: Plus, remove results
    [followed by list of directories that will be removed]

👉 If the sequence file has been changed, select All; this will remove the same set of directories as shown in Remove from disk. MUMmer or Blast will need to be rerun.

 
Either Parameters This brings up a panel of parameters, see Project Parameters. After the project is loaded, you can still change the Display parameters without reloading the project or annotation.

All actions that remove from the database or disk provide a Final Confirm popup.

These links are only available if the project is loaded:
Reload annotation Removes the annotation from the database then load the annotations.

This does not effect the alignment, so they do not have to be redone. The Align&Synteny commands will recognize if there are existing alignments and will use them.
👉 This would be done if the annotation file has changed or its parameters
(see project parameter's Load Annotation).

View This bring up a panel of a summary of the loaded results, e.g. View Arabidopsis.

Available Syntenies

Sequence alignments are performed with MUMmer or protein alignments with Blast/Diamond.

This section shows a table with the status of alignments between the selected loaded projects. Each cell in the table represents a pair of projects and the cell contains a status code showing whether or not that pair has been aligned (codes are listed below). Note that the table shows each pair cell twice, but only the lower cells are activated.

Clicking on a cell selects that pair of projects (the cell will be highlighted in green), and the buttons that can be selected are activated.

Code Description
✔ Synteny for this project pair is ready to view.
A The MUMmer alignment has been performed but the Clust&Synteny needs to be run;
select Reload MUMmer.
? The alignment have not been completed. In this case,
select Reload MUMmer and the alignments will be completed followed by the synteny computation.
B A blast tabular file is available but the Load&Synteny needs to be run;
select Load Blast.
A/B Both MUMmer and Blast files are available;
select which to use on the Pair Parameters window.
  Neither MUMmer or Blast alignment files exist.

See Pair Parameters for additional information on the Available Syntenies and codes.

Align&Synteny

Load Blast

First buttonThe text of the first button changes depending on the state of the selected project pair.
Select Pair No pair is selected.
Run MUMmer The alignments hav not been run nor is synteny computed.
Run (or complete) the MUMmer alignments, followed by the Cluster&Synteny.
See Use MUMmer
Reload MUMmer The pair is already complete (✔) or the alignments exists (A).
Selecting this will remove the pair from the database, load the existing MUMmer files, and run the Cluster&Synteny.
If you wish to rerun the MUMmer alignment, first use the Clear Pair function.
Load Blast The pair is already complete (✔) or the Blast alignments exists (B),
and Load Blast files option is selected in the Pair Parameters.
Selecting this will add the hits from the blast file(s) to the database, and run the Synteny (there is no clustering for blast hits).
See Load Blast
Only... See the parameters's drop-down for the variations.
Clear Pair
manager A dialog, as illustrated on the left, will show the options. The Results items will only be enabled if the subdirectories exist.

👉 If the Mask or MUMmer args are changed, MUMmer needs to be re-run. The /align directory needs to be removed, which contains the MUMmer alignment results.

After Confirm is selected, a second Final Confirm will popup.

Parameters Set the Pair Parameters for the selected pair cell .

For the display buttons, see User Guide.

CPU and Verbose

CPUs:

Verbose checkbox:

Neither of these are saved with the Pair parameters Save. They can be set at the command line, e.g.
./symap -p 3 -v

2. Load Project Parameters

Parameter
panel
   
Display Load
project
Load
annotation
   
GFF
Attributes
Save Go to top

Project Parameter panel

The Selected section of the Manager
Project options
Click the Parameters link for a project to open the parameters panel shown on the right.

👉 Make sure these two parameters are correct before running the alignment: Minimum length, Sequence files. These are described in Load project.

Sequence and Anno (annotation) files:
If the files are put in the default locations, nothing needs to be entered for them. Default locations:

  data/seq/<project-name>/sequence
  data/seq/<project-name>/annotation
See input for a description of the input files.

 

Note: as of v5.8.6, the xToSymap conversion programs include CDS coordinates in the converted .gff files.

parameters1

Display

The following parameters are under the Display section of the parameters panel.
Most of these values are shown in the Selected section of the Manager.
New values take immediate effect on Save and are saved in the symap_5/data/seq/<project-name>/params.txt.

ParameterDescriptionDefault ValueUsed In
  Category Category label for the project. This is only used to group projects on the left side of the Manager panel.

Category labels must be composed of only letters, numbers, dash, underscore, or period.

Either select an existing label from the drop-down or enter a new one in the text box. Do NOT enter the same label with different capitalization -- it may mess-up.

Uncategorized Selected
  Display name A user-friendly name for the project.

Shorter names will work better in the displays. Names must be composed of only letters, numbers, dash, underscore, period.

It must be unique over all case-insensitive Display names and project-names.

project-name Selected
and all displays
  Abbreviation A name must be <= 5 characters. Names must be composed of only letters, numbers, dash, underscore, period.

Uniqueness is not required over other Abbreviation. It can be the same as the corresponding Display name or project-name. However, it must be different between projects that are compared in Queries.

First 5 characters of Display name Queries column headings and Pair Parameters
  Description Description of the project.

Do NOT use quotes, backslash or #.

New project Selected and View
  Group type How to refer to the sequences. Chromosome Selected
  Anno key count This applies to the annotation attributes columns shown in the Queries results table. See the GFF Attributes section below. 50 --

👉 Changes to the display parameters take immediate effect, i.e. no further action is required.

Load project

The following parameters are under the Load project section of the parameters panel.

Group prefix
The term "Group" is used for any FASTA sequence type, e.g. chromosome, scaffold, contig. This option sounds trivial but is important for a good display, so please read carefully the following.

1. When a Group prefix is entered, it allows SyMAP to remove the prefix from the chromosome names and use the remaining part as a shorter name, e.g. '1' instead of 'chr1', as shown on the right; the top chromosome images do not have it 'chr' removed and the bottom do.
2.If the sequence file has a mix of prefixes (e.g. Chr01, Scaf2345):
  • If a Group prefix is entered, only sequences with that prefix will be loaded.
  • Leave the Group prefix blank will load all sequences; their prefix will not be removed.
3.Long names really clutter the display; it is best to use a consistent prefix that SyMAP can remove, otherwise, use really short prefixes, e.g. 's' for scaffold, 'c' for chromosome.
4. You may remove the prefix after the project is loaded. For example, if your sequences had names "Chr1", "Chr2", etc, and "Chr" was NOT entered as the Group prefix before load, you may enter it later and it will be removed from all sequence names. However, this is not reversible, a prefix cannot be added to the sequence names.
5. This is case-insensitive.
Demo prefix
This parameter is finicky; after loading a project, select View for a popup of the input, and check the output to the terminal to make sure the annotation was loaded right. Also, see xToSymap as it may help you create the files with good prefixes.

Minimum length
This must be an integer, commas are allowed (e.g. 1,000,000).
This is the minimum length of the FASTA sequence that will be loaded; smaller sequences will be ignored. Note that annotations for ignored sequences will also be ignored, but some warning messages will be printed to the terminal. See xToSymap Length for help with setting this parameter.

Sequence files
Select the input FASTA sequence file(s) or directories of sequence files. For formatting, see Sequence files. Default location: data/seq/<project-name>/sequence

👉 If any either the Sequence files or Minimal length parameters are changed:

Load annotation

The following parameters are under the Load annotation section of the parameters panel.

Exon/CDS toggle (v5.8.7 or later)

Anno keywords
A comma separated list of keywords. This can be used to reduce the annotation attribute keywords shown in the 2D display and Queries table, as described in the GFF Attributes section below.

Anno files
Select the input GFF3-formatted annotation files corresponding to your sequences. Note, using a GFF3 file directly can cause problems if it does not conform to what SyMAP expects; see Annotation files. Annotation is optional but highly recommended. Default location: data/seq/<project-name>/annotation

👉 If any of these are changed:

GFF Attributes

If xToSymap was used to create the GFF file, then the attributes have already been filtered, and this section can probably be ignored.

This section discussed parameters Anno key count and Anno keywords.
It gives details on what GFF attributes are displayed in SyMAP, which refers to them as annotations.
The gene annotations are shown on the 2D display and as columns in the Queries results table.

The attributes (annotations) comes from the last column of the GFF file. It is a keyword=value list, e.g.

   ID=gene-AT1G01010;Name=NAC001;ID=rna-NM_099983.2;product=NAC domain containing protein 1
Defaults: Generally, all genes in a file have the same keywords, in which case, use the defaults. This will cause the entire attribute to be shown for the gene in the 2D display, and the Queries table will have columns for each keyword that has over Anno key count (default 50) occurrences. In the example above, the columns will be ID, Name and product (the second ID will be ignored).

If there are many different keywords in the attribute list, this causes too many columns in the Queries table. This can be reduced by one (or both) of the following:

Anno key count: If there are many different keywords in the attribute list, set this count N to filter out all keywords with <N occurrences. The Anno key count can be modified at any time using symap (not viewSymap).

Anno keywords: The keyword=value pairs to be saved for each gene can be limited by listing the desired keywords separated by commas. Using this approach, it will also reduce annotation description per gene in the 2D display. Referring to the example above, if the string "ID, product" was entered for Anno keywords, the Name=value would not be part of any gene annotation.

👉 If the Anno keywords are changed after the annotations are loaded, execute Reload Annotations

Saving project parameters

On Save and before loading the project, the parameters are saved to:
  data/seq/<project-name>/params.txt
Save also saves the parameters in the database.

The params.txt file parameters are shown on the Project Parameters panel. These can only be viewed and changed using symap (not viewSymap). Do not edit params.txt with a standard editor.


3. A&S Pair Parameters

Parameter
panel
   
Alignment Collinear
Sets
   
Synteny    Save    Synteny
Compare
Go to top

Pair Parameter panel

demo table with A

The Available Syntenies section explains the table underneath the label. A few more notes: If a cell contains an A, the MUMmer alignments are complete and will not be redone. This is important because MUMmer is very time-consuming, but the synteny computation is not (see timing results); hence, one can make changes to the cluster or synteny parameters and re-run without redoing the alignments.

pair parameters

Select a pair cell in the Available Syntenies table followed by the Parameters button, which will popup the panel shown on the upper right; click + to open a section and show its associated parameters.

👉 If a pair cell has a ✔ indicating it is complete, and the parameters for a section are subsequently changed, do the following:

Changed SectionAction
Alignment If the MUMmer parameters have been changed, select
Clear Pair with Remove pair /align, followed by Run MUMmer.
If the Blast files have been changed,
Clear Pair, replace the files in the /blast directory, followed by Load Blast.
Cluster Hits
(MUMmer only)
The button label will be Reload MUMmer; the existing alignments for the pair will be used.
Collinear SetsIf only collinear sets parameters are changed, click the lower drop-down and select Collinear Sets (see drop-down).
Synteny If only synteny parameters are changed, click the lower drop-down and select Synteny Only (see drop-down).

The Align&Synteny drop-down shows what will be run. If the alignment and synteny have been run, parameters can be changed and then different actions can be selected to re-run (see drop-down):

The parameters for each section are described below:

Alignment Collinear Sets Synteny   

+ Alignment

• Use MUMmer: MUMmer provides genome alignment.

See MUMmer for details about the parameters shown on the right.

• Load Blast files: Blast hits from a b6 tabular file can be loaded instead of running MUMmer, or to augment MUMmer results.

See Load Blast for details about the parameters shown on the right.

 

+ Cluster MUMmer hits
See MUMmer for clustering MUMmer hits.

align params

+ Collinear Sets

Collinear Sets is abbreviated as "CoSet" below. A description of Collinear Sets is given in Details. Collinear
Algorithm
By Order
By Size
The 1st option numbers the CoSets in descending order by the start coordinates.
The 2nd option sorts CoSets by size and then numbers then in ascending order by size.
Advanced
Simple
The 1st option tries to find collinearity in complex overlapped genes areas.
The 2nd option uses the original algorithm, which does not try to resolve overlapping genes.
See Advanced vs Simple.

Suggestion: Use Advanced, then if you do not like how it handles embedded genes, change to Simple.

👉 If the collinear parameters are changed:

+ Synteny

Cluster parameters The image on the left shows the defaults. The one exception is that Strict is turned off for draft sequence.
ParameterDescription
  Min Hits Minimum number of anchors required to define a synteny block.
  Strict This uses the Original algorithm with the following changes:
  • It used smaller gap sizes and stricter PCC cutoff.
  • It first computes the blocks based on orientation.
  • If Orient is not checked, it checks blocks and collinear sets to see if they are contained in another block, and if so, merges them regardless of orientation; this merge happens regardless of the Merge setting.
  Orient All hits in a block must have hits of the same orientation ('+/+' or '-/-') or different orientation ('+/-' or '-/+').
  Merge Overlap: The blocks must overlap to be merged.
Close: Blocks that overlap or are close will be merged.

If the Align&Synteny has already been executed, and you want to try different synteny parameter, you may just run the synteny algorithm as described in Save.

See Synteny parameter comparison for comparison of using the different synteny parameters. The following is a brief comparison of three images of the same regions when evaluated with the following 3 parameter sets:

Default (one block)                    Same orient (three blocks)          Same orient with Merge (two blocks). Pair Orient
In the last image, the reverse orientation block is embedded in another block

Hints about synteny parameter settings

👉 It is easy to experiment with synteny parameters since it is possible to execute the Synteny only using the drop-down. For two genome complete sequence synteny, it is strongly suggested you start with Strict.

Suggestion: For large genomes, experiment with the parameters on just one or two pairs of the chromosomes; you can use xToSymap for the split. Note: the synteny results of one or two chromosomes will be slightly different compared to whole genome synteny.

Order against

For draft sequences, they may be ordered against another project. See Ordering details.

In the synteny parameters above, the Draf->Seq2 and Seq2->Draf use the Abbreviation set in the Project parameters panel. The "->" indicates that the first sequence will be ordered against the second.

👉 If the draft has been aligned to the Order against sequence, but this option was not set, it can be set and then execute Synteny Only by setting the drop-down.

Drop-down and Save

Drop-down

If the Align&Synteny has already been run, the top item of the drop-down will describe what will be run by default. There are additional options you may select, as follows: pair parameters
Synteny Only If you have only changed synteny parameters, select this option.
Number Pseudo If you want to add pseudo numbers, select this option.
Collinear Sets If you only want to redo the Collinear Sets computation, select this option.

The Manager window Align & Synteny button will indicate what was selected, e.g. Synteny Only.

Once the button is clicked, a popup will give detailed information on the actions and parameters, select Confirm.

Drop redo

Saving pairs parameters

Before the A&S is executed, the parameters are saved in
  data/seq_results/<proj1-to-proj2>/params.txt
Once the A&S is executed, the parameters are stored in the database.

The file parameters are shown on the pair Parameter panel. These can only be viewed and changed using symap (not viewSymap).

Any parameter not the default will be shown on the Summary page.

BEWARE: If you run A&S, then change the PROmer or NUCmer settings, but forget to Clear Pair before running A&S again, the parameters on the Summary page will be wrong (SyMAP does not check for this situation).

4. Synteny parameter comparisons

The following is from comparing Arabidopsis thaliana chromosomes 1 and 2 with Brassica rapa chromosomes 1 and 7. The Clustering hits Algo2 (exon-intron) was used in all cases.

Original vs Strict: Both allow a mix of inverted and non-inverted hits in a block, but Strict only allows small inversions within a non-inverted block and vice-versa (unless Merge is used). The Strict blocks tend to not have the tails of dots that have bigger gaps.
Original
Arab Brap orig
Strict
Arab Brap strict
Original chr1&chr7
Arab Brap orig 1-7
Strict chr1&chr7 Arab Brap strict 1-7
 
Orient: This requires all hits in a block to be in the same orientation. This options fits with what some other software packages consider 'synteny'.
Original Orient chr1&chr7
Arab Brap orig orient 1-7
Strict Orient chr1&chr7 Arab Brap strict orient 1-7
 
Merge Overlap: Only overlapping blocks can be merged. This will have little effect if Orient has been used since mixed blocks cannot be merged.
Original Merge Overlap chr1&chr7
Arab Brap orig overlap 1-7
Strict Merge Overlap chr1&chr7 Arab Brap strict overlap 1-7
 
Merge Close: Blocks that are close can be merged.
Original Merge Close chr1&chr7
Arab Brap orig close 1-7
Strict Merge Close chr1&chr7 Arab Brap strict close 1-7
Go to top

Email: cas1@arizona.edu