restriction_map
Restriction digest of one DNA sequence, linear or circular, with named enzymes (66 common sites built in, IUPAC degenerate codes, type IIS enzymes that cut outside their site, custom sites): every cut on both strands, overhang type and sequence, fragments in map order and by size, single cutters and non-cutters, and a gel-like band table that says which fragments would run together. It finds sites by exact matching on both strands; it knows nothing of methylation, star activity or buffer.
- Field
- Genomics
- Version
- 0.1.0
- Runs as
- Compiled (Rust)
- Typical run
- 0.05 s
Compiled from source: run sh packs/install.sh once before admitting it.
Known answers it must pass
r0001site placement by hand, EcoRI G^AATTC on a linear 50-mer with sites starting at bases 11 and 37: top strand cut after 11 and 37, bottom after 15 and 41 (4-nt 5' overhang AATT); a palindromic site is counted once (2 cuts, not 4); linear n cuts give n + 1 = 3 fragments of 11, 26, 13 bp summing to 50 (exact counts)passed
length_bp= 5050lockedexact matchn_cuts= 22lockedexact matchn_fragments= 33lockedexact matchfragments_in_order_bp= [11, 26, 13][11, 26, 13]lockedexact matchsum_fragments_bp= 5050lockedexact matchenzymes.EcoRI.cuts_top_after_bp= [11, 37]misseddiffersenzymes.EcoRI.cuts_bottom_after_bp= [15, 41]misseddiffersenzymes.EcoRI.overhang_type= 5'misseddiffersenzymes.EcoRI.overhang_nt= 4misseddiffersenzymes.EcoRI.palindromic= truemisseddifferscuts.0.overhang= AATTmisseddiffersnon_cutters= [][]lockedexact matchsingle_cutters= [][]lockedexact matchr0002the same 50-mer as a circle: n = 2 cuts give n = 2 fragments, 37 - 11 = 26 bp and 50 - 26 = 24 bp (exact counts)passed
n_cuts= 22lockedexact matchn_fragments= 22lockedexact matchfragments_bp= [26, 24][26, 24]lockedexact matchsum_fragments_bp= 5050lockedexact matchenzymes.EcoRI.cuts_top_after_bp= [11, 37]misseddiffersr0003site across the origin of a 20-bp circle (AATTC...G, the G is base 20): one EcoRI cut after base 20 on top and after base 4 on the bottom strand, the circle opens to one 20-bp fragment (exact counts)passed
n_cuts= 11lockedexact matchn_fragments= 11lockedexact matchfragments_bp= [20][20]lockedexact matchenzymes.EcoRI.cuts_top_after_bp= [20]misseddiffersenzymes.EcoRI.cuts_bottom_after_bp= [4]misseddifferscuts.0.overhang= AATTmisseddifferssingle_cutters= ["EcoRI"]["EcoRI"]lockedexact matchr0004the same 20-mer read as linear has no complete site: 0 cuts, 1 fragment of 20 bp, EcoRI a non-cutter (exact counts)passed
n_cuts= 00lockedexact matchn_fragments= 11lockedexact matchfragments_bp= [20][20]lockedexact matchnon_cutters= ["EcoRI"]["EcoRI"]lockedexact matchr0005overhang types from the textbook sites, one site each on a linear 34-mer: EcoRI G^AATTC at 5 cuts after 5/9 (5' overhang, 4 nt), PstI CTGCA^G at 15 cuts after 19/15 (3' overhang, 4 nt, TGCA), EcoRV GAT^ATC at 25 cuts after 27/27 (blunt); fragments 5, 14, 8, 7 bp (exact counts)passed
n_cuts= 33lockedexact matchn_fragments= 44lockedexact matchfragments_in_order_bp= [5, 14, 8, 7][5, 14, 8, 7]lockedexact matchfragments_bp= [14, 8, 7, 5][14, 8, 7, 5]lockedexact matchsum_fragments_bp= 3434lockedexact matchenzymes.EcoRI.cuts_top_after_bp= [5]misseddiffersenzymes.EcoRI.cuts_bottom_after_bp= [9]misseddiffersenzymes.EcoRI.overhang_type= 5'misseddiffersenzymes.EcoRI.overhang_nt= 4misseddiffersenzymes.PstI.cuts_top_after_bp= [19]misseddiffersenzymes.PstI.cuts_bottom_after_bp= [15]misseddiffersenzymes.PstI.overhang_type= 3'misseddiffersenzymes.PstI.overhang_nt= 4misseddiffersenzymes.EcoRV.cuts_top_after_bp= [27]misseddiffersenzymes.EcoRV.cuts_bottom_after_bp= [27]misseddiffersenzymes.EcoRV.overhang_type= bluntmisseddiffersenzymes.EcoRV.overhang_nt= 0misseddifferscuts.1.overhang= TGCAmisseddifferssingle_cutters= ["EcoRI", "PstI", "EcoRV"]["EcoRI", "PstI", "EcoRV"]lockedexact matchr0006degenerate site matches every expansion: HincII GTY^RAC cuts GTCAAC, GTCGAC, GTTAAC, GTTGAC (sites at 5, 15, 25, 35: cuts after 7, 17, 27, 37) and not the near miss GTAAAC at 45; SalI G^TCGAC cuts only the second (after 15), HpaI GTT^AAC only the third (after 27, shared with HincII); 5 distinct cuts, fragments 7, 8, 2, 10, 10, 17 bp summing to 54 (exact counts)passed
enzymes.HincII.n_cuts= 4misseddiffersenzymes.HincII.cuts_top_after_bp= [7, 17, 27, 37]misseddiffersenzymes.HincII.overhang_type= bluntmisseddiffersenzymes.SalI.cuts_top_after_bp= [15]misseddiffersenzymes.SalI.cuts_bottom_after_bp= [19]misseddiffersenzymes.HpaI.cuts_top_after_bp= [27]misseddiffersn_cuts= 55lockedexact matchn_fragments= 66lockedexact matchfragments_in_order_bp= [7, 8, 2, 10, 10, 17][7, 8, 2, 10, 10, 17]lockedexact matchsum_fragments_bp= 5454lockedexact matchsingle_cutters= ["SalI", "HpaI"]["SalI", "HpaI"]lockedexact matchr0007type IIS enzyme from its definition GGTCTC(1/5), on both strands of a linear 52-mer: the forward site at 11-16 cuts 1 nt past it on top (after 17) and 5 nt past on the bottom (after 21); the reverse-strand site (GAGACC on top at 37-42) cuts 5 nt before it on top (after 31) and 1 nt before on the bottom (after 35); 4-nt 5' overhangs; fragments 17, 14, 21 bp (exact counts)passed
n_cuts= 22lockedexact matchenzymes.BsaI.palindromic= falsemisseddiffersenzymes.BsaI.cuts_top_after_bp= [17, 31]misseddiffersenzymes.BsaI.cuts_bottom_after_bp= [21, 35]misseddiffersenzymes.BsaI.overhang_type= 5'misseddiffersenzymes.BsaI.overhang_nt= 4misseddifferscuts.0.strand= +misseddifferscuts.1.strand= -misseddiffersfragments_in_order_bp= [17, 14, 21][17, 14, 21]lockedexact matchsum_fragments_bp= 5252lockedexact matchr0008custom site X=GG^CC against built-in HaeIII (GG^CC, blunt) on a linear 20-mer with GGCC at 5 and 14: both cut after 6 and 15, 2 distinct cuts, fragments 6, 9, 5 bp (exact counts)passed
n_enzymes= 22lockedexact matchn_cuts= 22lockedexact matchenzymes.HaeIII.cuts_top_after_bp= [6, 15]misseddiffersenzymes.X.cuts_top_after_bp= [6, 15]misseddiffersenzymes.X.cuts_bottom_after_bp= [6, 15]misseddiffersenzymes.X.overhang_type= bluntmisseddiffersfragments_in_order_bp= [6, 9, 5][6, 9, 5]lockedexact matchsum_fragments_bp= 2020lockedexact matchr0009IUPAC N in a site, by hand: HinfI G^ANTC on a linear 54-mer with GAATC, GACTC, GAGTC, GATTC starting at bases 5, 15, 25, 35 (all four expansions of N) and the near miss GAAATC at 45: top cuts after 5, 15, 25, 35, bottom after 8, 18, 28, 38 (3-nt 5' overhangs AAT, ACT, AGT, ATT); fragments 5, 10, 10, 10, 19 bp (exact counts)passed
n_cuts= 44lockedexact matchenzymes.HinfI.cuts_top_after_bp= [5, 15, 25, 35]misseddiffersenzymes.HinfI.cuts_bottom_after_bp= [8, 18, 28, 38]misseddiffersenzymes.HinfI.overhang_type= 5'misseddiffersenzymes.HinfI.overhang_nt= 3misseddifferscuts.0.overhang= AATmisseddifferscuts.1.overhang= ACTmisseddifferscuts.2.overhang= AGTmisseddifferscuts.3.overhang= ATTmisseddiffersfragments_in_order_bp= [5, 10, 10, 10, 19][5, 10, 10, 10, 19]lockedexact matchsum_fragments_bp= 5454lockedexact matchr0010reverse-strand cuts of non-palindromic sites, by hand from the definitions, linear 40-mer: ACTGG(1/-1) (top cut 1 nt past the site, bottom 1 nt inside it; 2-nt 3' overhang) lies on the bottom strand where the top reads CCAGT at 13-17, so the top strand is cut after 13 and the bottom after 11; the same enzyme written ACTG_GN^ must agree; built-in SapI GCTCTTC(1/4) lies on the bottom strand where the top reads GAAGAGC at 26-32: top cut 4 nt before it (after 21), bottom 1 nt before it (after 24), 3-nt 5' overhang; fragments 13, 8, 19 bp (exact counts)passed
n_enzymes= 33lockedexact matchn_cuts= 22lockedexact matchenzymes.X.palindromic= falsemisseddiffersenzymes.X.cuts_top_after_bp= [13]misseddiffersenzymes.X.cuts_bottom_after_bp= [11]misseddiffersenzymes.X.overhang_type= 3'misseddiffersenzymes.X.overhang_nt= 2misseddiffersenzymes.Y.cuts_top_after_bp= [13]misseddiffersenzymes.Y.cuts_bottom_after_bp= [11]misseddiffersenzymes.Y.overhang_type= 3'misseddiffersenzymes.Y.overhang_nt= 2misseddiffersenzymes.SapI.cuts_top_after_bp= [21]misseddiffersenzymes.SapI.cuts_bottom_after_bp= [24]misseddiffersenzymes.SapI.overhang_type= 5'misseddiffersenzymes.SapI.overhang_nt= 3misseddifferscuts.0.strand= -misseddifferscuts.0.overhang= TCmisseddifferscuts.2.strand= -misseddifferscuts.2.overhang= TTTmisseddiffersfragments_in_order_bp= [13, 8, 19][13, 8, 19]lockedexact matchsum_fragments_bp= 4040lockedexact matchsingle_cutters= ["SapI", "X", "Y"]["SapI", "X", "Y"]lockedexact matchr0011non-palindromic site across the origin of a 30-bp circle, by hand: BsaI GGTCTC(1/5) with GGT at bases 28-30 and CTC at 1-3; the top cut is 1 nt past the site (after base 4), the bottom 5 nt past (after base 8), overhang bases 5-8 = ACGT; one cut opens the circle to one 30-bp fragment (exact counts)passed
n_cuts= 11lockedexact matchn_fragments= 11lockedexact matchfragments_bp= [30][30]lockedexact matchenzymes.BsaI.cuts_top_after_bp= [4]misseddiffersenzymes.BsaI.cuts_bottom_after_bp= [8]misseddiffersenzymes.BsaI.overhang_type= 5'misseddiffersenzymes.BsaI.overhang_nt= 4misseddifferscuts.0.strand= +misseddifferscuts.0.site_start_bp= 28misseddifferscuts.0.overhang= ACGTmisseddifferssingle_cutters= ["BsaI"]["BsaI"]lockedexact matchr0012ambiguous bases in the sequence, by the rule that every expansion must fit, linear 33-mer: GANTC at 5 is a HinfI site whatever N is (cut after 5, bottom after 8); GRATTC at 14 is not an EcoRI site (GGATTC is not); GAATTC at 24 is (cut after 24); fragments 5, 19, 9 bp (exact counts)passed
n_cuts= 22lockedexact matchenzymes.HinfI.cuts_top_after_bp= [5]misseddiffersenzymes.HinfI.cuts_bottom_after_bp= [8]misseddiffersenzymes.EcoRI.cuts_top_after_bp= [24]misseddiffersenzymes.EcoRI.cuts_bottom_after_bp= [28]misseddiffersfragments_in_order_bp= [5, 19, 9][5, 19, 9]lockedexact matchsum_fragments_bp= 3333lockedexact match
Each line is one reading the kernel checked. The bright band is the tolerance; the needle is the value the instrument actually returned when it was admitted. A needle near the centre line used little of its tolerance.
Inputs
| Name | Unit | Default | Meaning |
|---|---|---|---|
sequence | DNA, plain or one FASTA or GenBank record; A C G T (U read as T) and IUPAC codes; white space and digits are ignored. Up to 5 000 000 bases. A second FASTA record is refused. An ambiguous base matches a site only if every expansion fits. | ||
sequence_file | A staged FASTA, GenBank or plain-text file with one sequence, used when sequence is empty. | ||
topology | linear | circular: sites across the origin are found and n cuts give n fragments. | |
enzymes | ["EcoRI", "BamHI", "HindIII"] | Built-in enzyme names (case ignored), or ["all"] for every built-in one. | |
custom_sites | [] | Extra sites as "Name=SITE": IUPAC letters with ^ at the top-strand cut (G^AATTC), _ at the bottom-strand cut for a non-palindromic site (GAGTCNNNN^N_), or SITE(a/b) for cuts a and b bases past the site on top and bottom strand (GGTCTC(1/5)). | |
resolution_pct | % | 5 | Fragments whose sizes differ by less than this share of the larger one are reported as one gel band. |
Readings
| Name | Unit | Meaning |
|---|---|---|
length_bp | 1 | sequence length, base pairs |
gc_percent | % | |
n_enzymes | 1 | |
n_cuts | 1 | distinct top-strand cut positions, all enzymes together |
n_fragments | 1 | 0 for an uncut circle |
fragments_bp | 1 | combined digest, largest first, base pairs |
fragments_in_order_bp | 1 | combined digest in map order, base pairs |
sum_fragments_bp | 1 | |
largest_fragment_bp | 1 | |
smallest_fragment_bp | 1 | |
n_bands | 1 | |
enzymes | Per enzyme alone: site, cuts as 'after base p' (1-based, top-strand numbering) on each strand, overhang, its own fragments largest first. | |
cuts | Every cut in map order (first 2000; all in out/cuts.csv). strand: + site on top, - on bottom, both palindromic. | |
fragments | Combined digest in map order (first 2000; all in out/fragments.csv). | |
gel | Bands largest first; mass_fraction is the share of the DNA in the band. | |
files | out/cuts.csv, out/fragments.csv, out/gel.csv |
Try the call
Change a value and the command updates. Nothing runs here; paste it into your terminal or give it to your agent.