Xihl Editor v0.3 · macOS ARM64
XIHL / Editor

Sequence and annotation editor

Guide contents · First project · Storage

Choose a record in Loaded Records. Its name, length, topology and feature count appear in the sidebar. Sequence, Features and Map show related views of that record; select a feature or base range to inspect the corresponding data. The selected record matters when starting an analysis or judging whether a saved result is current.

Select and edit DNA

In Sequence, use Start, End and Select range, or the displayed selection gestures. DNA-edit fields use 1-based, inclusive positions: 1–1 selects the first base. Cursor before Start creates an insertion position. Headless/internal intervals use 0-based, half-open ranges; do not copy numbers between these conventions without conversion.

Enter IUPAC DNA in the replacement field, then choose Insert before selection, Replace selection or Delete selection. Review Confirm DNA edit before applying. Deletions/replacements clip overlapping annotations to surviving original bases; replacement bases remain unannotated. Features after the edit move with their original bases. An edit affecting stored translations can require explicit removal of stale translations. Read the impact rather than assuming an annotation remains biologically valid after an arbitrary edit.

Undo and Redo include document/feature edits. On macOS, Cmd-Z and Shift-Cmd-Z are shortcuts, but a focused text field may handle its own text undo. Use the visible sidebar buttons when you intend document undo. Session undo is separate from saved history; see projects.

Rotate origin is available for nonempty circular records. Reverse-complement document changes the whole record, remapping supported feature/primer positions, strands and stored restriction-site coordinates. Both are undoable. They are different from displaying the opposite strand or requesting a reverse-complement subsequence. Check saved analyses for stale source revisions after either transform.

Find motifs and inspect features

Find motif accepts IUPAC DNA. Matches overlap and ambiguity symbols match when their possible bases intersect. Also reverse complement searches both orientations; a palindromic motif is reported once. Use Previous match and Next match to move through results. This is literal/ambiguity motif matching, not a genome alignment or BLAST search.

In Features, use Add, Edit or Delete. The form exposes feature type/ key, label, strand and locations. Create feature from selection starts from a DNA range. Review the location and strand before Save Feature. Circular features may cross the origin; joined and strand-aware locations carry semantics beyond a single visual span. Preserve these when exporting or editing annotations.

Map provides molecule context, feature selection, zoom and Fit molecule. A range selected in Sequence is highlighted on both maps. Joined selections keep their gaps, including across the circular origin. Select a feature on either map or in the feature list to inspect its location. The list retains the full names when map labels would overlap. The linear ruler, tracks and feature bars follow the same displayed viewport during drag and zoom.

With Restriction sites visible, Map calculates sites in the background. The default 1 or 2 cuts filter shows supported cutters. Change the cut count or search by name or alias in Restriction. With any explicit enzyme selection, both maps show those enzymes, including choices hidden by the current filter. Removing the last selection or using Clear all restores the filtered view.

Marks show forward-reference cut positions separately for the top and bottom strands. When marks are close together, the maps group them. Zoom or open Inspect restriction sites for names, recognition spans, and exact interbase cut offsets. The inspector distinguishes recognition-only evidence, such as unsupported cleavage or cuts outside a linear record, from supported cuts. A selected enzyme can have zero sites.

Use Select all matching to add the filtered set to the digest selection. Predict digest uses only explicit selections and updates the prediction lane. Opening Map and changing filters leave the selection and gel alone.

Global feature library

The app library stores reusable feature definitions separately from individual projects. In Cloning, expand App-wide feature library / Detect features. Use Load library for the selected local store. Add/update an entry with its name/stable ID, type, sequence and source/license fields, then Create / update entry. Edit fields, Disable/Enable and Remove act on the library; Export library JSON writes a separate portable bundle. Import feature catalog… imports supported catalog JSON with its provenance. Review matching suggestions before Accept (Undo available) in the selected document. Detect features from App Library… searches the selected sequence using those definitions; inspect proposed positions, strands and source evidence before applying annotations. Saving a detected annotation into a document and changing a library definition are separate actions. A DNA match alone does not establish biological function.

