Tutorials · updated 2026-11-23
Analyse a vector genome online: repeats, palindromes and quadruplexes against chance
Features such as repeats, palindromes and G-quadruplexes are easy to find in a vector genome and hard to interpret: if flagged regions cover a fifth of a construct, a fifth of randomly placed breakpoints land in them. Here is how to run the analysis in a browser or through an AI assistant, how every class is set beside shuffled sequences and the fraction of the sequence it covers, and how to check your own flagged positions against observed breakpoints. The example is a public reference genome. You can read all of it without signing up.
What you will do
- Paste a vector or plasmid genome, or upload a FASTA file.
- Read each feature class (G-quadruplex motifs, self-complementary duplexes, tandem repeats, homopolymers, sharp folding-energy changes) beside what shuffled sequences of the same composition give.
- See where several of those classes overlap within one window, next to how many such regions shuffled sequences give.
- If you have observed breakpoints, check whether your flagged positions sit nearer them than random positions do, and how many fall inside the overlap regions.
- Optionally give a GenBank record (its annotations label the overlaps) and your own motifs, and download BED, FASTA and CSV files.
Step 1: run it
In the browser, open the vector genome analysis, paste or upload a sequence of up to 20,000 nucleotides as bare sequence, FASTA or GenBank (native files of plasmid editors are not supported: export FASTA or GenBank from the editor), optionally add breakpoints, and press the button. It runs on our CPU and takes about a minute (79.3 seconds of CPU for the example below). Through an AI assistant, connect it once and ask in plain language: where does the folding energy change sharply, which repeats, palindromes and quadruplexes does the construct have, and how many of each would be expected by chance. Sequences stay on the server in the EU.
Example: the AAV2 reference genome
The example is the public RefSeq record NC_001401.2 (Adeno-associated virus - 2, complete genome (NCBI RefSeq)), 4,679 nt, fetched on 2026-11-23 (FASTA sha256 00f77efe5ce8…). It is a reference genome, not a plasmid. GC 53.8%.
A terminal inverted repeat: the first 43 nt and the last 43 nt are reverse complements, with 0 mismatches (exact run from the ends: 43 nt). Where the ends are not perfect reverse complements the tool reports the exact run and the mismatches, and uses the name only when the pair matches.
The chance baseline
A located feature reads as a finding until it is set beside what chance gives. The table shows, for each class, the count and the fraction of the sequence it covers, next to the mean and the 5th to 95th percentile of 200 dinucleotide-preserving shuffles of this sequence (which keep the exact base and neighbour-pair counts; seed 1), and the fraction of those shuffles with at least the observed count. That last column is a fraction of the shuffles, not a significance level. The folding-energy row used 121 shuffles, fewer than requested, because folding every window of every shuffle is what limits the time.
| Class | Observed | Covers | Shuffles: mean (5th to 95th) | Shuffles cover | Fraction of shuffles with at least the observed count |
|---|---|---|---|---|---|
| G-quadruplex motif (both strands) | 0 | 0.0% | 0.27 (0 to 2) | 0.1% | 1.000 of 200 |
| self-complementary duplex | 5 | 5.0% | 0.61 (0 to 2) | 0.3% | 0.000 of 200 |
| tandem repeat | 25 | 3.9% | 11.96 (7 to 17.05) | 1.6% | 0.000 of 200 |
| homopolymer run | 2 | 0.3% | 5.14 (2 to 9) | 0.7% | 0.965 of 200 |
| folding-energy discontinuity | 2 | 2.6% | 0.03 (0 to 0) | 0.0% | 0.000 of 121 |
| GC/AT transition | 5 | 0.4% | 2.42 (0 to 7) | 0.2% | 0.140 of 200 |
No shuffle reached the observed count for: self-complementary duplex; tandem repeat; folding-energy discontinuity. At least half of the shuffles reached the observed count for: G-quadruplex motif (both strands); homopolymer run. Covered fractions are the denominator: the located features together cover 11.8% of the sequence at most (the sum of the five classes, so overlaps are counted more than once), which is the share of randomly placed breakpoints that would land in one of them by chance.
Where feature classes overlap
The question behind this section is whether features sit together or apart. A window of 100 nt slides along the sequence one nucleotide at a time; it counts when features of at least 2 different classes share a nucleotide with it, and a run of counting windows is one region. The window size and the number of classes are settings of this tool's own, not of the pre-registration, and the regions change with them. The sequence is analysed as linear. As with every class, the count on shuffled sequences comes first. The shuffles are the ones already drawn for the table above that were also folded, so the folding-energy class is in every draw (dinucleotide 121, mononucleotide 53.).
| Classes overlapping (at least) | Shuffle | Regions observed | Shuffles: mean (5th to 95th) | Fraction of shuffles with at least the observed count | Covers: observed, shuffles | Away from both ends: observed, shuffles |
|---|---|---|---|---|---|---|
| 2 | dinucleotide (121) | 5 | 3.29 (0 to 7) | 0.248 | 17.2%, 10.7% | 3, 2.93 |
| 3 | dinucleotide (121) | 2 | 0.28 (0 to 1) | 0.025 | 9.1%, 0.8% | 0, 0.26 |
| 4 | dinucleotide (121) | 1 | 0 (0 to 0) | 0.000 | 3.6%, 0.0% | 0, 0 |
| 5 | dinucleotide (121) | 0 | 0 (0 to 0) | 1.000 | 0.0%, 0.0% | 0, 0 |
| 6 | dinucleotide (121) | 0 | 0 (0 to 0) | 1.000 | 0.0%, 0.0% | 0, 0 |
| 2 | mononucleotide (53) | 5 | 3.57 (1 to 7) | 0.245 | 17.2%, 11.8% | 3, 3.25 |
| 3 | mononucleotide (53) | 2 | 0.25 (0 to 1) | 0.019 | 9.1%, 0.7% | 0, 0.25 |
| 4 | mononucleotide (53) | 1 | 0.02 (0 to 0) | 0.019 | 3.6%, 0.1% | 0, 0.02 |
| 5 | mononucleotide (53) | 0 | 0 (0 to 0) | 1.000 | 0.0%, 0.0% | 0, 0 |
| 6 | mononucleotide (53) | 0 | 0 (0 to 0) | 1.000 | 0.0%, 0.0% | 0, 0 |
At 2 classes, the genome has 5 regions; dinucleotide shuffles give 3.29 (0 to 7), and 0.248 of them reach the observed count. At 2 classes, the genome has 5 regions; mononucleotide shuffles give 3.57 (1 to 7), and 0.245 of them reach the observed count. The fractions are of the shuffles, not significance levels. A real genome is built from parts, and the shuffles have no terminal repeat, so overlap above the shuffles is expected at the ends: 2 of the 5 regions are within 200 nt of an end and 2 overlap the terminal repeat.
| region | start | end | length | classes | features of each | near an end | in a terminal repeat |
|---|---|---|---|---|---|---|---|
| conv_001 | 1 | 219 | 219 | dg_discontinuity, self_complementary, tandem_repeat | dg_discontinuity 1, self_complementary 3, tandem_repeat 6 | yes | yes |
| conv_002 | 2565 | 2729 | 165 | homopolymer, tandem_repeat | homopolymer 1, tandem_repeat 1 | no | no |
| conv_003 | 2649 | 2771 | 123 | gc_at_transition, tandem_repeat | gc_at_transition 1, tandem_repeat 1 | no | no |
| conv_004 | 3700 | 3848 | 149 | homopolymer, tandem_repeat | homopolymer 1, tandem_repeat 1 | no | no |
| conv_005 | 4451 | 4679 | 229 | dg_discontinuity, gc_at_transition, self_complementary, tandem_repeat | dg_discontinuity 1, gc_at_transition 1, self_complementary 3, tandem_repeat 6 | yes | yes |
GC/AT transitions are located too: the GC fraction of the 50 nt on either side of every boundary is compared, and a difference of at least 0.3 (a threshold of this tool's own) is a transition. The genome has 5; dinucleotide shuffles give 2.42 (0 to 7). A mononucleotide shuffle keeps the overall GC fraction and removes where it is high or low; a dinucleotide shuffle also keeps neighbour pairs. Neither says that a transition matters.
Against shuffles that keep where GC is high
A whole-sequence shuffle keeps overall composition and spreads GC evenly along the sequence. A real sequence with GC-rich islands therefore shows more class overlap than its whole-sequence shuffles from local GC heterogeneity alone. The shuffles above are of that kind, so the table above cannot say whether overlap of classes is more than GC-rich stretches alone would give. The tool therefore repeats the comparison on shuffles that cut the sequence into blocks and shuffle inside each block, so each block keeps its GC. Which block size is a choice: 100, 200, 500 nt are shown, the default is 200 nt (twice the overlap window), and the tables say what each size can and cannot keep.
At 2 classes, with the folding class, the genome has 5 regions; whole-sequence dinucleotide shuffles give 3.29 (0 to 7), fraction at least the observed 0.248; shuffles keeping the GC of each 200 nt block give 3.76 (1 to 8), fraction 0.330. At 3 classes, with the folding class, the genome has 2 regions; whole-sequence dinucleotide shuffles give 0.28 (0 to 1), fraction at least the observed 0.025; shuffles keeping the GC of each 200 nt block give 0.33 (0 to 1), fraction 0.031. At 4 classes, with the folding class, the genome has 1 region; whole-sequence dinucleotide shuffles give 0 (0 to 0), fraction at least the observed 0.000; shuffles keeping the GC of each 200 nt block give 0.02 (0 to 0), fraction 0.010. The local-GC shuffles have no terminal repeat either, so regions in the ends are still expected above them. The folding class is in these shuffles for 97 draws, the others for 200.
Against shuffles that keep where GC is high
A whole-sequence shuffle keeps overall composition and spreads GC evenly along the sequence. A real sequence with GC-rich islands therefore shows more class overlap than its whole-sequence shuffles from local GC heterogeneity alone. The same comparison is repeated on shuffles that keep the GC of each block of 100, 200, 500 nt (block edges fixed, each block shuffled inside itself; 200 shuffles of each kind, seed 1).
Every table here leaves out the folding-energy class, so the observed counts differ from the main table. k runs to the number of classes in use without folding; a count of 6 needs the folding class (or a motif or annotation class) and is not in this table.
| Classes overlapping (at least) | Shuffle | Regions observed | Shuffles: mean (5th to 95th) | Fraction of shuffles with at least the observed count | Covers: observed, shuffles |
|---|---|---|---|---|---|
| 2 | whole sequence, dinucleotide (200) | 5 | 3.44 (0 to 7) | 0.275 | 17.1%, 11.1% |
| 2 | whole sequence, mononucleotide (200) | 5 | 3.5 (0.95 to 7) | 0.280 | 17.1%, 11.5% |
| 2 | local GC, dinucleotide, blocks of 100 nt (200) | 5 | 4.62 (2 to 9) | 0.440 | 17.1%, 15.0% |
| 2 | local GC, mononucleotide, blocks of 100 nt (200) | 5 | 4.49 (1 to 9) | 0.475 | 17.1%, 14.4% |
| 2 | local GC, dinucleotide, blocks of 200 nt (200) | 5 | 4.09 (2 to 7.05) | 0.365 | 17.1%, 13.3% |
| 2 | local GC, mononucleotide, blocks of 200 nt (200) | 5 | 3.73 (1 to 7.05) | 0.305 | 17.1%, 12.0% |
| 2 | local GC, dinucleotide, blocks of 500 nt (200) | 5 | 3.77 (1 to 7) | 0.340 | 17.1%, 12.2% |
| 2 | local GC, mononucleotide, blocks of 500 nt (200) | 5 | 3.78 (1 to 7) | 0.365 | 17.1%, 12.5% |
| 3 | whole sequence, dinucleotide (200) | 1 | 0.3 (0 to 1) | 0.260 | 4.0%, 0.9% |
| 3 | whole sequence, mononucleotide (200) | 1 | 0.26 (0 to 1) | 0.230 | 4.0%, 0.8% |
| 3 | local GC, dinucleotide, blocks of 100 nt (200) | 1 | 0.51 (0 to 2) | 0.375 | 4.0%, 1.5% |
| 3 | local GC, mononucleotide, blocks of 100 nt (200) | 1 | 0.48 (0 to 2) | 0.380 | 4.0%, 1.4% |
| 3 | local GC, dinucleotide, blocks of 200 nt (200) | 1 | 0.47 (0 to 2) | 0.380 | 4.0%, 1.4% |
| 3 | local GC, mononucleotide, blocks of 200 nt (200) | 1 | 0.3 (0 to 1) | 0.265 | 4.0%, 0.9% |
| 3 | local GC, dinucleotide, blocks of 500 nt (200) | 1 | 0.34 (0 to 1) | 0.280 | 4.0%, 1.0% |
| 3 | local GC, mononucleotide, blocks of 500 nt (200) | 1 | 0.38 (0 to 1.05) | 0.285 | 4.0%, 1.2% |
| 4 | whole sequence, dinucleotide (200) | 0 | 0 (0 to 0) | 1.000 | 0.0%, 0.0% |
| 4 | whole sequence, mononucleotide (200) | 0 | 0.01 (0 to 0) | 1.000 | 0.0%, 0.0% |
| 4 | local GC, dinucleotide, blocks of 100 nt (200) | 0 | 0.03 (0 to 0) | 1.000 | 0.0%, 0.1% |
| 4 | local GC, mononucleotide, blocks of 100 nt (200) | 0 | 0.03 (0 to 0) | 1.000 | 0.0%, 0.1% |
| 4 | local GC, dinucleotide, blocks of 200 nt (200) | 0 | 0.02 (0 to 0) | 1.000 | 0.0%, 0.1% |
| 4 | local GC, mononucleotide, blocks of 200 nt (200) | 0 | 0.01 (0 to 0) | 1.000 | 0.0%, 0.0% |
| 4 | local GC, dinucleotide, blocks of 500 nt (200) | 0 | 0.01 (0 to 0) | 1.000 | 0.0%, 0.0% |
| 4 | local GC, mononucleotide, blocks of 500 nt (200) | 0 | 0.01 (0 to 0) | 1.000 | 0.0%, 0.0% |
| 5 | whole sequence, dinucleotide (200) | 0 | 0 (0 to 0) | 1.000 | 0.0%, 0.0% |
| 5 | whole sequence, mononucleotide (200) | 0 | 0 (0 to 0) | 1.000 | 0.0%, 0.0% |
| 5 | local GC, dinucleotide, blocks of 100 nt (200) | 0 | 0 (0 to 0) | 1.000 | 0.0%, 0.0% |
| 5 | local GC, mononucleotide, blocks of 100 nt (200) | 0 | 0 (0 to 0) | 1.000 | 0.0%, 0.0% |
| 5 | local GC, dinucleotide, blocks of 200 nt (200) | 0 | 0 (0 to 0) | 1.000 | 0.0%, 0.0% |
| 5 | local GC, mononucleotide, blocks of 200 nt (200) | 0 | 0 (0 to 0) | 1.000 | 0.0%, 0.0% |
| 5 | local GC, dinucleotide, blocks of 500 nt (200) | 0 | 0 (0 to 0) | 1.000 | 0.0%, 0.0% |
| 5 | local GC, mononucleotide, blocks of 500 nt (200) | 0 | 0 (0 to 0) | 1.000 | 0.0%, 0.0% |
The same, with the folding-energy class
The main convergence table again, with the folding-energy class, against the whole-sequence shuffles that were folded and against local-GC shuffles that were folded: dinucleotide-preserving within blocks of 200 nt. The number of folded shuffles is in each row; it is smaller than the number without folding, and its 5th to 95th percentile is coarse.
| Classes overlapping (at least) | Shuffle | Regions observed | Shuffles: mean (5th to 95th) | Fraction of shuffles with at least the observed count | Covers: observed, shuffles |
|---|---|---|---|---|---|
| 2 | whole sequence, dinucleotide, with folding (121) | 5 | 3.29 (0 to 7) | 0.248 | 17.2%, 10.7% |
| 2 | local GC, dinucleotide, blocks of 200 nt, with folding (97) | 5 | 3.76 (1 to 8) | 0.330 | 17.2%, 12.2% |
| 3 | whole sequence, dinucleotide, with folding (121) | 2 | 0.28 (0 to 1) | 0.025 | 9.1%, 0.8% |
| 3 | local GC, dinucleotide, blocks of 200 nt, with folding (97) | 2 | 0.33 (0 to 1) | 0.031 | 9.1%, 1.0% |
| 4 | whole sequence, dinucleotide, with folding (121) | 1 | 0 (0 to 0) | 0.000 | 3.6%, 0.0% |
| 4 | local GC, dinucleotide, blocks of 200 nt, with folding (97) | 1 | 0.02 (0 to 0) | 0.010 | 3.6%, 0.0% |
| 5 | whole sequence, dinucleotide, with folding (121) | 0 | 0 (0 to 0) | 1.000 | 0.0%, 0.0% |
| 5 | local GC, dinucleotide, blocks of 200 nt, with folding (97) | 0 | 0 (0 to 0) | 1.000 | 0.0%, 0.0% |
| 6 | whole sequence, dinucleotide, with folding (121) | 0 | 0 (0 to 0) | 1.000 | 0.0%, 0.0% |
| 6 | local GC, dinucleotide, blocks of 200 nt, with folding (97) | 0 | 0 (0 to 0) | 1.000 | 0.0%, 0.0% |
Which classes overlap, and by how much more than the shuffles give
Windows where both classes are present (the diagonal: where one class is present)
| G4 | duplex | repeat | homopolymer | folding | GC/AT | |
|---|---|---|---|---|---|---|
| G4 | 0 | 0 | 0 | 0 | 0 | 0 |
| duplex | 512 | 228 | 0 | 219 | 102 | |
| repeat | 1382 | 116 | 213 | 110 | ||
| homopolymer | 210 | 0 | 0 | |||
| folding | 219 | 71 | ||||
| GC/AT | 320 |
Observed over the mean of whole-sequence dinucleotide shuffles
| G4 | duplex | repeat | homopolymer | folding | GC/AT | |
|---|---|---|---|---|---|---|
| G4 | 0 | 0 | 0 | 0 | n/a | 0 |
| duplex | 4.01 | 6.66 | 0 | n/a | 32.43 | |
| repeat | 1.26 | 1.05 | 536.94 | 3.1 | ||
| homopolymer | 0.42 | 0 | 0 | |||
| folding | 41.67 | n/a | ||||
| GC/AT | 2.03 |
Observed over the mean of local-GC dinucleotide shuffles (blocks of 200 nt)
| G4 | duplex | repeat | homopolymer | folding | GC/AT | |
|---|---|---|---|---|---|---|
| G4 | 0 | n/a | 0 | 0 | n/a | 0 |
| duplex | 4.11 | 7.19 | 0 | n/a | 13.65 | |
| repeat | 1.14 | 0.86 | 79.77 | 2.05 | ||
| homopolymer | 0.38 | 0 | 0 | |||
| folding | 44.53 | 68.19 | ||||
| GC/AT | 1.62 |
The same cells with the fraction of windows, each null's mean and 5th to 95th percentile
| Classes | Observed windows (fraction of windows) | local GC, dinucleotide, blocks of 200 nt: mean (5th to 95th), fraction of shuffles at least observed | local GC, mononucleotide, blocks of 200 nt: mean (5th to 95th), fraction of shuffles at least observed | whole sequence, dinucleotide: mean (5th to 95th), fraction of shuffles at least observed | whole sequence, mononucleotide: mean (5th to 95th), fraction of shuffles at least observed |
|---|---|---|---|---|---|
| G4 present | 0 (0.0%) | 19.37 (0 to 125.1), 1.000 | 24.66 (0 to 127), 1.000 | 21.65 (0 to 127), 1.000 | 17.52 (0 to 124), 1.000 |
| G4 and duplex | 0 (0.0%) | 0 (0 to 0), 1.000 | 0 (0 to 0), 1.000 | 1.44 (0 to 0), 1.000 | 0.17 (0 to 0), 1.000 |
| G4 and repeat | 0 (0.0%) | 5.34 (0 to 53.55), 1.000 | 6.03 (0 to 61.1), 1.000 | 3.08 (0 to 12.8), 1.000 | 3.2 (0 to 0), 1.000 |
| G4 and homopolymer | 0 (0.0%) | 2.6 (0 to 0), 1.000 | 4.42 (0 to 0.15), 1.000 | 5.79 (0 to 44.9), 1.000 | 5.08 (0 to 1.85), 1.000 |
| G4 and folding | 0 (0.0%) | 0 (0 to 0), 1.000 | not computed | 0 (0 to 0), 1.000 | 0 (0 to 0), 1.000 |
| G4 and GC/AT | 0 (0.0%) | 3.06 (0 to 0), 1.000 | 2.63 (0 to 0), 1.000 | 1.29 (0 to 0), 1.000 | 1.96 (0 to 0), 1.000 |
| duplex present | 512 (11.2%) | 124.43 (0 to 444), 0.010 | 88.44 (0 to 226), 0.000 | 127.69 (0 to 446), 0.025 | 92.86 (0 to 424.9), 0.000 |
| duplex and repeat | 228 (5.0%) | 31.73 (0 to 151.55), 0.010 | 17.55 (0 to 98), 0.000 | 34.26 (0 to 146.45), 0.020 | 22.34 (0 to 112.15), 0.005 |
| duplex and homopolymer | 0 (0.0%) | 15.64 (0 to 98), 1.000 | 5.71 (0 to 68.1), 1.000 | 11.01 (0 to 89.1), 1.000 | 8.12 (0 to 79.25), 1.000 |
| duplex and folding | 219 (4.8%) | 0 (0 to 0), 0.000 | not computed | 0 (0 to 0), 0.000 | 0 (0 to 0), 0.000 |
| duplex and GC/AT | 102 (2.2%) | 7.47 (0 to 63.35), 0.025 | 3.98 (0 to 22.65), 0.005 | 3.15 (0 to 9.7), 0.010 | 3.62 (0 to 3.2), 0.010 |
| repeat present | 1382 (30.2%) | 1216.01 (780.95 to 1743.05), 0.265 | 1051.75 (630.85 to 1499.5), 0.135 | 1098.72 (730.55 to 1563.05), 0.180 | 1024.69 (658.6 to 1457.3), 0.110 |
| repeat and homopolymer | 116 (2.5%) | 135.54 (0 to 340.45), 0.470 | 94.17 (0 to 258.1), 0.355 | 110.85 (0 to 267.3), 0.405 | 77.23 (0 to 223.05), 0.260 |
| repeat and folding | 213 (4.7%) | 2.67 (0 to 0), 0.000 | not computed | 0.4 (0 to 0), 0.000 | 0 (0 to 0), 0.000 |
| repeat and GC/AT | 110 (2.4%) | 53.6 (0 to 162.45), 0.140 | 72.66 (0 to 196.35), 0.260 | 35.45 (0 to 136.3), 0.075 | 75.4 (0 to 226.15), 0.255 |
| homopolymer present | 210 (4.6%) | 552.82 (211 to 921.75), 0.980 | 407.99 (139.3 to 738), 0.935 | 499.61 (209.25 to 846.1), 0.950 | 382.6 (106.95 to 735.05), 0.920 |
| homopolymer and folding | 0 (0.0%) | 1.08 (0 to 0), 1.000 | not computed | 0.17 (0 to 0), 1.000 | 0 (0 to 0), 1.000 |
| homopolymer and GC/AT | 0 (0.0%) | 46.41 (0 to 170.7), 1.000 | 44.97 (0 to 188.05), 1.000 | 33.56 (0 to 144.5), 1.000 | 46 (0 to 186.2), 1.000 |
| folding present | 219 (4.8%) | 4.92 (0 to 0), 0.000 | not computed | 5.26 (0 to 0), 0.000 | 0 (0 to 0), 0.000 |
| folding and GC/AT | 71 (1.6%) | 1.04 (0 to 0), 0.010 | not computed | 0 (0 to 0), 0.000 | 0 (0 to 0), 0.000 |
| GC/AT present | 320 (7.0%) | 197.62 (0 to 430.05), 0.175 | 319.35 (102 to 597.25), 0.440 | 157.47 (0 to 330.05), 0.065 | 306.31 (0 to 596.5), 0.470 |
fixed class order; the rows are not ranked. observed over the null mean; empty when the null mean is 0, where a ratio says nothing. A ratio is a description of this sequence against a shuffle, not a significance level. The folding-energy class is in a null only for the shuffles that were also folded: fewer than the others, and for the local-GC null only the dinucleotide version at the block size used. A cell without folding says it was not computed.
Each class against the GC of the window around it
| Class | Correlation (Pearson r) | local GC, dinucleotide, blocks of 200 nt: mean r | local GC, mononucleotide, blocks of 200 nt: mean r | whole sequence, dinucleotide: mean r | whole sequence, mononucleotide: mean r |
|---|---|---|---|---|---|
| G4 | none (the class does not vary) | 0.062 | 0.067 | 0.036 | 0.077 |
| duplex | 0.392 | 0.006 | 0.004 | 0.01 | 0.001 |
| repeat | 0.198 | 0 | 0.007 | 0 | 0.005 |
| homopolymer | 0.01 | 0.013 | 0.009 | 0.001 | 0.006 |
| folding | 0.423 | 0.051 | not computed | 0.086 | not computed |
| GC/AT | -0.008 | 0.003 | -0.011 | -0.005 | -0.008 |
Pearson r between a class's per-nucleotide indicator and the GC fraction of the window around each nucleotide. Descriptive only: neighbouring positions are not independent and this is one sequence, so no p-value is given. A class that is absent or covers everything has no r.
Do the overlap regions just recover the highest-GC windows?
| Highest-GC windows, cut at | Windows | Nucleotides | Overlap with the regions (nt) | Jaccard | Regions touching one | Random windows: overlap nt mean (5th to 95th) | Random windows: Jaccard mean (5th to 95th) | Fraction of random draws with at least the observed Jaccard |
|---|---|---|---|---|---|---|---|---|
| same number of windows as converged regions | 5 | 160 | 160 of 804 | 0.199 | 2 of 5 | 41.2 (0 to 100) | 0.0424 (0 to 0.1049) | 0.002 |
| same number of nucleotides as the converged regions cover | 39 | 810 | 381 of 804 | 0.309 | 4 of 5 | 272.9 (139.9 to 409) | 0.1263 (0.061 to 0.1986) | 0.000 |
The windows of the highest-GC windows arm of the breakpoint check (50 nt, step 10), highest GC first and ties by start, cut at the number of converged regions; and, in a second row, cut at the number of nucleotides the converged regions cover. Descriptive: a small overlap says the regions are not simply the highest-GC windows; a large one says they are largely where GC is highest. It does not say either is meaningful.
What the local-GC shuffle controls for
- Local GC: each block keeps its exact base counts, so where GC is high or low along the sequence is kept at the scale of the block. Overlap that exists only because GC-rich stretches hold quadruplex motifs, duplex arms and GC/AT boundaries together is expected in these shuffles too.
- Composition and, for the dinucleotide version, neighbour-pair counts inside each block.
What it does not
- GC variation narrower than a block: it is smeared across the block, so a GC island much narrower than the block is only partly kept.
- A motif that spans a block edge is scrambled, and a feature near an edge is scrambled on one side: the null can under-produce those features.
- A block too short to hold a feature can never produce it; the block size must be long enough for the null to represent every class it is compared on.
- It keeps what the sequence has at the scale of the block, including a real GC-rich element that is itself the cause of overlap: it asks whether GC heterogeneity alone is enough, not whether the arrangement of parts is meaningful.
- The folding-energy discontinuity class is not in this null (folding every shuffle is the cost of the run); the whole-sequence shuffles are summarised again without it so the two compare.
The sequence is cut into blocks of the stated size, block edges fixed, and each block is shuffled inside itself: by mononucleotide shuffle (each block's base counts exact) or by the dinucleotide-preserving walk (each block's neighbour-pair counts exact too). A last block shorter than half a block joins the one before it.
Folding-energy changes
Folding free energy is computed for each 50 nt window, stepping 10, with DNA parameters (the RNA defaults would change the numbers by roughly a factor of two). The tool ranks the largest changes between adjacent windows, and compares the largest change with the same statistic on the shuffles.
| Statistic (kcal/mol) | Shuffle | Observed | Shuffles: mean (5th to 95th) | Fraction of shuffles at least as large |
|---|---|---|---|---|
| largest |change| between adjacent windows | dinucleotide (121) | 11.8 | 7.31 (5.9 to 9.5) | 0.008 |
| mean of the 5 largest |changes| | dinucleotide (121) | 10.06 | 6.22 (5.4 to 7.3) | 0.000 |
| largest |change| between adjacent windows | mononucleotide (53) | 11.8 | 7.4 (6.1 to 9.1) | 0.000 |
| mean of the 5 largest |changes| | mononucleotide (53) | 10.06 | 6.37 (5.59 to 7.15) | 0.000 |
Along the sequence
Each panel is a track along the sequence; the shaded band is the 5th to 95th percentile of the shuffles at that window; below are the located features and the ranked folding-energy changes. The figure is drawn by one function from the stored result.
Checking your own flags against breakpoints
This part is a synthetic example. SYNTHETIC: a seeded random sequence with features planted at known positions and breakpoints chosen by hand. Not a measurement of any construct. Its breakpoints are 420, 650, 1410, 1830, 1100, 2300; the planted features are: a cluster of three classes within 100 nt: G-quadruplex motif at 601-621, homopolymer (T x14) at 640-653, tandem repeat (CAGT x6) at 665-688; G-quadruplex motif at 401-421; self-complementary arms at 801-822 and 1401-1422; tandem repeat (CAGT x8) at 1801-1832; homopolymer (T x14) at 2101-2114. No breakpoint data were used for AAV2.
For each method, a budget of 5 positions is flagged, and the table gives the median distance from each flagged position to the nearest breakpoint against 1000 random draws of the same number of positions (the first and last 200 nt excluded from the draws). The protocol is the one pre-registered for the analysis; the table reports numbers and the random draws and gives no verdict.
| Flagged by | Positions | Median distance to nearest breakpoint | Within 50 nt | Random positions: median distance, mean (5th to 95th) | Fraction of random draws at least as close |
|---|---|---|---|---|---|
| largest folding-energy changes (frozen ranking) | 281, 1681, 501, 141, 221 | 149 | 0% | 100.952 (39 to 169) | 0.894 of 1000 |
| G-quadruplex motifs, longest first | 410, 611, 411 | 10 | 100% | 101.849 (27 to 185) | 0.006 of 1000 |
| highest-GC windows | 1426, 1436, 886, 1446, 136 | 36 | 60% | 100.386 (36 to 164) | 0.066 of 1000 |
| windows densest in self-complementary arms | 806, 816, 826, 1406, 1416 | 156 | 40% | 100.034 (36 to 164) | 0.936 of 1000 |
docs/measurements/aav_breakpoints/PREREGISTRATION.md: budget of k positions per arm; primary statistic is the median distance from each predicted position to the nearest breakpoint (`flag_to_break`); null is 1000 random draws of the same number of positions, excluding the first and last 200 nt. `break_to_flag` (from each breakpoint to the nearest flagged position) is given as well.
- One construct: the pre-registered cross-construct comparison (arm B minus arm A, paired) needs several constructs and is not computed here.
- The null draws positions uniformly; it does not model that breakpoints may cluster near the ends for reasons unrelated to any sequence feature.
- Flagged positions in the frozen ranking are not edge-excluded; the null is, as the pre-registration specifies.
GenBank records, your own motifs and files to download
This part is the same synthetic example. A GenBank record can be given instead of bare sequence. Its features (9 here, from the synthetic record tests/fixtures/synthetic_vector_labelled.gb) are shown as known annotations and label the regions they overlap; an overlap with an annotation is an overlap and nothing more, and annotations are not counted as a class unless you ask. The reader accepts positions, complement, join and order of plain ranges, and refuses anything else with the reason. Native files of plasmid editors are not read.
| region | start | end | length | classes | features of each | near an end | in a terminal repeat | known annotations overlapping |
|---|---|---|---|---|---|---|---|---|
| conv_001 | 291 | 520 | 230 | g4, homopolymer, tandem_repeat, user_motif | g4 2, homopolymer 1, tandem_repeat 2, user_motif 3 | no | no | synthetic G4 site (misc_feature); synthetic_joined (CDS) |
| conv_002 | 502 | 752 | 251 | g4, homopolymer, tandem_repeat, user_motif | g4 1, homopolymer 1, tandem_repeat 2, user_motif 3 | no | no | synthetic cluster (misc_feature) |
| conv_003 | 1300 | 1406 | 107 | self_complementary, tandem_repeat | self_complementary 1, tandem_repeat 1 | no | no | synthetic arm B (misc_feature) |
| conv_004 | 1343 | 1521 | 179 | homopolymer, self_complementary | homopolymer 1, self_complementary 1 | no | no | synthetic arm B (misc_feature) |
Motifs are your own: the tool ships no motif database, so paste a consensus (IUPAC letters) or a position-weight matrix block. The made-up pattern below was built into the synthetic sequence. Both strands are scanned, and the same scan on shuffles shows how often a pattern of that length matches by chance.
| Motif | Length | Hits (both strands) | Dinucleotide shuffles: mean (5th to 95th) | Mononucleotide shuffles: mean (5th to 95th) | Fraction of shuffles with at least the observed hits |
|---|---|---|---|---|---|
| synthetic_site | 9 | 6 | 0.04 (0 to 0) | 0 (0 to 0) | 0.000, 0.000 |
Both strands are scanned: a minus-strand hit is where the reverse complement of the motif matches the sequence as given. A start that matches on both strands is reported once, with strand '.'. Overlapping hits are all kept. A hit is a pattern match, not a binding site.
- No motif database ships with this tool. The motifs are the ones you gave.
- A short motif matches by chance often: the shuffle columns give how often, and a hit count near the shuffle mean says the motif is no more frequent than composition gives.
- A hit is a pattern match. It is not a binding site, and a match says nothing about occupancy.
With breakpoints supplied, the tool also counts how many fall inside the overlap regions and compares the count with the same number of positions placed at random.
3 of 6 breakpoints fall inside a converged region. The regions cover 28.5% of the sequence, so 1.71 would be expected if the breakpoints were spread evenly. Placing the same number at random 1000 times (seed 1) gives 1.66 inside (5th to 95th: 0 to 3); the fraction of draws with at least the observed number is 0.208.
This counts supplied breakpoints inside converged regions and compares the count with the same number of positions placed at random. It tests association in the data you supplied; it says nothing about what causes a truncation.
Files for this example: annotations.bed (9 lines), convergence.bed (4 lines), convergence.fasta (18 lines), features.bed (23 lines), features.csv (42 lines), features.fasta (56 lines). BED is 0-based half-open with a constant score that measures nothing, FASTA headers carry 1-based inclusive coordinates, and the CSV is the feature table with the overlap regions as rows. They are available as buttons on the result page and through the connected assistant.
What this example does not show
- A shuffle is one null among several. It keeps composition and removes arrangement; a real vector is assembled from parts, so more structure than a shuffle gives is expected of almost any construct and is not by itself a finding.
- Located features are questions, not defects. No published model links these features to a specific failure in a process, and none is claimed here.
- No breakpoints data were used for AAV2, so the breakpoint check is shown on a synthetic planted example only. It says nothing about where any real genome breaks.
- The reference genome is not a plasmid, and the sequence is treated as linear: a duplex across a circular junction is not found.
- Overlap of feature classes is an association of positions. It is not a cause, and counting breakpoints inside overlap regions tests association in the data you supply, nothing more.
- Shuffles that keep the GC of each block control for local GC at the scale of the block and not below it, scramble motifs across block edges, and cannot tell a real GC-rich element that causes overlap from GC-richness that merely accompanies it. They are one more null, not a test of whether the arrangement means anything.
- The overlap regions depend on the window and on the number of classes, and the null is the shuffle, not a model of how a real vector is assembled. Annotations and motifs only label or add a class; a motif match is a pattern match, not a binding site.
- GenBank files exported from a plasmid editor were not available when this was built; the reader was checked on a synthetic record and against an independent reader.
- Folding every window of every shuffle is what takes the time, so on a long sequence the folding-energy comparison uses fewer shuffles than the other classes, and the result states how many.
Run it on your own sequence
Sequences you give are processed on our server in the EU. Signing up is needed to run; reading results is not.
The method, its limits and the tools it uses are listed on the vector genome page.