All FASTQ calling requires --database with a completed reference build for
the target taxon and panel, including directory and manifest modes.
Supported read suffixes:
.fastq.fq.fastq.gz.fq.gz
The accurate-long/amplicon FASTQ workflow uses -i READS and operates directly
on FASTQ records. Complete primer-spanning reads can produce repeat-count calls;
partial but locus-specific reads can provide provisional or presence-only
evidence. Illumina FASTQ instead uses
-i sr --fq1 READS_1 and optional --fq2 READS_2; gzip and plain text are
read directly. Separate mate files must
have equal record counts and the same normalized read ID in the same order.
/1 and /2 suffixes and CASAVA mate annotations are recognized. Interleaved
FASTQ is not currently accepted. In explicit -i sr mode, mates are never
inferred from filenames. Paired directory mode provides opt-in filename
discovery:
mlvamaps call --database reference_build -i short_read_directory/ --short-reads -o resultsThis mode non-recursively matches exact PREFIX_1.fastq.gz and
PREFIX_2.fastq.gz filenames. PREFIX becomes the sample ID. Unrelated files
are ignored, but a matching mate filename without its partner is an error.
Tab-separated manifests require sample_id and reads1; reads2 and
metadata_id are optional. A period or empty reads2 means single-end.
Relative paths are resolved from the manifest directory.
sample_id\treads1\treads2\tmetadata_id
SRR000001\treads/SRR000001_1.fastq.gz\treads/SRR000001_2.fastq.gz\tSAMN000001
SRR000002\treads/SRR000002.fastq.gz\t.\tSAMN000002
CSV and TSV are accepted. One row represents one sample. sample_id,
run_accession, sra_run, or accession can supply the join key. Common
BioSample, date, latitude/longitude, geographic location, country, host,
isolation source, and study aliases are normalized while original columns are
retained in the MYOGA export. Duplicate or empty identifiers are rejected.
mlvamaps call accepts a directory in place of one input file:
mlvamaps call -p primers.tsv -i sequence_files/ -o resultsmlvamaps processes supported FASTA and FASTQ files directly inside the
directory in filename order. Discovery is non-recursive, unrelated files are
ignored, and FASTA and FASTQ inputs may be mixed. Each input filename supplies
the sample ID and gets a separate results/<sample-id>/ directory. Filenames
that collapse to the same sample ID, such as sample.fasta and
sample.fastq, are rejected to prevent output collisions.
--sample-id, --reads, and --bam/--alignments apply to single-file calls
and cannot be combined with directory input.
Supported assembly suffixes include:
.fasta.fa.fna.fas- Gzip-compressed FASTA equivalents
A CSV, TSV, or legacy whitespace-delimited table can provide:
locus_id
forward_primer
reverse_primer
repeat_unit_length_bp
expected_product_size_bp
nominal_repeat_units
The first three fields are required.
Example:
locus_id forward_primer reverse_primer repeat_unit_length_bp expected_product_size_bp nominal_repeat_units
vrrA_12bp_314bp_10U CACAACTACCACCGATGGCACA GCGCGTTTCGTTTGATTCATAC 12 314 10
Primer sequences are supplied 5-prime to 3-prime. For Sassy-backed in silico
PCR, mlvamaps expands IUPAC ambiguity codes in each configured primer, searches
for the forward primer and the reverse complement of the reverse primer in an
oriented sequence, and pairs downstream matches into candidate products. The
target sequence is not expanded as IUPAC ambiguity; ambiguous target bases can
consume the configured edit allowance. See the assembly workflow for strand,
mismatch, size, and product-selection details.
A richer CSV or TSV can additionally define:
| Column | Purpose |
|---|---|
repeat_motif |
Expected VNTR motif used for read-pattern evidence. |
left_flank_sequence |
Sequence immediately left of the repeat, used to refine the boundary. |
right_flank_sequence |
Sequence immediately right of the repeat. |
expected_min_repeats |
Lower expected repeat-count bound. |
expected_max_repeats |
Upper expected repeat-count bound. |
expected_amplicon_min_bp |
Smallest accepted paired-primer product. |
expected_amplicon_max_bp |
Largest accepted paired-primer product. |
chrom_or_contig, start, end |
Optional reference annotation. |
pool_id |
Optional multiplex or primer-pool identifier. |
Examples are under examples/.
A profile database is a TSV with:
- Required
profile_id. - Optional
strain_idandmetadata. - One column per comparable locus.
profile_id strain_id VNTR_01 VNTR_02
P1 STRAIN_1 5 4
Profile locus names must match the panel. Empty values are skipped during comparison. Profile rows from different MLVA schemes should not be mixed unless their locus definitions and repeat-number conventions are compatible.
--database PATH enables alignment-based reference comparison. Supply the
completed directory produced by mlvamaps build-reference or its database/
subdirectory. The saved panel, observed locus FASTAs, reference metadata,
competitive candidate indexes and recruitment resources are reused.
Reference identifiers are shared across locus files. Identical observed amplicons share a mapping target while retaining every compatible reference ID. Partial reference profiles remain explicit in the model. A rich panel can describe repeat-unit length, motif and flanks; retained observed sequences provide both nucleotide and repeat-length evidence.
An optional --reference-metadata TSV or CSV can associate references with
space, time, and source information:
reference_id collection_date latitude longitude location source
R1 2024-01-02 40.0 -75.0 Site A environment
When the sequence database is a directory, a file named
reference_metadata.tsv is detected automatically.
Existing metadata used or produced by geonome-flow reference-build can be
converted directly:
python scripts/convert_geonome_metadata.py /path/to/geonome/metadata.tsv \
--output reference_metadata.tsvThe input can be the canonical metadata.tsv passed to the workflow or its
surveillance inputs/metadata.csv. A Python-built reference directory,
reference_manifest.json, or normalized_metadata.tsv is also accepted. The
converter maps Geonome genome_id, sample, or accession identifiers to
reference_id, retains dates and coordinates, and maps location and sample
source fields to the columns above.
Assembly mode accepts SAM or BAM aligned to the supplied assembly through
--bam or --alignments. Contig names must match the assembly contig names
reported in assembly_amplicons.tsv.