Invntr
Source

All instruments

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

Admission replayrestriction_map 0.1.0 · files 23d9163416eb…c670
  1. 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 match
    n_cuts= 22lockedexact match
    n_fragments= 33lockedexact match
    fragments_in_order_bp= [11, 26, 13][11, 26, 13]lockedexact match
    sum_fragments_bp= 5050lockedexact match
    enzymes.EcoRI.cuts_top_after_bp= [11, 37]misseddiffers
    enzymes.EcoRI.cuts_bottom_after_bp= [15, 41]misseddiffers
    enzymes.EcoRI.overhang_type= 5'misseddiffers
    enzymes.EcoRI.overhang_nt= 4misseddiffers
    enzymes.EcoRI.palindromic= truemisseddiffers
    cuts.0.overhang= AATTmisseddiffers
    non_cutters= [][]lockedexact match
    single_cutters= [][]lockedexact match
  2. r0002the 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 match
    n_fragments= 22lockedexact match
    fragments_bp= [26, 24][26, 24]lockedexact match
    sum_fragments_bp= 5050lockedexact match
    enzymes.EcoRI.cuts_top_after_bp= [11, 37]misseddiffers
  3. r0003site 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 match
    n_fragments= 11lockedexact match
    fragments_bp= [20][20]lockedexact match
    enzymes.EcoRI.cuts_top_after_bp= [20]misseddiffers
    enzymes.EcoRI.cuts_bottom_after_bp= [4]misseddiffers
    cuts.0.overhang= AATTmisseddiffers
    single_cutters= ["EcoRI"]["EcoRI"]lockedexact match
  4. r0004the 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 match
    n_fragments= 11lockedexact match
    fragments_bp= [20][20]lockedexact match
    non_cutters= ["EcoRI"]["EcoRI"]lockedexact match
  5. r0005overhang 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 match
    n_fragments= 44lockedexact match
    fragments_in_order_bp= [5, 14, 8, 7][5, 14, 8, 7]lockedexact match
    fragments_bp= [14, 8, 7, 5][14, 8, 7, 5]lockedexact match
    sum_fragments_bp= 3434lockedexact match
    enzymes.EcoRI.cuts_top_after_bp= [5]misseddiffers
    enzymes.EcoRI.cuts_bottom_after_bp= [9]misseddiffers
    enzymes.EcoRI.overhang_type= 5'misseddiffers
    enzymes.EcoRI.overhang_nt= 4misseddiffers
    enzymes.PstI.cuts_top_after_bp= [19]misseddiffers
    enzymes.PstI.cuts_bottom_after_bp= [15]misseddiffers
    enzymes.PstI.overhang_type= 3'misseddiffers
    enzymes.PstI.overhang_nt= 4misseddiffers
    enzymes.EcoRV.cuts_top_after_bp= [27]misseddiffers
    enzymes.EcoRV.cuts_bottom_after_bp= [27]misseddiffers
    enzymes.EcoRV.overhang_type= bluntmisseddiffers
    enzymes.EcoRV.overhang_nt= 0misseddiffers
    cuts.1.overhang= TGCAmisseddiffers
    single_cutters= ["EcoRI", "PstI", "EcoRV"]["EcoRI", "PstI", "EcoRV"]lockedexact match
  6. r0006degenerate 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= 4misseddiffers
    enzymes.HincII.cuts_top_after_bp= [7, 17, 27, 37]misseddiffers
    enzymes.HincII.overhang_type= bluntmisseddiffers
    enzymes.SalI.cuts_top_after_bp= [15]misseddiffers
    enzymes.SalI.cuts_bottom_after_bp= [19]misseddiffers
    enzymes.HpaI.cuts_top_after_bp= [27]misseddiffers
    n_cuts= 55lockedexact match
    n_fragments= 66lockedexact match
    fragments_in_order_bp= [7, 8, 2, 10, 10, 17][7, 8, 2, 10, 10, 17]lockedexact match
    sum_fragments_bp= 5454lockedexact match
    single_cutters= ["SalI", "HpaI"]["SalI", "HpaI"]lockedexact match
  7. r0007type 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 match
    enzymes.BsaI.palindromic= falsemisseddiffers
    enzymes.BsaI.cuts_top_after_bp= [17, 31]misseddiffers
    enzymes.BsaI.cuts_bottom_after_bp= [21, 35]misseddiffers
    enzymes.BsaI.overhang_type= 5'misseddiffers
    enzymes.BsaI.overhang_nt= 4misseddiffers
    cuts.0.strand= +misseddiffers
    cuts.1.strand= -misseddiffers
    fragments_in_order_bp= [17, 14, 21][17, 14, 21]lockedexact match
    sum_fragments_bp= 5252lockedexact match
  8. r0008custom 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 match
    n_cuts= 22lockedexact match
    enzymes.HaeIII.cuts_top_after_bp= [6, 15]misseddiffers
    enzymes.X.cuts_top_after_bp= [6, 15]misseddiffers
    enzymes.X.cuts_bottom_after_bp= [6, 15]misseddiffers
    enzymes.X.overhang_type= bluntmisseddiffers
    fragments_in_order_bp= [6, 9, 5][6, 9, 5]lockedexact match
    sum_fragments_bp= 2020lockedexact match
  9. r0009IUPAC 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 match
    enzymes.HinfI.cuts_top_after_bp= [5, 15, 25, 35]misseddiffers
    enzymes.HinfI.cuts_bottom_after_bp= [8, 18, 28, 38]misseddiffers
    enzymes.HinfI.overhang_type= 5'misseddiffers
    enzymes.HinfI.overhang_nt= 3misseddiffers
    cuts.0.overhang= AATmisseddiffers
    cuts.1.overhang= ACTmisseddiffers
    cuts.2.overhang= AGTmisseddiffers
    cuts.3.overhang= ATTmisseddiffers
    fragments_in_order_bp= [5, 10, 10, 10, 19][5, 10, 10, 10, 19]lockedexact match
    sum_fragments_bp= 5454lockedexact match
  10. r0010reverse-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 match
    n_cuts= 22lockedexact match
    enzymes.X.palindromic= falsemisseddiffers
    enzymes.X.cuts_top_after_bp= [13]misseddiffers
    enzymes.X.cuts_bottom_after_bp= [11]misseddiffers
    enzymes.X.overhang_type= 3'misseddiffers
    enzymes.X.overhang_nt= 2misseddiffers
    enzymes.Y.cuts_top_after_bp= [13]misseddiffers
    enzymes.Y.cuts_bottom_after_bp= [11]misseddiffers
    enzymes.Y.overhang_type= 3'misseddiffers
    enzymes.Y.overhang_nt= 2misseddiffers
    enzymes.SapI.cuts_top_after_bp= [21]misseddiffers
    enzymes.SapI.cuts_bottom_after_bp= [24]misseddiffers
    enzymes.SapI.overhang_type= 5'misseddiffers
    enzymes.SapI.overhang_nt= 3misseddiffers
    cuts.0.strand= -misseddiffers
    cuts.0.overhang= TCmisseddiffers
    cuts.2.strand= -misseddiffers
    cuts.2.overhang= TTTmisseddiffers
    fragments_in_order_bp= [13, 8, 19][13, 8, 19]lockedexact match
    sum_fragments_bp= 4040lockedexact match
    single_cutters= ["SapI", "X", "Y"]["SapI", "X", "Y"]lockedexact match
  11. r0011non-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 match
    n_fragments= 11lockedexact match
    fragments_bp= [30][30]lockedexact match
    enzymes.BsaI.cuts_top_after_bp= [4]misseddiffers
    enzymes.BsaI.cuts_bottom_after_bp= [8]misseddiffers
    enzymes.BsaI.overhang_type= 5'misseddiffers
    enzymes.BsaI.overhang_nt= 4misseddiffers
    cuts.0.strand= +misseddiffers
    cuts.0.site_start_bp= 28misseddiffers
    cuts.0.overhang= ACGTmisseddiffers
    single_cutters= ["BsaI"]["BsaI"]lockedexact match
  12. r0012ambiguous 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 match
    enzymes.HinfI.cuts_top_after_bp= [5]misseddiffers
    enzymes.HinfI.cuts_bottom_after_bp= [8]misseddiffers
    enzymes.EcoRI.cuts_top_after_bp= [24]misseddiffers
    enzymes.EcoRI.cuts_bottom_after_bp= [28]misseddiffers
    fragments_in_order_bp= [5, 19, 9][5, 19, 9]lockedexact match
    sum_fragments_bp= 3333lockedexact match
12 of 12 cases passed · sandbox macos-seatbeltrecorded from the kernel in a fresh lab

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

NameUnitDefaultMeaning
sequenceDNA, 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_fileA staged FASTA, GenBank or plain-text file with one sequence, used when sequence is empty.
topologylinearcircular: 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%5Fragments whose sizes differ by less than this share of the larger one are reported as one gel band.

Readings

NameUnitMeaning
length_bp1sequence length, base pairs
gc_percent%
n_enzymes1
n_cuts1distinct top-strand cut positions, all enzymes together
n_fragments10 for an uncut circle
fragments_bp1combined digest, largest first, base pairs
fragments_in_order_bp1combined digest in map order, base pairs
sum_fragments_bp1
largest_fragment_bp1
smallest_fragment_bp1
n_bands1
enzymesPer enzyme alone: site, cuts as 'after base p' (1-based, top-strand numbering) on each strand, overhang, its own fragments largest first.
cutsEvery cut in map order (first 2000; all in out/cuts.csv). strand: + site on top, - on bottom, both palindromic.
fragmentsCombined digest in map order (first 2000; all in out/fragments.csv).
gelBands largest first; mass_fraction is the share of the DNA in the band.
filesout/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.

Terminal
MCP call