Add a reference genome and annotation
Guide contents · Tools · Formats
Xihl Editor does not bundle genomes or download them for you. Keep your own reference files in a stable user-data directory, outside the application bundle and source checkout. For example:
~/BioData/NCBI/GCF_000001405.40_GRCh38/
GRCh38_genomic.fna
genomic.gff
source.txt
Use the assembly accession and release in the folder name. Keep the original FASTA, matching GFF3 or GTF, provider metadata, available checksums, and the data's terms together. Preserve a copy of provider README/metadata when supplied. Keep generated indexes/cache separate from original inputs. Project manifests store lightweight source descriptors and paths; they do not embed genome or annotation contents. Analysis results and exports are separate artifacts.
Choose matching files
Start from the organism's official source. NCBI Datasets can package a selected assembly with genome FASTA, annotation and assembly metadata; its package reference describes those files and includes a checksum list. Ensembl's FTP index offers assembly FASTA and gene-set files. For another organism or curated reference, prefer its official genome project.
Choose one assembly/version and pair its genomic FASTA with annotation made for that same assembly. Compare contig names as well as assembly labels: 1, chr1, and an accession-style contig are different names to the browser. The application does not repair mismatched naming or prove an annotation belongs to a FASTA. Save accession, provider release, download date and provider checksums where available. Review the provider's data terms; availability for download does not mean every file has identical reuse or redistribution terms.
The current Genome Viewer file pickers accept plain, uncompressed reference FASTA .fa, .fasta, or .fna and annotation .gff, .gff3, .gtf, or BED. Reference/annotation indexing does not accept .gz inputs. VCF is inspectable as a plain indexed .vcf; VCF creation is deferred. BAM/CRAM track loading has separate index/reference requirements described in the panel. These compact synthetic workflows do not establish a genome-size capacity promise.
GUI: index and save
- Create or open a project. In Genome Viewer, expand Add sources, then choose the existing FASTA and matching annotation files in the Reference FASTA and Annotation fields.
- Set the thread and memory values for this indexing job, then select Index Reference FASTA and Index Annotation. Wait for both local jobs to complete. In a managed project, generated indexes are written to its cache area; the form's output-directory fallback is used only for a standalone session.
- Set a contig and range in the browser. Inspect the displayed reference sequence and overlapping annotation rows, then save the project. The project retains source paths, descriptors, workflow/provenance metadata and its managed workspace; the source files remain where you placed them.
- Reopen the project and use Reload Reference Source and Reload Track Source when a source descriptor is present but its index is not loaded. Rebuild from Source explicitly adopts changed source content. Save after rebuilding if you want that new identity in the project.
Indexing an existing path links it; it does not copy the original into project inputs or register it in the separate Projects → Add workflow inputs list. Leave enough free space for the reference/annotation indexes and the workflow's declared temporary/output needs. Xihl Editor uses bounded worker admission but does not reserve disk space on the operating system. Do not delete cache contents by hand to free space.
CLI: index, register, query
The executable is still named dna-cli. Use dna-cli --help for the current command list. The simple index commands produce JSON reports but do not attach results to a project:
dna-cli reference-index --input "$HOME/BioData/NCBI/GCF_000001405.40_GRCh38/GRCh38_genomic.fna" --output-dir "$HOME/BioData/indexes/grch38-reference" --threads 1 --memory-mb 64
dna-cli annotation-index --input "$HOME/BioData/NCBI/GCF_000001405.40_GRCh38/genomic.gff" --output-dir "$HOME/BioData/indexes/grch38-annotation" --threads 1 --memory-mb 64
To make the outputs available through a saved project, run each typed workflow, register its completed descriptor with the project's current saved revision, then query. This small reference/annotation example uses the reviewed synthetic 2 kb fixture; its GFF3 toy_gene row is written as 1-based inclusive 1211–1260 and the browser/query interval is 0-based half-open [1210,1260):
mkdir -p /tmp/xihl-reference-review
dna-cli project-create --parent /tmp/xihl-reference-review --name "Reference review"
Use the project path returned by project-create below. Create reference-request.json with the actual absolute FASTA and a new output directory:
{"schema_version":1,"request":{"ReferenceIndex":{"fasta_path":"/absolute/path/reference.fa","output_dir":"/absolute/path/reference-index","cpu_threads":1,"memory_limit_mb":64}}}
Then run and register the descriptor (repeat with AnnotationIndex, field annotation_path, and the matching GFF3/GTF):
dna-cli workflow-run --request reference-request.json --descriptor-out reference-completed.json
dna-cli project-inspect --project /tmp/xihl-reference-review/Reference\ review/project.json
dna-cli workflow-register --project "/tmp/xihl-reference-review/Reference review/project.json" --descriptor reference-completed.json --expected-revision REVISION_FROM_PROJECT_INSPECT --update
dna-cli reference-query --project "/tmp/xihl-reference-review/Reference review/project.json" --contig chrSynthetic --start 1210 --end 1260
dna-cli track-query --project "/tmp/xihl-reference-review/Reference review/project.json" --track-id TRACK_ID_FROM_PROJECT_JSON --contig chrSynthetic --start 1210 --end 1260
The example's independent expected result is 50 A bases and one toy_gene row with start: 1210, end: 1260. workflow-register checks the expected project revision. Do not copy the placeholder values literally; use the actual paths, saved revision and track ID from the previous command or project response.
To query the reads from a completed mapping job registered in a saved project, use the job ID instead of a track ID. This checks the same published BAM, BAI and exact FASTA as the desktop handoff, independent of the project's current viewer reference.
dna-cli track-query --project /path/to/project.json --job-id JOB_ID --contig CONTIG --start 0 --end 1000
The result identifies its coordinate space. Nanopore uses the doubled mapping reference in this query, and its separate projected coverage TSV uses original plasmid coordinates. When opening your own reference, Index Reference FASTA in Genome Viewer builds an index for the chosen FASTA. Derive FASTA/GFF3 creates new files from the selected editable document.
Relocation and source changes
Move a managed workspace as a whole, including hidden files and its artifact/cache directories. Keep externally linked FASTA/GFF/GTF files at their original paths if you want saved links to work after the move. Moving an external source does not make the project discover it at the new location. A missing or changed linked source is reported; the saved manifest is not silently rewritten. Restore the source at its recorded path, or use the UI's supported rebuild flow to adopt changed content and save. There is no generic relink operation. Do not hand-edit project JSON. A managed Save As needs a prepared destination workspace, not just an empty destination folder.
RNA counts and variants
STAR is optional, external software that the user installs and configures by path. The existing bulk RNA-seq workflow writes a raw per-sample gene-count TSV. After a completed run, open Local Jobs, select its result and use the Gene-count TSV artifact path (or inspect the saved job output descriptor). Choose the library's strandedness before the run; the report records the selected STAR GeneCounts column. Counts are STAR raw unique-mapping counts, not normalized abundance estimates, merged matrices, differential-expression results, or arbitrary-BAM recounts. The legacy TSV schema header remains dna-editor-gene-counts-v1 for compatibility.
Genome Viewer can inspect supported plain VCF records. It does not call variants or create VCF files. VCF creation remains deferred.