adonis error message

Hi @Nicholas_Bokulich!
Thanks so much!

I tried the command and I got this error:
(qiime2-2019.7) [[email protected] PERMANOVA_MAY20_2020]$ qiime diversity adonis --i-distance-matrix bray_curtis_distance_matrix.qza --m-metadata-file mapping_file_resistant_starch_only65_Jan29_2020.txt --p-formula Diet --o-visualization bray_curtis-unifracDiet-adonis_RS_DIET_May20_2020.qzv
Plugin error from diversity:

Command ‘[‘run_adonis.R’, ‘/tmp/tmpwydn6m1v/dm.tsv’, ‘/tmp/tmpwydn6m1v/md.tsv’, ‘Diet’, ‘999’, ‘1’, ‘/tmp/qiime2-temp-70si7mo6/adonis.tsv’]’ returned non-zero exit status 1.

Debug info has been saved to /tmp/qiime2-q2cli-err-x43y9xmm.log

I have the 2019.7 QIIME2 version. The error has something to do with the version and needs to be updated?

Thanks again!

Hi @idapantoja,

You need to post the full debug log; it’s hard to determine the information without that error message.


Hi @jwdebelius,

This is the information in the log:

Running external command line application. This may print messages to stdout and/or stderr.
The command being run is below. This command cannot be manually re-run as it will depend on temporary files that no longer exist.

Command: run_adonis.R /tmp/tmpwydn6m1v/dm.tsv /tmp/tmpwydn6m1v/md.tsv Diet 999 1 /tmp/qiime2-temp-70si7mo6/adonis.tsv

R version 3.5.1 (2018-07-02)
Loading required package: permute
Loading required package: lattice
This is vegan 2.5-5
Error in read.table(file = args[[2]], sep = “\t”, header = TRUE, fill = TRUE, :
more columns than column names
Execution halted
Traceback (most recent call last):
File “/var/opt/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/q2cli/”, line 327, in call
results = action(**arguments)
File “</var/opt/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/>”, line 2, in adonis
File “/var/opt/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/qiime2/sdk/”, line 240, in bound_callable
output_types, provenance)
File “/var/opt/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/qiime2/sdk/”, line 445, in callable_executor
ret_val = self._callable(output_dir=temp_dir, **view_args)
File “/var/opt/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/q2_diversity/_beta/”, line 367, in adonis
File “/var/opt/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/q2_diversity/_beta/”, line 393, in _run_command, check=True)
File “/var/opt/miniconda3/envs/qiime2-2019.7/lib/python3.6/”, line 418, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command ‘[‘run_adonis.R’, ‘/tmp/tmpwydn6m1v/dm.tsv’, ‘/tmp/tmpwydn6m1v/md.tsv’, ‘Diet’, ‘999’, ‘1’, ‘/tmp/qiime2-temp-70si7mo6/adonis.tsv’]’ returned non-zero exit status 1.


Hi @idapantoja,

There appears to be an issue with how either your metadata or your distance matrix is being read. (I would guess your metadata). Has it worked elsewhere? Do you, by chance, have extra columns or something?


Hi @jwdebelius,

Thanks for the response. Its weird because I just used the same documents for the command qiime diversity beta-group-significance and is working. I even went to Keemei to validate the metadata and is fine.
But when I try the qiime diversity adonis command I get the error I posted. Not sure what it is…

Any idea of what could happened?

This is command line for both:
(qiime2-2019.7) [[email protected] ResistantStarch_only65] qiime diversity beta-group-significance --i-distance-matrix bray_curtis_distance_matrix.qza --m- metadata-file mapping_file_resistant_starch_only65_Jan29_2020.txt --m-metadata-column Diet --o-visualization bray_curtis-unifracDie-significance_TEST_May21_2020.qzv --p-pair wise Saved Visualization to: bray_curtis-unifracDie-significance_TEST_May21_2020.qzv (qiime2-2019.7) [[email protected] ResistantStarch_only65] cd PERMANOVA_MAY20_2020/
(qiime2-2019.7) [[email protected] PERMANOVA_MAY20_2020] ls bray_curtis_distance_matrix.qza mapping_file_resistant_starch_only65_Jan29_2020.csv mapping_file_resistant_starch_only65_Jan29_2020.txt (qiime2-2019.7) [[email protected] PERMANOVA_MAY20_2020] qiime diversity adonis --i-distance-matrix bray_curtis_distance_matrix.qza --m-metadata-file mappi ng_file_resistant_starch_only65_Jan29_2020.txt --p-formula Diet --o-visualization bray_curtis-unifracDiet-adonis_RS_DIET_May20_2020.qzv
Plugin error from diversity:

Command ‘[‘run_adonis.R’, ‘/tmp/tmpt5gu1znx/dm.tsv’, ‘/tmp/tmpt5gu1znx/md.tsv’, ‘Diet’, ‘999’, ‘1’, ‘/tmp/qiime2-temp-x2k2yb0y/adonis.tsv’]’ returned non-zero exit status 1.

Debug info has been saved to /tmp/qiime2-q2cli-err-dmqqw7n_.log
(qiime2-2019.7) [[email protected] PERMANOVA_MAY20_2020]$

Notepad with command line

Adonis vs Beta Group Significance.txt (1.4 KB)

Hi @idapantoja,

Is there any chance you have spaces in your metadata headers or sample names? A few people have suggested this might change the way R reads your metadata.


This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.