Skip to content
Edit this page View source of this page

query

sylphd query [inputs] [options]

This command is the native sylphd-client: the sylphd command runs the server and admin commands in Python and forwards this one, argv unchanged (same exit codes, same stdin and stdout), and sylphd-client is the same program for machines without Python. The client renders the output, so it depends on the client version rather than the server's. --json saves the server's document unchanged; render turns a saved document into the table later, without a server.

ANI hits of one or more samples: the equivalent of sylph query. The client sketches locally and sends the sketches to the server, which returns every database genome the sample contains, with ANI and coverage, joined with the metadata.

query takes the same inputs, output options, thresholds and server options as profile, with two differences:

  • the default --minimum-ani is 90 (profile: 95);
  • there are no abundance columns and no --taxonomy, --taxprof or --estimate-read-counts options.

The output columns are:

Sample_file Genome_file Adjusted_ANI Eff_cov ANI_5-95_percentile
Eff_lambda Lambda_5-95_percentile Median_cov Mean_cov_geq1
Containment_ind Naive_ANI Contig_name  accession genome_id <metadata...>

<metadata...> is the server's metadata columns; with the default --fields all a server whose metadata file has sylph-tax taxonomy sources appends tax_source, tax_key, tax_lineage and tax_host after them (the existing columns keep their order, and an explicit --fields list is unchanged). A file built with setup --taxonomy-db has eight more virtual columns, ncbi_nearest_taxid, ncbi_nearest_rank, ncbi_nearest_name, ncbi_nearest_clade, ncbi_nearest_lineage, ncbi_nearest_formal_taxid, ncbi_nearest_formal_rank and ncbi_nearest_formal_name: the nearest NCBI taxon of a key that has no NCBI record of its own and, when NCBI only names that taxon informally, the nearest ancestor it names formally (see nearest NCBI taxa). See Profiling reads for what they mean.

sylphd query -1 sample_R1.fq.gz -2 sample_R2.fq.gz
sylphd query --no-adjust genome.fna.gz        # a genome as a sample