Keep the library and its history in your backup plan. The default macOS path is in storage; headless callers can use an explicit library path. A project does not automatically bundle every global library entry or catalog dependency.

In Features, feature # gives each annotation’s position in the record’s feature list. Select its label to inspect it. Scroll the table horizontally to reach qualifiers and visibility. On a circular map, directional bars point to the end of the annotation on its strand.

In Selected record, choose Linear or Circular to change how Xihl treats the sequence ends. The edit keeps the bases in their current order and can be undone. If an annotation crosses the origin, Xihl refuses a change to linear until its location is resolved. Choose Export GenBank copy… in the same panel to save the selected record with its topology and GenBank feature annotations.

In the CLI, save the edit with document-edit and use the returned saved_revision to export the selected project record. Save {"schema_version":1,"operations":[{"kind":"topology-change","topology":"circular"}]} as topology.json. The topology value also accepts "linear".

dna-cli document-edit --project project.json --record-id RECORD_ID \
  --expected-revision CURRENT_REVISION --request topology.json --update
dna-cli sequence-export --project project.json --record-id RECORD_ID \
  --expected-revision RETURNED_REVISION --format genbank --output circular-copy.gb

Compare, Sanger Trace, Protein / ORFs, Molecular Analytics and Cloning consume selected sequences and explicit analysis inputs. Their results must be interpreted against the recorded source revision. Local Jobs and Genome Viewer address separate workflow and indexed-data tasks. The reference guide covers large genomes; do not import an entire reference into the plasmid editor to work around a workflow resource refusal.

FASTA exports omit annotations. GenBank is the preferred supported annotated interchange for this guide; it is not a complete copy of workspace history, job state or every source-format field. Limited native .dna import is read-only and can require an explicit loss decision; see native import limits. Preserve the original source and its import warnings.

The top bar also has Projects / Files…, Light, Dark and About. Appearance is an app preference, separate from saved sequence/project content. When changing projects or closing with unsaved work, read the save/discard/cancel guard; cancel keeps the current workspace. Wait for an actual save success rather than assuming a button press committed the file. About/setup information does not turn a local test build into a signed release.

Circular selections and strand ends

In Sequence, drag across bases, or choose an annotation in Sequence or Features. Invert selection selects the remaining single arc of a circular molecule. Invert again to restore the original start and strand. An insertion cursor, full circle, or disconnected selection has no available inversion. Select from end… (Shift-Command-E on Mac, Shift-Ctrl-E elsewhere) takes the entered number of bases inside the selection. The forward strand is initially selected for a manual range. For an oriented annotation the ends follow its strand and skip joined gaps. Return applies the count and Escape cancels. Displayed coordinates are 1-based inclusive. A wrapped selection can go to the primer preview. DNA edits require an unwrapped interval, and the primer preview requires a single continuous arc.

Feature bars in Sequence follow the wrapped bases. Each overlap has its own lane. The arrow shows strand, and hovering a short bar reveals the full label and feature ID. Click a bar to select its feature. In Features, Hide removes that annotation from the Sequence and map drawings. Its row stays in the table with Show. Visibility belongs to the open record and resets when the document reopens.

Name or edit a primer from a selection

In Sequence, choose Save selection as primer…. Molecular Analytics scrolls to Primer from selection and shows the selected bases in their 5′ to 3′ orientation. The map and mini sequence viewer in Sequence context show the source template.

Edit the primer directly in the sequence field. To add a 5′ tail from another Project, open that Project, select its bases in Sequence, and press Ctrl+C (or Command+C on Mac). You can also click Copy selected bases. Reopen the original Project and record, return to Molecular Analytics, and paste at the beginning of the primer. When the original annealing sequence is intact, Xihl recognizes the added prefix as the tail. You can also set the tail length directly. Enter a name and stable ID, then choose Save to primer library. The confirmation names the saved primer. The open draft lasts for this app session. Starting another primer from a selection replaces it.

Structure zoom

Under Protein → Structure, the slider and the wheel over the canvas both cover 0.1× through 10×. Drag to rotate, or use the rotation buttons. Click a visible residue to inspect it. Reset view restores the original orientation and 1× whole-structure view. Both raw previews and associated structures use the extra height when you enlarge the window.