Skip to content

Commit

Permalink
Merge cb1fa19 into 406fedf
Browse files Browse the repository at this point in the history
  • Loading branch information
collin-le committed Jul 27, 2020
2 parents 406fedf + cb1fa19 commit a9c7f11
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions q2_diversity/_beta/_visualizer.py
Expand Up @@ -365,6 +365,10 @@ def adonis(output_dir: str,
for i in t.factors:
metadata.get_column(i.name())

metadata_df = metadata.to_dataframe()
if metadata_df.isnull().values.any():
raise ValueError("Adonis cannot run with NaNs in metadata.")

# Run adonis
results_fp = os.path.join(output_dir, 'adonis.tsv')
with tempfile.TemporaryDirectory() as temp_dir_name:
Expand Down

0 comments on commit a9c7f11

Please sign in to comment.