nim-abif

Dataset 4968940

This dataset comes from Zenodo record 4968940 and the related paper High-quality SNPs from genic regions highlight introgression patterns among European white oaks. The raw traces were originally deposited at Dryad record 10.5061/dryad.4mw6m906j.

Description

This dataset contains raw Sanger trace files in AB1 format. The traces come from a European white oak resequencing study. They cover many gene regions from Quercus petraea, Quercus robur, and one Quercus ilex outgroup sample.

The dataset is useful for testing nim-abif at large scale. It can check AB1 parsing, FASTQ export, metadata extraction, chromatogram rendering, and batch quality control.

The raw traces are grouped by locus. Most loci contain forward and reverse reads for each tree and for a negative control.

Get the dataset

Use [download_zenodo_4968940.sh](../tests/download_zenodo_4968940.sh to download and unpack the Zenodo record into ./datasets/4968940`.

bash tests/download_zenodo_4968940.sh datasets/4968940

The script downloads qpqr_ori_ab1_final.zip, checks its MD5 digest, unpacks the raw trace archive, and tries to clone the related Reference.Db.SNPs.Quercus repository into the output directory.

After a successful download, the directory should contain:

datasets/4968940/
+-- qpqr_ori_ab1_final/
|   +-- ab1.id
|   +-- CL100CT134/
|   |   +-- CL100CT134_01-11P-F.ab1
|   |   +-- CL100CT134_01-11P-R.ab1
|   |   +-- ...
|   +-- CL1099CT11339/
|   +-- ...
+-- Reference.Db.SNPs.Quercus/

The local copy inspected for this documentation has a raw trace directory of about 7.9 GB.

Dataset inventory

The paper describes a targeted Sanger resequencing study with 25 trees and many genic regions. The downloaded AB1 archive is the raw trace layer used before later consensus and variant tables.

Item Count or value
Raw trace directory qpqr_ori_ab1_final
Gene region directories on disk 759
AB1 files on disk 49,308
Names listed in ab1.id 50,608
Main sequencing directions F and R
Extra direction suffixes F2 and R2
Local raw trace size about 7.9 GB

The ab1.id index contains 1,300 more names than the AB1 files present in the inspected local copy. Treat this as a dataset inventory detail when writing tests.

Filename anatomy

Each trace filename stores the locus, sequencing batch, individual, and read direction.

Example:

CL100CT134_01-Ar18-F.ab1
Part Meaning
CL100CT134 Gene region or amplicon locus
01 Sequencing batch
Ar18 Individual tree identifier
F Forward read direction
R Reverse read direction

The dataset also contains a small number of F2 and R2 traces. These are useful for checking how a batch utility handles repeated reads.

Samples

The discovery panel contains 25 trees plus one negative control.

Group Individuals
Quercus robur 11P, 3P, A4, Ar22, B179, M7, PC229, PC233, R300, R312, RW8, RW11, S104
Quercus petraea Ar18, B3, M51, PC55, Qs21, Qs28, Qs29, R100, R127, RW108, S444
Quercus ilex IL_C
Negative control Neg_Control

Paper summary

The study used Sanger amplicon resequencing to build a high-quality catalogue of sequence variation in European white oaks.

Item Count
Successful PCR amplicons 986
Final merged genic regions 852
Final consensus span 529,281 bp
Mean region length 621 bp
Total called polymorphisms 14,102
SNPs 12,478
Triallelic SNPs 218
Detected SSR loci 201

The paper reports that variant discovery used high-quality Sanger calls and visual chromatogram checks. The related Reference.Db.SNPs.Quercus repository contains processed FASTA files and variant tables.

Ground truth

This dataset does not provide a small hotspot ground truth table like dataset 5865470. It is better suited to broad validation of parsers and batch tools.

Useful checks include:

For abiscreen, this dataset needs extra preparation. A user must choose loci, prepare matching reference sequences, and build a targets.tsv file from known variant positions before running a hotspot screen.

Using nim-abif tools

Build the command-line tools first:

nimble buildbin

Convert one AB1 trace to FASTQ:

bin/abi2fq --no-trim \
  datasets/4968940/qpqr_ori_ab1_final/CL100CT134/CL100CT134_01-11P-F.ab1 \
  CL100CT134_01-11P-F.fq

Inspect metadata from one trace:

bin/abimetadata \
  datasets/4968940/qpqr_ori_ab1_final/CL100CT134/CL100CT134_01-11P-F.ab1

Render a chromatogram from one trace:

bin/abichromatogram \
  datasets/4968940/qpqr_ori_ab1_final/CL100CT134/CL100CT134_01-11P-F.ab1 \
  -o CL100CT134_01-11P-F.svg

abiscreen can be used after creating a locus-specific reference FASTA and target panel:

bin/abiscreen \
  -i selected-traces/ \
  -p targets.tsv \
  -r refs.fa \
  -o oak-screen \
  --report html,csv,vcf

The current abiscreen input scan reads direct .ab1 files from each input directory. This dataset is nested by locus, so whole-dataset screening needs a wrapper, a flat selected-trace directory, or recursive input support.