-
Notifications
You must be signed in to change notification settings - Fork 1
Troubleshooting
spoligotyper uses the seal.sh found in your PATH first, then the one installed next to its own Python
interpreter (the bin/ folder of the conda environment). Calling /path/to/envs/spoligotyper/bin/spoligotyper
without activating the environment therefore works if BBTools is installed in that environment.
Otherwise, install BBTools: conda install -c bioconda bbmap.
The message ends with the last lines printed by Seal. Common causes:
-
Java errors (
java: command not found,UnsupportedClassVersionError): BBTools needs Java. Installing BBTools with conda installs a compatible Java. -
Truncated or corrupted input file: check it with
gzip -t file.fastq.gz.
Run with -v to see the full Seal command and output.
spoligotyper gives Seal 1 GB of memory (--memory 1g), which is plenty for 43 spacers: Seal's memory does not
grow with the size of the input. If Java cannot reserve it (Could not reserve enough space for object heap, e.g.
on a login node or in a small container), lower it: --memory 500m.
Before version 0.2.0, Seal sized its memory from the computer's free memory (196 GB on a 512 GB server), which failed on shared computers and clusters.
In batch mode (-i), each sample name must come from a single fasta file, a single fastq file, or an R1/R2 pair.
The message lists the conflicting files: rename, move or remove them. See
Usage for how sample names are derived from file names.
In batch mode, a sample that cannot be typed (truncated file, not a sequence file, ...) is reported as failed with
its error in the table and the PDF report, and the other samples are still typed. spoligotyper exits with code 1.
The lineage SNPs, a region of difference or the spacer counts suggest several strains. See Species and lineage. Check the sample (e.g. single colony re-culture) before reporting its spoligotype: the pattern of a mixed sample is the union of those of its strains.
Spacers were found but the MTBC control regions have fewer than 3 reads each: the depth is too low, or most reads come from something else. The species and lineage are not called.
None of the 43 spacers is in the file. Check that the sample is from the M. tuberculosis complex (e.g. with Kraken2 or mashID), and that the file is not empty or truncated.
Some spacers were found, but in too few reads to be called present. This happens with low coverage data, or with
mixed or contaminated samples. See How it works to decide whether to lower
--min-count.
Assemblies contain each spacer once. Do not set --min-count for assemblies: it is 1 by default.
The fasta file has more than 1,000 sequences and more than 13 Mb (3 times the genome): it holds reads (e.g. from
fasterq-dump --fasta), not an assembly, and is typed as reads (minimum count 5, depth and MTBC fraction estimated).
If it really is an assembly (e.g. a metagenome assembly), use --min-count 1.
They are supported. Seal cannot read them (BBTools splits arguments on spaces and commas, and reads any argument
containing "xmx" or "xms" as a Java memory setting), so spoligotyper gives Seal links with neutral names in a
temporary folder. The same links give Seal the right extension for files named without one (e.g. Galaxy's .dat
files) or gzipped without .gz. Only the system temporary folder itself must be free of these (set TMPDIR
otherwise).
-r2 must be the R2 reads of a paired-end run. Assemblies are given with -r1 alone.
That is version 0.1, which does not work with recent versions of setuptools. Update to version 0.2.0 or later (see Installation).
Getting started
Understanding the results
Reference