AGCoL

  Load Blast Hits

Create FASTA files Run Blast or Diamond Load Blast file Add to existing hits Example and details

  Go to top


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

Load Blast

         Create the
FASTA files
Run Blast
or Diamond
Load
Blast files
Add to
existing hits
Example
and details

This page describes using Blast or Diamond for computing the hits for SyMAP.

Pros: (1) Loading a blast file is much faster than SyMAP running MUMmer. (2) Any numbers of blast file hits can be 'added' to the existing hits.

Cons: (1) It does not work if one of the genomic sequence is not annotated and it does not perform gene discovery. (2) It loses the exon/intron alignment coordinates, hence, the alignment to the 2D exon/intron structure is incorrect. (3) The user must obtain and manually run Blast or Diamond.

The steps are very easy:

Please read the following for the details.

Create the FASTA files

When you load the project, you may request that either the Exons or CDSs be loaded; see Parameters.
  1. Select View for the project, then Export.

    →If you have loaded the CDSs, then you can create a file of Proteins and/or Spliced CDSs.


    →If you have loaded the Exons , you can create a file of Spliced Exons.
    view export exon

  2. Likewise, export the proteins or spliced transcripts from the second project.
view export

The export can take awhile, e.g. for the demoArab 13,476 genes:

By default, the exported files will be in the SyMAP /export directory.
The FASTA header line uses the ID= value from the GFF file attribute; see Annotation file.

Run Blast or Diamond

SyMAP does not run Blast or Diamond for you. You must download Blast or Diamond.
For protein sequences, use Blastp or Diamond.
For nucleotide sequences, use Blastn.

The output file must be the tabular format (-outfmt 6).

It is recommended that the results only show the top 5 hits per gene (-max_target_seqs 5).

For the Demo, you can copy and paste the commands from Example below.

Load Blast files

Start SyMAP and select Pair Parameters.
Select the Load Blast files option.

If protein files are being compared, select Proteins, else select Nucleotides. For protein files, the length of the hits is multiplied by 3 to better approximate its alignment.

When you select Save, the directory data/<project1>_to_<project2>/blast will be created.

view export
Exit SyMAP and move the blast tab file(s) to data/<project1>_to_<project2>/blast.
Restart SyMAP and select Selected Pair; a popup (as shown on right) will confirm your parameters; select Confirm.

SyMAP will load the blast hits, then execute the Collinear algorithm and Synteny algorithm.

load blast
SyMAP will load ALL files in the /blast directory.

Add to existing hits

Remove hits added by a given file: There is no way to do this. Clear Pair then reload the desired files.

Example and Details

         Load MUMmer + Blast Hits Query Table Go to top

By default, the exported files are written to /export. I generally create a directory
   data/seq_results/<project1>_to_<project2>/export
and move the FASTA files here, and run Blast/Diamond from this directory.
Then I copy the desired *.tsv files to ../blast.
Note: Clear Pair only removes the /align and /blast directories.

The following filenames are suggested naming; SyMAP does not care as long as they are outfmt 6.

Diamond:

diamond makedb --in demoBrapProt.faa -d brapdb
diamond blastp -q demoArabProt.faa -d brapdb  -o diamBrapProt.tsv -f 6 -k 5 -p 4

Blastp:

makeblastdb -in demoBrapProt.faa -dbtype prot -out brapAAdb
blastp -query demoArabProt.faa -db brapAAdb -out bltBrapProt.tsv -outfmt 6 -max_target_seqs 5 -num_threads 4

Blastn

makeblastdb -in demoBrapExon.fna -dbtype nucl -out brapNTdb
blastn -query demoArabExon.fna -db brapNTdb -out bltBrapExon.tsv -outfmt 6 -max_target_seqs 5 -num_threads 4
or
makeblastdb -in demoBrapCDS.fna -dbtype nucl -out brapNTdb
blastn -query demoArabCDS.fna -db brapNTdb -out bltBrapCDS.tsv -outfmt 6 -max_target_seqs 5 -num_threads 4

MUMmer + Blast hits

Mask vs Blast shows timing comparison results between using mask MUMmer and Blast.
The following shows adding multiple files of blast hits.
  1. MUMmer hits were loaded and clustered.
    >> Summary for demoArab to demoBrap
         8,507 hits
            44 synteny blocks
         8,143 gene hits
         5,789 synteny hits
    

  2. Two files of diamond protein results were added, one with demoArab as the blast database, the other with demoBrap as the blast database.
    Load Blast for demoArab and demoBrap
         7,701 gene pair hits in database
       --- Read File /diamBrapProt.tsv ---
           Projects Gene IDs in correct order
        29,448 Hits from Blast file
         8,202 Failed %identity cutoff of 40
           626 Failed E-value cutoff of 1.0E-10
         7,481 Update existing hits - file #1
        13,139 Saved new hits
       --- Read File /diamArabProt.tsv ---
           Projects Gene IDs in reverse order - swapping
        22,864 Hits from Blast file
         4,725 Failed %identity cutoff of 40
           390 Failed E-value cutoff of 1.0E-10
        15,687 Update existing hits - file #2
         2,062 Saved new hits
        22,902 Total hits in database
    Finish Load Blast                    12s
    
    >> Summary for demoArab to demoBrap
        23,708 hits
            76 synteny blocks
        23,344 gene hits
         8,023 synteny hits
    Complete processing                  51s
    

The bottom of the Summary shows:
query table

Query table

query table
  • EE indicates a MUMmer hit. The Bp12 means it was also found in both blast files.
  • A Bp1 indicates it was only found in the 1st blast file,
    A Bp2 indicates it was only found in the 2nd blast file.
  • Load Blast will add numbers for up to 9 blast files.
All hit values are from the FIRST hit entered into the database, e.g. the %Olap and %Id from the first row are from the EE hit.
Go to top

Email Comments To: cas1@arizona.edu