Error in nmds plots with unifrac files



I have generated weighted and unweighted unifrac distances on mother v 1.41.1 Nov 2018 edition. These were generated fine, however when I come to generate nmds axis for both the weighted and unweighted unifrac distances, I get the following message:

mothur > nmds(

[ERROR]: expected a number and got Baseline-Baseline_DietScore. I suspect you entered a column formatted file as a phylip file, quitting.
Saving session…
…copying shared history…
…saving history…truncating history files…
Deleting expired sessions…13 completed.

[Process completed]

my unifrac distance files were generated using the following command:
unifrac.unweighted(,, random=T)

I have tried adding “distance=lt” into the unifrac.weighted command to produce a phylip distance matrix however the distance matrix generated groups my samples into their treatment groups so the nmds command only generates nmds axis for the groups and not individual samples.

I have had no issues with the nmds command in previous experiences working with datasets containing only two treatment groups, however the current dataset is with 11 treatment groups and 19 feed & water samples.

Any help would be greatly appreciated


closed #2

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


unifrac.unweighted(,, random=T)

I am assuming the tree file relates your samples, and the group file assigns your samples to their treatment groups. If so, the unifrac results will be for the treatment comparisons. To compare the samples, you want a tree that relates your sequences and a group file that maps the sequence names to their samples.

Alternatively, you could use the dist.shared command to generate distances between the samples and then run the nmds command. You can see how we run this part of the analysis in Pat’s example,