get.communitytype

Hi,

I have a question about get.communitytype (or what used to be called get.metacommunity).

As I understand it, this is used to see if community composition from different samples cluster together or not, and if so, what is the optimum number of clusters. So this can be used to determine for instance, gut enterotypes (albeit slightly different method to the one used by Arumugam et al). Is this correct?

Anyway, assuming this is correct, I ran the command, and on the screen (and in .fit file), K=3 is given as lowest Laplace value) which I guess means 3 clusters is the optimum for my data set (which is consistent with other reports). BUT when I look at all other files (.design, .parameters, etc), they partition all my samples into 1 (as opposite to 3).

Confused, I thought I was doing something wrong, so I ran the same command after converting all into phylotypes (at label=1) rather than in OTU, and this works; I get lowest Laplace value at K=3 and they partition my samples into 3 in all output files.

Could anyone explain this discrepancy? Thanks!

Can you send the problematic file to mothur.bugs@gmail.com?

Do you need the input files or the output files?

I assume that I was correct in that this command is for analysing clustering of community composition and can be used for gut analysis?

thanks

The shared file is what we would need.

I encountered a similar problem. :frowning:
What was the issue?
In advance, thanks for your help.
Bernard

I performed many test in order to understand why it sometimes works, sometimes doesn’t.
And I found this: it depends on the number of processors… See below.
With processors=10, the K values are mixed up in the display (not the fit file) and only K=1 is retained, therefore all the samples are in partition 1.
Whereas without processors option, everything is fine… Apparently, there is a bug with this option.

mothur > get.communitytype(shared=table_L6.shared, processors=10)

Using 10 processors.
dummy
K NLE logDet BIC AIC Laplace
1 49980.21 341.98 50159.73 50054.21 50083.19
2 49733.38 587.94 50094.86 49882.38 49890.43
5 49715.07 1100.92 50622.40 50089.07 49921.85
6 49618.79 1176.25 50708.07 50067.79 49794.31
3 49620.77 788.27 50164.20 49844.77 49809.06
4 49528.47 969.81 50253.85 49827.47 49738.61
7 49683.15 1293.36 50954.39 50207.15 49848.31
8 49726.24 1431.20 51179.42 50325.24 49891.39
9 49856.82 1533.20 51491.96 50530.82 50004.06
10 49976.24 1649.16 51793.33 50725.24 50112.54

The parameters file looks like this:
Part Dif2Ref_i theta_i pi_i
1 0.00 38.0105 1.00

mothur > get.communitytype(shared=table_L6.shared)

Using 1 processors.
dummy
K NLE logDet BIC AIC Laplace
1 49980.21 341.98 50159.73 50054.21 50083.19
2 49733.38 587.93 50094.86 49882.38 49890.42
3 49620.77 788.55 50164.20 49844.77 49809.20
4 49528.47 969.18 50253.85 49827.47 49738.30
5 49715.07 1100.11 50622.40 50089.07 49921.44
6 49618.79 1176.83 50708.07 50067.79 49794.60
7 49683.15 1293.24 50954.39 50207.15 49848.25

The parameters file looks like this:
Part Dif2Ref_i theta_i pi_i
1 39.95 25.0989 0.16
2 33.32 93.3444 0.30
3 27.05 49.4379 0.23
4 38.45 73.3588 0.31