# 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
