SPIDEY(1)
π SPIDEY(1) π
okay bestie, gather round, because we're about to talk about spidey, a tool from the NCBI Tools User's Manual, and honestly? she's iconic. π·οΈβ¨
πΈ NAME πΈ
spidey β align mRNA sequences to a genome π§¬
β¨ SYNOPSIS β¨
spidey [-] [-F N] [-G] [-L N] [-M filename] [-N filename] [-R filename]
[-S p/m] [-T N] [-X] [-a filename] [-c N] [-d] [-e X] [-f X] [-g X]
-i filename [-j] [-k filename] [-l N] -m filename [-n N] [-o str] [-p N]
[-r c/d/m/p/v] [-s] [-t filename] [-u] [-w]
π¦ DESCRIPTION π¦
spidey is your girl for aligning one or more mRNA sequences to a given genomic sequence. No cap. π
She was written with two main goals in mind, and she is so serious about them:
- find good alignments regardless of intron size
- avoid getting confused by nearby pseudogenes and paralogs
Toward that first goal, spidey uses BLAST and Dot View (another local alignment tool) to find her alignments. And because both of those are local alignment tools, spidey does not intrinsically favor shorter or longer introns, and she has no maximum intron size. Periodt. π₯
To avoid mistakenly including exons from paralogs and pseudogenes, spidey first defines windows on the genomic sequence, and then performs the mRNA-to-genomic alignment separately within each window. And because of the way the windows are constructed, neighboring paralogs or pseudogenes should land in separate windows and should not be included in the final spliced alignment. slay. π
π Initial alignments and construction of genomic windows π
spidey takes as input a single genomic sequence and a set of mRNA accessions or FASTA sequences. All processing is done one mRNA sequence at a time. The first step for each mRNA sequence is a high-stringency BLAST against the genomic sequence. The resulting hits are analyzed to find the genomic windows. π
The BLAST alignments are sorted by score and then assigned into windows by a recursive function which takes the first alignment and then goes down the alignment list to find all alignments that are consistent with the first β same strand of mRNA, both the mRNA and genomic coordinates are nonoverlapping and linearly consistent. On subsequent passes, the remaining alignments are examined and are put into their own nonoverlapping, consistent windows, until no alignments are left. Depending on how many gene models are desired, the top n windows are chosen to go on to the next step and the others are deleted. bye bestie π
π§ Aligning in each window π§
Once the genomic windows are constructed, the initial BLAST alignments are freed and another BLAST search is performed β this time with the entire mRNA against the genomic region defined by the window, and at a lower stringency than the initial search. Then spidey uses a greedy algorithm to generate a high-scoring, nonoverlapping subset of the alignments from that second BLAST search.
This consistent set is analyzed carefully to make sure that the entire mRNA sequence is covered by the alignments. When gaps are found between the alignments, the appropriate region of genomic sequence is searched against the missing mRNA β first using a very low-stringency BLAST and, if the BLAST fails to find a hit, using DotView functions to locate the alignment. When gaps are found at the ends of the alignments, the BLAST and DotView searches are actually allowed to extend past the boundaries of the window. π
If the 3' end of the mRNA does not align completely, it is first examined for the presence of a poly(A) tail. No attempt is made to align the portion of the mRNA that seems to be a poly(A) tail. Sometimes there is a poly(A) tail that does align to the genomic sequence, and these are noted because they indicate the possibility of a pseudogene. π
Now that the mRNA is completely covered by the set of alignments, the boundaries of the alignments (there should be one alignment per exon now) are adjusted so that the alignments abut each other precisely and so that they are adjacent to good splice donor and acceptor sites. Most commonly, two adjacent exons' alignments overlap by as much as 20 or 30 base pairs on the mRNA sequence. The true exon boundary may lie anywhere within this overlap, or (as we have seen empirically) even a few base pairs outside the overlap. π³
To position the exon boundaries, the overlap plus a few base pairs on each side is examined for splice donor sites, using functions that have different splice matrices depending on the organism chosen. The top few splice donor sites (by score) are then evaluated as to how much they affect the original alignment boundaries. The site that affects the boundaries the least is chosen, and is evaluated as to the presence of an acceptor site. The alignments are truncated or extended as necessary so that they terminate at the splice donor site and so that they do not overlap. chef's kiss π
π Final result π
The windows are examined carefully to get:
- the percent identity per exon
- the number of gaps per exon
- the overall percent identity
- the percent coverage of the mRNA
- presence of an aligning or non-aligning poly(A) tail
- number of splice donor sites and the presence or absence of splice donor and acceptor sites for each exon
- the occurrence of an mRNA that has a 5' or 3' end (or both) that does not align to the genomic sequence
If the overall percent identity and percent length coverage are above the user-defined cutoffs, a summary report is printed, and, if requested, a text alignment showing identities and mismatches is also printed. π
π Interspecies alignments π
spidey is capable of performing interspecies alignments. The major difference in interspecies alignments is that the mRNA-genomic identity will not be close to 100% like it is in intraspecies alignments; also, the alignments have numerous and lengthy gaps.
If spidey is used in her normal mode to do interspecies alignments, she produces gene models with many, many short exons. π When the interspecies flag is set, spidey uses different BLAST parameters to encourage longer and more gaps and to not penalize as heavily for mismatches. This way, the alignments for the exons are much longer and more closely approximate the actual gene structure. π
π Extracting CDS alignments π
When spidey is run in network-aware mode or when ASN.1 files are used for the mRNA records, she is capable of extracting a CDS alignment from an mRNA alignment and printing the CDS information also. Since the CDS alignment is just a subset of the mRNA alignment, it's relatively straightforward to truncate the exon alignments as necessary and to generate a CDS alignment. Furthermore, the untranslated regions are now defined, so the percent identity for the 5' and 3' untranslated regions is also calculated. β¨
π OPTIONS π
A summary of options is included below. (yes, all of them. we don't skip. π«Ά)
-β Print usage message.-F Nβ Start of genomic interval desired (from; 0-based).-Gβ Input file is a GI list.-L Nβ The extra-large intron size to use (default =220000).-M filenameβ File with donor splice matrix.-N filenameβ File with acceptor splice matrix.-R filenameβ File (including path) to repeat blast database for filtering.-S p/mβ Restrict to plus (p) or minus (m) strand of genomic sequence.-T Nβ Stop of genomic interval desired (to; 0-based).-Xβ Use extra-large intron sizes (increases the limit for initial and terminal introns from100kbto240kband for all others from35kbto120kb); may result in significantly longer compute times.
bestie. this one can make things take forever. lowkey worth it, highkey be patient. π
-a filenameβ Output file for alignments when directed to a separate file with-p 3(default =spidey.aln).-c Nβ Identity cutoff, in percent, for quality control purposes.-dβ Also try to align coding sequences corresponding to the given mRNA records (may require network access).-e Xβ First-pass e-value (default =1.0e-10). Higher values increase speed at the cost of sensitivity.-f Xβ Second-pass e-value (default =0.001).-g Xβ Third-pass e-value (default =10).-i filenameβ Input file containing the genomic sequence in ASN.1 or FASTA format. If your computer is running on a network that can access GenBank, you can substitute the desired accession number for the filename.-jβ Print ASN.1 alignment?-k filenameβ File for ASN.1 output with-k(default =spidey.asn).-l Nβ Length coverage cutoff, in percent.-m filenameβ Input file containing the mRNA sequence(s) in ASN.1 or FASTA format, or a list of their accessions (with-G). If your computer is running on a network that can access GenBank, you can substitute a single accession number for the filename.-n Nβ Number of gene models to return per input mRNA (default =1).-o strβ Main output file (default =stdout; contents controlled by-p).-p Nβ Print alignment? π0β summary and alignments together (default)1β just the summary2β just the alignments3β summary and alignments in different files
-r c/d/m/p/vβ Organism of genomic sequence, used to determine splice matrices.cβ C. elegansdβ Drosophilamβ Dictyostelium discoideumpβ plantvβ vertebrate (default)
-sβ Tune for interspecies alignments.-t filenameβ File with feature table, in 4 tab-delimited columns:seqid(e.g.,NM_04377.1)name(onlyrepetitive_regionis currently supported)start(0-based)stop(0-based)
-uβ Make a multiple alignment of all input mRNAs (which must overlap on the genomic sequence).-wβ Consider lowercase characters in input FASTA sequences to be masked.
π«Ά AUTHOR π«Ά
Sarah Wheelan and others at the National Center for Biotechnology Information; Steffen Moeller contributed to this documentation. ty for your service queens πβ¨
β SEE ALSO β
okay that's the whole thing, bestie, you're officially a spidey expert now π this page came to you from NCBI and it's dated 2005-01-25, and yes she's been serving since then, no cap. go align something gorgeous. π¦πΈπ
π¦ where this page comes from
- debian bookworm: ncbi-tools-bin 6.1.20170106+dfsg1-10 Β· public_domain
- debian trixie: ncbi-tools-bin 6.1.20170106+dfsg2-6 Β· public_domain
- ubuntu jammy: ncbi-tools-bin 6.1.20170106+dfsg1-9 Β· public_domain
- ubuntu noble: ncbi-tools-bin 6.1.20170106+dfsg2-2 Β· public_domain
- ubuntu questing: ncbi-tools-bin 6.1.20170106+dfsg2-6
- ubuntu resolute: ncbi-tools-bin 6.1.20170106+dfsg2-7 Β· public_domain
- ubuntu stonking: ncbi-tools-bin 6.1.20170106+dfsg2-7 Β· public_domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms