# How do I compare gene expression between different cancer types?

{% hint style="info" %}
This page assumes that you are already viewing more than one cancer type in view. Please see the help page '[How do I view multiple types of cancer together](/project/how-do-i/how-do-i-view-more-than-one-type-of-cancer-together.md)' to get started with this.

If there are cancer types in view that you do not want to investigate, you will need to filter them out. Please see the help page '[How do I filter to just one cancer type](/project/how-do-i/how-do-i-filter-to-just-one-cancer-type.md)' to get started with this.
{% endhint %}

Steps:

1. Add a column of data. Enter your gene or list of genes, select 'Gene Expression' and click done.
2. From the column menu at the top of the new column you created, select 'Chart & Statistics'
3. Choose 'Compare Subgroups'
4. Click the dropdown for 'Show data from' and choose your gene expression column.&#x20;
5. Click the dropdown for 'Subgroup samples by' and choose the cancer type column.&#x20;
6. Choose if you would like a box plot or violin plot and click 'Done'.&#x20;


---

# 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-compare-gene-expression-between-different-cancer-types.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.
