# Alpha diversity core matrix

**URL:** https://forum.qiime2.org/t/alpha-diversity-core-matrix/13521
**Category:** User Support
**Created:** [February 7, 2020, 2:55am UTC](https://forum.qiime2.org/t/alpha-diversity-core-matrix/13521 "2020-02-07T02:55:05Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![moonlight](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/m/97f17d/32.png) [@moonlight](https://forum.qiime2.org/u/moonlight)
#### Post date: [February 7, 2020, 2:55am UTC](https://forum.qiime2.org/t/alpha-diversity-core-matrix/13521/1 "2020-02-07T02:55:05Z")

</div>

The question is about the script “qiime diversity core-metrics” and its output. I follow the moving picture tutorials.([“Moving Pictures” tutorial — QIIME 2 2019.10.0 documentation](https://docs.qiime2.org/2019.10/tutorials/moving-pictures/#featuretable-and-featuredata-summaries))

A\>  
qiime diversity core-metrics-phylogenetic  
–i-phylogeny rooted-tree.qza  
–i-table table.qza  
–p-sampling-depth 1103  
–m-metadata-file sample-metadata.tsv  
–output-dir core-metrics-results  
The default matrices are shannon, chao1, observed\_otus etc? As far as, I know you there are more than 20 matrices in QIIME2. If I want to add one more matrix such as Good’s coverage, how can I add it to core diversity script?

Or I have to do it manually as suggested here ([Alpha and Beta Diversity Explanations and Commands](https://forum.qiime2.org/t/alpha-and-beta-diversity-explanations-and-commands/2282))

B\> In the core alpha diversity analysis above, it rarefy the master feature table to equal depth of 1103, right? I don’t think the output of core diversity analysis save the sub-sample feature table? Would it be possible for me save it using this scripts? If I am not saving this subsample table, I can’t use this for downstream analysis. I know I can use the rarefy feature table to do it manually. Later, calculate the alpha diversity from the subsampled table. It seems the tutorial doesn’t do this. Mostly, I use the subsample feature table to plot taxonomic plots? Is this a good idea? If you plot taxonomic plot for you research, do you use the total table or subsampled table (equal deapth).

C\> About the “observed\_otus” output. – I can generate a observed\_otus\_vector.qza file and I use qiime tools export to export it to csv file.

Something looks like this

```auto
             observed_OTUs

```

sample 1 1000

sample 2 200

I am confused about the header “observed\_OTUs”. Does this mean observed ASV? I think I use DADA2 workflow and I don’t do OTU clustering.

6\>This is a general question. Do you normally filter out those rare OTUs/ASVs in your research? If you do, any general rules about this? The tutorial remove low abundance features, which is less than 10. I am not sure if this is general rule? I did my dataset at 50? Is this too high? I think this is trade-off. If you remove too many, it will give you a good rarefaction curve, but you lose diversity.

What do you normally do?

Thanks in advance

---

<div class="post-metadata">

### Author: ![timanix](https://forum.qiime2.org/user_avatar/forum.qiime2.org/timanix/32/17879_2.png) [@timanix](https://forum.qiime2.org/u/timanix)
#### Post date: [February 7, 2020, 9:06am UTC](https://forum.qiime2.org/t/alpha-diversity-core-matrix/13521/2 "2020-02-07T09:06:39Z")

</div>

Hi!

> [@moonlight](#):
>
> The default matrices are shannon, chao1, observed\_otus etc?

Default are Shannon, observed OTUs, Faith PD and evenness (Pielou).

> [@moonlight](#):
>
> Or I have to do it manually as suggested here ([Alpha and Beta Diversity Explanations and Commands](https://forum.qiime2.org/t/alpha-and-beta-diversity-explanations-and-commands/2282))

Yes, just run it with a chosen metric

> [@moonlight](#):
>
> In the core alpha diversity analysis above, it rarefy the master feature table to equal depth of 1103, right? I don’t think the output of core diversity analysis save the sub-sample feature table? Would it be possible for me save it using this scripts?

You will find a rarefied table in the output folder

> [@moonlight](#):
>
> Mostly, I use the subsample feature table to plot taxonomic plots? Is this a good idea? If you plot taxonomic plot for you research, do you use the total table or subsampled table (equal deapth).

I did both and didn't find a big differences between plots in other analyses.

> [@moonlight](#):
>
> I am confused about the header “observed\_OTUs”. Does this mean observed ASV?

Yes, it will be ASVs until you clustered it to OTUs.

> [@moonlight](#):
>
> Do you normally filter out those rare OTUs/ASVs in your research? If you do, any general rules about this? The tutorial remove low abundance features, which is less than 10. I am not sure if this is general rule? I did my dataset at 50? Is this too high? I think this is trade-off. If you remove too many, it will give you a good rarefaction curve, but you lose diversity.

I don't think there are specific rules, it's entirely depends on the origin source of you samples, on the amount and frequency of the features and number of repeats for each treatment.

---

<div class="post-metadata">

### Author: ![moonlight](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/m/97f17d/32.png) [@moonlight](https://forum.qiime2.org/u/moonlight)
#### Post date: [February 7, 2020, 8:50pm UTC](https://forum.qiime2.org/t/alpha-diversity-core-matrix/13521/3 "2020-02-07T20:50:43Z")

</div>

> [@timanix](#):
>
> I don’t think there are specific rules, it’s entirely depends on the origin source of you samples, on the amount and frequency of the features anI don’t think there are specific rules, it’s entirely depends on the origin source of you samples, on the amount and frequency of the features and number of repeats for each treatment."d number of repeats for each treatment.

I am working on temperate soil? Any rules for this environment? what is your system? and what would you do?

"

---

<div class="post-metadata">

### Author: ![timanix](https://forum.qiime2.org/user_avatar/forum.qiime2.org/timanix/32/17879_2.png) [@timanix](https://forum.qiime2.org/u/timanix)
#### Post date: [February 7, 2020, 9:25pm UTC](https://forum.qiime2.org/t/alpha-diversity-core-matrix/13521/4 "2020-02-07T21:25:46Z")

</div>

I would take a look on the overall abundances of the ASVs or features among the samples. For example, in soil samples I had very high frequencies of sequences, but in other niche much lower. So I decided to remove only sequences with abundances lower, than 10. But if I had only soil samples with high frequencies, I would increase a minimum frequency to 25 or higher.  
Also lets say I have at least 10 repeats for each time-point and treatment. Based on it, I would delete all features that found less than in 4 samples. But if I had 20 samples, I also could increase this limit to 6 samples. Something like this.

---

<div class="post-metadata">

### Author: ![moonlight](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/m/97f17d/32.png) [@moonlight](https://forum.qiime2.org/u/moonlight)
#### Post date: [February 10, 2020, 2:02am UTC](https://forum.qiime2.org/t/alpha-diversity-core-matrix/13521/6 "2020-02-10T02:02:08Z")

</div>

Hi Timanix,

1\>"Also lets say I have at least 10 repeats for each time-point and treatment. Based on it, I would delete all features that found less than in 4 samples. But if I had 20 samples, I also could increase this limit to 6 samples. Something like this."

I think I understand you point. For example, you want all ASVs have at least 10 repeats in each sample. How do you do this?

Did you run qiime feature-table filter-features --p-min-frequency 10

If I run this, I think min-frequency means total ASVs among samples less than 10 will filter out. If I have 100 samples, there is an ASV only appear in sample1 for 9 times. Then, this one will be filtered. It doesn't mean there are 900 ASVs and 9 ASVs in each sample.

I am not sure which parameter I should use to for a repeats cutoff.

2\> "You will find a rarefied table in the output folder" I found it I didn't realize they are given in .gz format.

After I unzip it, there are two biom format files. one is table name as "table\_even1100.biom", the other is table\_mc1000.biom. Should I use the former one? what does the mc table means?

---

<div class="post-metadata">

### Author: ![timanix](https://forum.qiime2.org/user_avatar/forum.qiime2.org/timanix/32/17879_2.png) [@timanix](https://forum.qiime2.org/u/timanix)
#### Post date: [February 10, 2020, 2:39pm UTC](https://forum.qiime2.org/t/alpha-diversity-core-matrix/13521/8 "2020-02-10T14:39:45Z")

</div>

Hi!

> [@moonlight](#):
>
> 2\> “You will find a rarefied table in the output folder” I found it I didn’t realize they are given in .gz format.

There should be a file rarefied\_table.qza

> [@moonlight](#):
>
> For example, you want all ASVs have at least 10 repeats in each sample. How do you do this?

Here is the detailed tutorial which commands to use for different cases  
[https://docs.qiime2.org/2019.10/tutorials/filtering/](https://docs.qiime2.org/2019.10/tutorials/filtering/)

I used this command to remove features that have frequencies lower than 10 and found in less than 5 samples. But I think you are asking for a different settings, so check the tutorial for better examples.

```
!qiime feature-table filter-features \
    --i-table table.qza \
    --p-min-frequency 10 \
    --p-min-samples 5 \
    --o-filtered-table filtered_table.qza

```

---

<div class="post-metadata">

### Author: ![system](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/2/1/21af5fe23cb6f4579467c66a9ed94e55274ca7bd.svg) [@system](https://forum.qiime2.org/u/system)
#### Post date: [March 12, 2020, 8:50pm UTC](https://forum.qiime2.org/t/alpha-diversity-core-matrix/13521/9 "2020-03-12T20:50:58Z")

</div>

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