> For the complete documentation index, see [llms.txt](https://ucsc-xena.gitbook.io/project/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ucsc-xena.gitbook.io/project/how-do-i/how-do-i-make-subgroups-with-4-groups.md).

# How do I make subgroups with geneA high and geneB high?

{% hint style="warning" %}
This page assumes you are familiar with making 2 subgroups. If you are not, please see the ['How do I make subgroups'](/project/how-do-i/how-do-i-make-subgroups.md) help page.
{% endhint %}

This page details how to create subgroups based on the expression of 2 genes so that you create the following 4 subgroups:

* geneA expression is high AND geneB expression is high
* geneA expression is high AND geneB expression is low
* geneA expression is low AND geneB expression is low
* geneA expression is low AND geneB expression is high

To do this enter a search terms for each gene, such as 'C:>15' or 'D:<0.6' into the search box and separate each search term with a ';'.

## Example

You can see in the search bar the expression used to make column A using the example genes of CD44 and CD24.&#x20;

[**Ending Screenshot**](https://xenabrowser.net/?bookmark=0b24e983e5054a64d2de0bd6821f1c9c)

![](/files/hDQ8p31Sup3My6zUX9C2)

Also note that you can use this feature on columns besides gene expression, such as copy number variation, etc. You can also use it on categorical features, for instance to compare expression of a gene and the patient's gender (male or female). Simply add the gender column to the Visual Spreadsheet and enter 'female' for one of the search terms above.&#x20;

{% hint style="info" %}
[See our help on renaming the subgroup labels](https://ucsc-xena.gitbook.io/project/overview-of-features/filter-and-subgrouping#changing-subgroup-labels) from 'true' and 'false' to something more biologically meaningful.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ucsc-xena.gitbook.io/project/how-do-i/how-do-i-make-subgroups-with-4-groups.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
