<p><a href="https://genome.ucsc.edu/FAQ/FAQblat.html#blat5" rel="nofollow noreferrer">The FAQ</a> offers an answer:</p>

<blockquote>
  <p><strong>I'm setting up my own Blat server and would like to use the same parameter values that the UCSC web-based Blat server uses.</strong> </p>
  
  <p>We almost always expect there to be some small differences between the hgBlat/gfServer and the stand-alone command-line blat. The best matches can be found using pslReps and pslCDnaFilter utilities. The web-based blat is tuned permissively with a minimum cut-off score of 20, which will display most of the alignments. Other than to confirm that your command-line blat is working, there is little use in perfectly replicating the web-based blat results. We advise deciding which filtering parameters make the most sense for the experiment or analysis. Often these settings will be different and more stringent than those of the web-based blat. With that in mind, use the following settings to replicate the search results of the web-based blat:</p>
  
  <p>[ . . . ]</p>
  
  <p>standalone blat:</p>
  
  <p>blat search:</p>

<pre><code>blat -stepSize=5 -repMatch=2253 -minScore=0 -minIdentity=0 database.2bit query.fa output.psl 
</code></pre>
</blockquote>

CC BY-SA 3.0
2017-09-08T07:12:28.723Z
2017-09-08T07:35:46.933Z
2017-09-08T07:35:46.933Z
Alex Reynolds
<p>I have the nucleotide sequence:</p>

<p><em>AATTGAGGCACATTTTTTTTTAGACAGTCTTGCTCTGTTGCCCAGGCTGGAGTGCAGTGGTGTGATCATAGCTCACTGCAGCCTCGACCTCCTGGGCTCAACAAAGCACACAGTGGGCGGATCCCCACCAG</em></p>

<p>When I blat this on UCSC Genome Browser, the first hit is a match which spans 6572 basepairs on chromosome 19, and essentially matches the first portion of the sequence to one spot on the genome, and the second portion to another part of the genome approximately 6.5kb downstream.</p>

<p>However when I use the BLAT command line tool, it doesn't find the second half of this match, it only matches the first portion.</p>

<p>Here are the flags I'm using:</p>

<p><strong>-t=dna</strong></p>

<p><strong>-q=dna</strong></p>

<p><strong>-minIdentity=90</strong></p>

<p><strong>-out=blast8</strong></p>

<p>How do I get the command line tool to mimic the behavior of BLAT on UCSC Genome Browser?</p>

<human-genome><genomics><blat>
Using BLAT command line tool to blat split sequences
# Using BLAT command line tool to blat split sequences

(Asked by: username_0 on 2017-09-08)

I have the nucleotide sequence:

*AATTGAGGCACATTTTTTTTTAGACAGTCTTGCTCTGTTGCCCAGGCTGGAGTGCAGTGGTGTGATCATAGCTCACTGCAGCCTCGACCTCCTGGGCTCAACAAAGCACACAGTGGGCGGATCCCCACCAG*

When I blat this on UCSC Genome Browser, the first hit is a match which spans 6572 basepairs on chromosome 19, and essentially matches the first portion of the sequence to one spot on the genome, and the second portion to another part of the genome approximately 6.5kb downstream.

However when I use the BLAT command line tool, it doesn't find the second half of this match, it only matches the first portion.

Here are the flags I'm using:

**-t=dna**

**-q=dna**

**-minIdentity=90**

**-out=blast8**

How do I get the command line tool to mimic the behavior of BLAT on UCSC Genome Browser?

**Tags:** human-genome, genomics, blat

---

## 1 answers

### Answer by username_1 on 2017-09-08. Score: 5

The FAQ offers an answer:

I'm setting up my own Blat server and would like to use the same parameter values that the UCSC web-based Blat server uses. 
We almost always expect there to be some small differences between the hgBlat/gfServer and the stand-alone command-line blat. The best matches can be found using pslReps and pslCDnaFilter utilities. The web-based blat is tuned permissively with a minimum cut-off score of 20, which will display most of the alignments. Other than to confirm that your command-line blat is working, there is little use in perfectly replicating the web-based blat results. We advise deciding which filtering parameters make the most sense for the experiment or analysis. Often these settings will be different and more stringent than those of the web-based blat. With that in mind, use the following settings to replicate the search results of the web-based blat:
[ . . . ]
standalone blat:
blat search:
blat -stepSize=5 -repMatch=2253 -minScore=0 -minIdentity=0 database.2bit query.fa output.psl


---

