# Investigate the expression level of a gene in defined groups

**URL:** <https://forum.depmap.org/t/investigate-the-expression-level-of-a-gene-in-defined-groups/3978>\
**Category:** Q&A\
**Created:** [February 12, 2025, 2:24am UTC](https://forum.depmap.org/t/investigate-the-expression-level-of-a-gene-in-defined-groups/3978 "2025-02-12T02:24:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Khadija](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.depmap.org/khadija/32/1422_2.png) [@Khadija](https://forum.depmap.org/u/Khadija)\
**Post date:** [February 12, 2025, 2:24am UTC](https://forum.depmap.org/t/investigate-the-expression-level-of-a-gene-in-defined-groups/3978/1 "2025-02-12T02:24:24Z")

</div>

I would like to know how to use data explorer to make a plot of Gene A expression between high Gene B expression and low Gene B expression.

---

<div class="post-metadata">

**Author:** ![pmontgom](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.depmap.org/pmontgom/32/4_2.png) [@pmontgom](https://forum.depmap.org/u/pmontgom)\
**Post date:** [March 7, 2025, 4:38pm UTC](https://forum.depmap.org/t/investigate-the-expression-level-of-a-gene-in-defined-groups/3978/2 "2025-03-07T16:38:00Z")

</div>

The way you’ve said high and low “Gene B” expression, makes me think you want something like a box plot for comparing the two groups of lines.

While Data Explorer doesn’t have boxplots, you can define two groups and compare the distributions.

So, you’d say you want to color by contexts and define a “high” and a “low” expression context. I’ll use SOX10 as the gene that I bin into high and low, and MITF as the gene whose distribution I want to compare:

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/depmap/original/2X/3/35247d5ad98ed5a7cd521c0a3aacb2838e2ddaf2.png)

Create a new context:

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/depmap/original/2X/c/c41dceb961b5a62282348986dc334b400aba5436.png)

Now, I say this context is lines where expression is \> 6

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/depmap/original/2X/2/2d81d464151deb365988fe33f691b730e89e8cee.png)

And I do a similar thing picking expression \< 2 for “low expression”

And now I can plot a density plot of MITF expression “colored by” the two groups

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/depmap/original/2X/a/a8a387bbbe103579c17cac23d2201397848de5ba.png)
