# Simplify Concept Sets that use standard code descendants

{% hint style="info" %}
This page is a continuation of [Create concept set using standard-code descendants](https://docs.finngen.fi/working-in-the-sandbox/which-tools-are-available/atlas/detailed-guide/how-to-define-a-cohort-in-atlas/concept-sets/selecting-descendants-for-a-concept-set-in-atlas) tutorial.
{% endhint %}

[Including descendants](https://docs.finngen.fi/working-in-the-sandbox/which-tools-are-available/atlas/detailed-guide/how-to-define-a-cohort-in-atlas/concept-sets/selecting-descendants-for-a-concept-set-in-atlas) may lead to a large number of standard codes having no record counts (RC).

{% hint style="info" %}
If you include only descendants with record counts (RC) then this will give the same result but decreases the number of included codes and simplifies the Concept Set.
{% endhint %}

### Simplify Concept Set

The following example shows how to simplify a Concept Set using standard code-descendants using the **Included Concepts** and **Concept Set Expression** page.

* On the **Included Concepts** page, order the codes by record count ![](https://3072695768-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhYL0UTLjqsuIdK0SSO%2Fuploads%2Fgit-blob-448413f8b0e3c1f357ea45ce3301aa9015d5cf79%2Fimage%20\(151\).png?alt=media)
* Select all codes with record count (RC) > 0 using the **Id** column checkbox ![](https://3072695768-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhYL0UTLjqsuIdK0SSO%2Fuploads%2Fgit-blob-93694fd179c8bbec1ad2b6631047688757ad2d27%2Fimage%20\(765\).png?alt=media)
* Scroll to the bottom of the page and click the **Add to Concept Set** button. Codes with RC > 0 are now included in the Concept Set.

<figure><img src="https://3072695768-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhYL0UTLjqsuIdK0SSO%2Fuploads%2Fgit-blob-7709114804b0d6c12e12026ca576fa6efb20c48f%2Fimage%20(618).png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3072695768-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhYL0UTLjqsuIdK0SSO%2Fuploads%2Fgit-blob-39a2c1e9663c179d014ae23281d71280cc2c098d%2Fimage%20(736).png?alt=media" alt=""><figcaption></figcaption></figure>

* On the **Concept Set Expression** page, select all codes with descendants using the **Id** column checkbox ![](https://3072695768-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhYL0UTLjqsuIdK0SSO%2Fuploads%2Fgit-blob-93694fd179c8bbec1ad2b6631047688757ad2d27%2Fimage%20\(765\).png?alt=media)
* Scroll to the bottom of the page and click the **Remove Selected** button.

<figure><img src="https://3072695768-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhYL0UTLjqsuIdK0SSO%2Fuploads%2Fgit-blob-dc775083c86a9c7813cb374f71375574c41dbbd6%2Fimage%20(446).png?alt=media" alt=""><figcaption></figcaption></figure>

The Concept Set now only contains codes with a record count (RC) > 0. All standard codes without records (107 codes in this example) have been removed from the Concept Set.

<figure><img src="https://3072695768-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhYL0UTLjqsuIdK0SSO%2Fuploads%2Fgit-blob-6292c91e0dd72c6156aae6c474bb4c7c3ab5250a%2Fimage%20(726).png?alt=media" alt=""><figcaption></figcaption></figure>
