Xihl Editor v0.3 · macOS ARM64
XIHL / Editor

Quick start: your first project

Guide contents · Editor · Storage

A project saves your work: editable DNA records, settings, history and references to inputs and results. A managed project gives that work its own folder. Xihl keeps copied inputs and generated files in that folder; linked files stay where they are. The project file, project.json, does not hold large reads, references or alignments.

A sequence feature is an annotation on the DNA. It has a location, a strand (forward, reverse or unspecified), a type such as gene or coding sequence, and usually a label. Features belong to a sequence record. The separate app-wide feature library holds reusable definitions you can search for in many records.

How to organize your projects

Each folder with a project.json is one managed project. Create a named Workspace to browse files and saved features across related projects.

Independent user

Keep your managed projects together under one parent folder.

  • Xihl workspace/
    • Plasmid library/
      • project.json
      • inputs/
    • Sequencing check/
      • project.json
      • reports/
Student

Use a parent folder for each lab or class and a managed project for each piece of work.

  • Research lab/
    • Thesis/
      • project.json
      • inputs/
    • Collaboration/
      • project.json
  • Genetics class/
    • Course project/
      • project.json
      • results/
Team or client

Give each team or client a parent folder, with a separate managed project per task.

  • Client A/
    • Plasmid review/
      • project.json
      • inputs/
    • Read quality review/
      • project.json
      • reports/

Desktop: open an annotated plasmid

Use pBR322, a 4,361-base circular cloning vector. Download the annotated GenBank file for accession J01749.1 from NCBI and save it as pBR322.gb. The FASTA version has bases but no annotations. See the example notes for the source and expected record. Once you have the file, the walkthrough works offline and needs no optional tools.

  1. Open Projects / Files…. In the Project tab, choose New project…. In v0.1, this button is labeled New managed project…. Choose an existing Parent folder and enter a new Project name, such as First project. Check Final directory, then choose Create project.
  2. Leave Copy into inputs (recommended) selected. Choose Import sequence… and select pBR322.gb. Look for a circular record with 4,361 bases and 50 features. Xihl puts a copy under the project's inputs/ folder and leaves the download in place. Keep external link instead keeps a reference to the original file at its current path.
  3. Close the project panel and open Map. Select a visible feature. Switch to Sequence to see the corresponding range; Features shows the annotation's type, strand and location. For example, look for the coding sequence labeled ROP protein.
  4. In Sequence → Edit DNA, set Start and End to 1, then choose Select range. The fields count bases starting at 1 and include both ends. Enter A in the replacement field and choose Replace selection. Read Confirm DNA edit, including any annotation changes, then choose Apply edit. The first base changes from T to A; the length stays at 4,361.
  5. Use the sidebar Undo button. Check that the first base is T again. Save Project records the workspace and its history. Wait for Saved / unchanged and the successful save message.
  6. In Projects / Files…, choose Open project… and select the new folder's project.json. Check that the circular record and its annotations are still there. The reopened project has a fresh Undo/Redo stack.
  7. Under Selected record, choose Export GenBank copy…. Save a new file named pBR322-copy.gb, using a path distinct from the original. The copy has the bases, circular topology and annotations; project settings and history stay in the project. If a destination already exists, choose a new name.

To back up your work, save the project, let any jobs finish, and copy the whole managed project folder. Back up any linked sources and your app-wide library separately. See Projects and storage for recovery steps, or Prepare an index, then align when you are ready to map reads.

CLI

These commands assume dna-cli is on your PATH and you have saved the example FASTA in the current directory. In a configured source checkout, replace dna-cli with cargo run --offline -p dna-cli --. Choose an existing writable PARENT folder; replace the example paths with your own before running them.

dna-cli inspect --input first-project.fasta
dna-cli project-create --parent PARENT --name "First project"
dna-cli project-inspect --project "PARENT/First project/project.json"

The first response has one entry under records, with sequence_length: 16 and feature_count: 0. Creation returns result.project. Project inspection returns result.documents: 0 and an opaque result.saved_revision value.

Copy that exact saved revision into REVISION below; do not use the word REVISION literally or reuse it after another project write:

dna-cli project-import --project "PARENT/First project/project.json" --input first-project.fasta --mode copy --expected-revision REVISION --update
dna-cli project-inspect --project "PARENT/First project/project.json"
dna-cli export --input first-project.fasta --record-index 0 --format genbank --output "PARENT/template.gb"
dna-cli inspect --input "PARENT/template.gb"

The reopened project has one document, and the exported sequence still has 16 bases and zero features. export here reads a sequence file, not a project manifest. An existing export destination is refused with exit code 4 unless overwrite is explicitly requested. A stale project revision is a conflict: reload and inspect the changed project rather than bypassing its revision guard.

To repeat the example, choose a new project name and unused export filename. Keep the original fixture and earlier projects so you can compare the results.