Skip to main content

Preparing your probes

NextPyper expects a nucleotide fasta file with the sequences of the targeted loci, what we call the probe set. Probe sets can be divided into two categories:

Sequence names in the probe set are required to be simple (letters, numbers and underscore, characters only). Additionally no duplicated names are allowed.

Currently, only coding regions that can be translated into aminoacids are supported.

Single-probe sets

If you are using a single-probe set, you only need to worry about sticking to the naming conventions described above. To check your probes, you can use nextpyper validate:

nextpyper validate --probes probes.fasta 
Probe sequence names comply with naming convention.
Pattern (.*) yielded no grouping of the sequences.
Either this is a single-probe set or the pattern is not appropriate for multi-probe mode

If you get the message above, your probe set is well formatted to run in single-probes mode.

Multi-probe sets

If using a multi-probe set, NextPyper needs to know which sequences target the same locus. The option --pattern expects a RegEx (with one capture group) that will inform about that hierarchy based on the name of the probes.

For instance, for the Angiosperms353 probe set with sequence names:

AJFN_probe4471
Ambtr_probe4471
BERS_probe4527
ZENX_probe4527
Arath_probe4691
QUTB_probe4691

We can use --pattern "(\d+)$", which will group the sequences by the number at the end of the sequence name (which then becomes the LocusID).

You can use the validate subcommand to check if your pattern groups your probes:

nextpyper validate --probes kew_probes.fasta --pattern "(\d+)$"
Probe sequence names comply with naming convention.
The pattern yields 353 groups from 4781 probe sequences

Use the options --out_summary and --out_hierarchy to get more details about the grouping.