Prepare and check short reads
Use Local Jobs → New job → Short-read preparation for conventional Phred+33 DNA or bulk RNA reads. Choose a four-line FASTQ or FASTQ.gz. For paired reads, select Paired-end reads and provide R1 and R2 in the same record order. Supported pair names are identical primary names, primary names ending in /1 and /2, CASAVA read indicators, and SRA spot names with original /1 and /2 read indicators. Reversed roles, out-of-order names, missing records and corrupt gzip are refused. Use separate mate files. Interleaved, ONT and libraries that need UMI/barcode extraction or specialized processing are outside this workflow.
- QC only; no trimming collects metrics from the original reads.
- Already preprocessed also keeps the reads intact. Record the previous tool and settings if known, or enter “unknown.”
- Trim explicit adapters requires the adapter in read orientation for each supplied mate. fastp uses overlap trimming for pairs (minimum 30 bases, at most five differences and 20% mismatches) and its sequence matching rules. The pinned sequence matcher can trim an internal match; it does not guarantee that all adapter-like inserts are preserved. There is no automatic kit detection. Choose optional length and quality thresholds. If one mate fails, the pair is removed. Correction, merging, deduplication and automatic poly-G trimming are off.
The selected mode, options, input hashes, executable version and SHA-256 are recorded. Trimming creates derived reads; the original inputs remain unchanged. Read and base totals, length/Phred/GC distributions, fastp per-cycle means and filter counts are separate artifacts. Paired filter reason counts are in reads with the pair's disposition assigned to both mates. Open or export the offline HTML report from the completed job. The JSON report and numerical TSV can be used separately. The original fastp HTML is retained as text because it references network scripts. This report is complementary to Xihl's existing FASTQ QC. It does not reproduce FastQC or establish that a sample is usable.
Mapping and RNA diagnostics
Choose DNA short reads or RNA-seq to include the preparation step before mapping. Leave the option off for the earlier workflow. Paired DNA is submitted to minimap2 as a single pair of files, using its short-read preset. Native per-base depth counts reads, so overlap between mates can contribute twice. Depth is not a count of independent fragments. The mapping result distinguishes primary reads from all BAM records. The DNA endpoint is indexed BAM and coverage.
RNA uses one-pass unique STAR mapping and the GeneCounts column you select. Its endpoint remains indexed BAM and raw integer counts, in fragment units for paired libraries. To add alignment diagnostics, configure RNA-SeQC 2.4.2 separately and supply a matching GTF. The diagnostics use one collapsed exon union per gene, with explicit strand and biotype. RNA-SeQC's own expression counts do not replace STAR GeneCounts.
The strand evidence uses eligible unambiguous read-one alignments. At least 100 informative reads are required; at least 90% sense or at most 10% sense supports the corresponding strand, 40–60% is compatible with unstranded, and other results are indeterminate. The report warns when this evidence contradicts the chosen column. It never changes the selected count column. The rRNA result depends on supplied gene biotypes and is unavailable when no rRNA genes are annotated. Gene-body bias uses RNA-SeQC's eligible expressed genes and explicit 150-base offset, 100-base windows and 600-base minimum gene length. With no eligible coverage, the report shows unavailable.
An optional local contaminant panel screens up to 100,000 original reads against up to 10 MB of reference FASTA. Record the source, version and rights. Each read is screened independently with minimap2. A mapped primary alignment with MAPQ at least 20 is counted as a panel match, a lower score as ambiguous, and an unmapped read as no panel match. This is a screen for selected targets, with no automatic download or removal. A sample can still contain other contaminants.
CLI and MCP
From the companion guide's examples directory, run:
dna-cli workflow-plan --request read-preparation.json
dna-cli workflow-run --request read-preparation.json
Choose a fresh output directory if repeating the example. The bundled example uses the package's checked fastp; for an unbundled app, provide an absolute path to fastp 1.4.0. Two reads and 12 bases should appear both before and after, with no derived FASTQ in the no-trimming mode. The output descriptor lists the HTML, JSON and TSV paths. See local MCP setup for access to the equivalent xihl_workflow_plan and xihl_workflow_run operations, with an explicit write grant for a run. When configured separately, give MCP the exact tool executable as a startup grant (fastp, rnaseqc, or minimap2 as appropriate).
Methods: Chen 2025, Chen et al. 2018, Graubert et al. 2021.