This directory contains the source code for the FASTA package of
programs (W. R. Pearson and D. J. Lipman (1988), "Improved Tools
for Biological Sequence Analysis", PNAS 85:2444-2448). The current verion of the program is fasta-36.3.8i
.
If you are reading this at fasta.bioch.virginia.edu/wrpearson/fasta/fasta36, links are available to executable binaries for Linux, MacOS, and Windows. The source code is also available from github.com/wrpearson/fasta36.
The FASTA package offers many of the same programs as BLAST
, but
takes a different approach to statistical estimates, and provides
additional optimal programs for local (ssearch36
) and global
(ggsearch36
, glsearch36
) alignment, and for non-overlapping
internal local alignments (lalign36
).
The programs available include:
FASTA | BLAST | description |
---|---|---|
fasta36 | blastp/blastn | Protein and DNA local similarity search |
ssearch36 | optimal Smith-Waterman search -- vectorized on Intel and Arm architectures | |
ggsearch36 | optimal global Needleman-Wunsche search -- vectorized on Intel and Arm architectures | |
glsearch36 | optimal global(query)/local (library) search -- vectorized on Intel and Arm architectures | |
fastx36 / fasty36 | blastx | DNA query search against protein sequence database. (fasty36 uses a slower, more sophisticated frame shift aligner) |
tfastx36 / tfasty36 | tblastn | protein query search against DNA database |
fastf36 / tfastf36 | compares an ordered peptide mixture against a protein (fastf36) or DNA (tfastf36) database | |
fastm36 / tfastm36 | compares a set of ordered peptide against a protein (fastf36) or DNA (tfastf36) database or oligonucleotides against a DNA database | |
fasts36 / tfasts36 | compares an unordered set of peptides against a protein (fasts36) or DNA (tfasts36) database | |
lalign36 | look for non-overlapping internal alignments, similar to a "dot-plot," but with statistical signficance | |
Changes in fasta-36.3.8i Sept, 2023
-
-Xh
provides definitions of-X?
(extended) options. -
R
scripts (m8CBl_to_plot2.R
) to convert-m8CBl
alignments to "dot-plots". Options to put E()-values along alignment diagonals.
Changes in fasta-36.3.8i Aug, 2023
- Changes to the
psisearch2/psisearch2_msa.pl
andpsisearch2/psisearch2_msa.pl
to work with current versions of NCBI-BLAST+ (psiblast
).
Changes in fasta-36.3.8i May, 2023
-
restore the default
-s BL62
gap penalties to -8, -1 (they were -11, -1, matching-s BP62
-
restore functionality of
-A
option, which forces Smith-Waterman final display alignments with DNA (normally banded Smith-Waterman is used) -
add
--id
option toscripts/get_protein.py
to add a custom identifier
Changes in fasta-36.3.8i Nov, 2022
-
bug fix to remove duplicate variant annotations
-
update to scripts/get_protein.py and annotation scripts.
-
modify code to reduce mktemp compilation warning messages
-
changes to annotation scripts for Pfam shutdown; new ann_pfam_www.py, ann_pfam_sql.py
Changes in fasta-36.3.8i Sept, 2021
- Enable translation table -t 9 for Echinoderms. This bug has existed since alternate translation tables were first made available.
Changes in fasta-36.3.8i May, 2021
- Add an option, -Xg, that preserves the gi|12345 string the score summary and alignment output.
Changes in fasta-36.3.8i Nov, 2020
-
fasta-36.3.8i (November, 2020) incorporates the SIMDe (SIMD-everywhere, https://github.com/simd-everywhere/simde/blob/master/simde/x86/sse2.h) macro definitions that allow the smith_waterman_sse2.c, global_sse2.c, and glocal_sse2.c code to be compiled on non-Intel architectures (currently tested on ARM/NEON). Many thanks to Michael R. Crusoe (https://orcid.org/0000-0002-2961-9670) for the SIMDE code converstion, and to Evan Nemerson for creating SIMDe.
-
The code to read FASTA format sequence files now ignores lines with '#' at the beginning, for compatibility with PSI Extended FASTA Format (PEFF) files (http://www.psidev.info/peff).
Changes in fasta-36.3.8h May, 2020
-
fasta-36.3.8h (May 2020) fixes a bug that appeared when multiple query sequences were searched against a large library that would not fit in memory. In that case, the number of library sequences and residues increased by the library size with each new search.
-
More consistent formats for ERROR and Warning messages.
-
Corrections to code to address compiler warnings with gcc8/9.
-
addition of 's' option to show similarity in -m8CBls (or -m8CBs, -m8CBsl) and 'd' option to show raw (unaligned) domain information.
Changes in fasta-36.3.8h February, 2020
- The license for Michael Farrar's Smith-Waterman sse2 code and global/glocal sse2 code is now open source (BSD), see COPYRIGHT.sse2 for details.
Changes in fasta-36.3.8h August, 2019
- Modifications to support makeblastdb format v5 databases. Currently, only simple database reads have been tested.
Changes in fasta-36.3.8h March, 2019
-
Translation table 1 (
-t 1
) now translates 'TGA'->'U' (selenocysteine). -
New script for extracting DNA sequences from genomes (
scripts/get_genome_seq.py
). Currently works with human (hg38), mouse (mm10), and rat (rn6).
Changes in fasta-36.3.8h January, 2019
-
Bug fixes:
fastx
/tfastx
searches done with the-t t
option (which adds a*
to protein sequences so that termination codons can be matched), did not work properly with theVT
series of matrices, particularlyVT10
. This has been fixed. -
New features: Both query and library/subject sequences can be generated by specifying a program script, either by putting a
!
at the start of the query/subject file name, or by specifying library type9
. Thus,fasta36 \\!../scripts/get_protein.py+P09488+P30711 /seqlib/swissprot.fa
orfasta36 "../scripts/get_protein.py+P09488+P30711 9" /seqlib/swissprot.fa
will compare two query sequences,P09488
andP30711
, to SwissProt, by downloading them from Uniprot using theget_protein.py
script (which can download sequences using either Uniprot or RefSeq protein accessions). Often, the leading!
must be escaped from shell interpretation with\\!
.
New scripts that return FASTA sequences using accessions or genome coordinates are available in scripts/
. get_protein.py
, get_uniprot.py
, get_up_prot_iso_sql.py
and get_refseq.py
. get_refseq.py
can download either protein or mRNA RefSeq entries. get_up_prot_iso_sql.py
retrieves a protein and its isoforms from a MySQL database.
get_genome_seq.py
extracts genome sequences using coordinates from local reference genomes (hg38
and mm10
included by default).
Changes in fasta-36.3.8h December, 2018
The scripts/ann_exons_up_www.pl
and ann_exons_up_sql.pl
now include the option --gen_coord
which provides the associated genome coordinate (including chromosome) as a feature, indicated by '<'
(start of exon) and '>'
(end of exon).
Changes in fasta-36.3.8h released November, 2018
fasta-36.3.8h provides new scripts and modifications to the fasta
programs that normalize the process of merging sub-alignment scores and region information into both FASTA and BLAST results. To move BLASTP towards FASTA with respect to alignment annotation and sub-alignment scoring:
-
The
blastp_annot_cmd.sh
runs a blast search, finds and scores domain information for the alignments, and merges this information back into the blast output.html
file. This script uses:annot_blast_btab2.pl --query query.file --ann_script annot_script.pl --q_ann_script annot_script.pl blast.btab_file > blast.btab_file_ann
(a blast tabular file with one or two new fields, an annotation field and (optionally with --dom_info) a raw domain content field.merge_blast_btab.pl --btab blast.btab_file_ann blast.html > blast_ann.html
(merge the annotations and domain content information in theblast.btab_file_ann
file together with the standard blast output file to produce annotated alignments.- In addition,
rename_exons.py
is available to rename exons (later other domains) in the subject sequences to match the exon labeling in the aligned query sequence. relabel_domains.py
can be used to adjust color sets for homologous domains.
-
There is also an equivalent
fasta_annot_cmd.sh
script that provides similar funtionality for the FASTA programs. This script does not need to useannot_blast_btab2.pl
to produce domain subalignment scores (that functionality is provided in FASTA), but it also can usemerge_fasta_btab.pl
andrename_exons.py
to modify the names of the aligned exons/domains in the subject sequences. -
To support the independence of the
blastp
/fasta
output from html annotation, the FASTA package includes some new options:-
The
-m 8CBL
option includes query sequence length and subject sequence length in the blast tabular output. In addition, if domain annotations are available, the raw domain coordinates are provided in an additional field after the annotation/subalignment scoring field.-m 8CBl
provides the sequence lengths, but does not add the raw domain coordinates. -
The
-Xa
option prevents annotation information from being included in the html output -- it is only available in the-m 8CB
(or-m 8CBL/l
) output -
To reduce problems with spaces in script arguements, annotation scripts with spaces separating arguments can use '+' instead of ' '.
-
The
fasta_annot_cmd.sh
script produces both a conventional alignment onstdout
and a-m 8CBL
alignment, which is sent to a separate file, which is separated from the-m F8CBL
option with a=
, thus-m F8CBL=tmp_output.blast_tab
.
-
Changes in fasta-36.3.8g released 23-Oct-2018
-
(Oct. 2018) Improvements to scripts in the
psisearch2/
directory:-
psisearch2/m89_btop_msa2.pl
- the
--clustal
option produces a "CLUSTALW (1.8)", which is required for some downstream programs - the
--trunc_acc
option removes the database and accession from identifiers of the form:sp|P09488|GSTM1_HUMAN
to produceGSTM1_HUMAN
. - the
--min_align
option specifies the fraction of the query sequence that must be aligned(q_end-q_start+1)/q_length)
Together, these changes make it possible for the output ofm89_btop_msa2.pl
to be used by the EMBOSS programfprotdist
.
- the
-
A more general implementation of
psisearch2_msa_iter.sh
, which doespsisearch2
one iteration at a time, and a new equivalentpsisearch2_msa_iter_bl.sh
, which usespsiblast
to do the search.
-
- (Oct. 2018) A small restructuring of the
make/Makefiles
to remove the-lz
dependence for non-debugging scripts (and add it back when -DDEBUG is used).
Changes in fasta-36.3.8g released 5-Aug-2018
-
(Apr 2018) incorporation of
-t t1
termination codes ("*") in-m 8CB
,-m 8CC
, and-m9C
so that aligned termination codons are indicated as**
(-m8CB
) or*1
(-m8CC
,-m9C
). -
(Mar 2018) Updates to scripts/annot_blast_btop2.pl to provide subalignment scoring for blastp searches (BLOSUM62 only). (see doc/readme.v36)
-
(Feb. 2018) a new extended option,
-XB
, which causes percent identity, percent similarity, and alignment length to be calculated using the BLAST model, which does not count gaps in the alignment length.
see readme.v36 for other bug fixes.
Changes in fasta-36.3.8g released 31-Dec-2017
-
(December, 2017) -- Make statistical thresholds more robust for small E()-values with normally distributed scores (
ggsearch36
,glsearch36
). -
(September, 2017) Treat lower-case queries with no upper-case residues as uppercase with
-S
option. -
(May, 2017) Improvements/fixes to sub-alignment scoring strategies.
-
Improvements/fixes to psisearch2 scripts.
For more detailed information, see doc/readme.v36
.