Simona Cristea Profile picture
Jan 26 14 tweets 5 min read
Graph Neural Networks (#GNNs) & their applications to life sciences are an exciting #DeepLearning area to discover!

But, to develop or apply GNN methods, we first need to understand the maths behind.

So, back to basics!

Here's a plain language summary of what's behind GNNs👇 Image
This summary is based on @PetarV_93’s recent paper with introductory theoretical notions on Graph Neural Networks.

This resource is very much an introductory one.

arxiv.org/abs/2301.08210
If you are already familiar with Graph Neural Networks, but still want to better understand the maths behind in a formalized logical framework, I recommend the following book/paper by @mmbronstein @joanbruna @TacoCohen @PetarV_93

arxiv.org/abs/2104.13478
-- The basics --

A graph consists of nodes & edges connecting pairs of nodes.

The connectivity of the graph is encoded in its adjacency matrix.

Each node is attached some characteristics, i.e. a feature vector.
Tasks that GNNs can achieve:

1. Node classification: predict the class of nodes in a graph, e.g. classifying protein function in a protein interaction graph

2. Graph classification: predict a single label for the graph, e.g. drug screening (yes/no per drug represented as graph)
3. Edge prediction: predict edge properties, e.g. drug repurposing, find whether novel edges between drugs and diseases exist in a graph.

All these tasks involve different formulations of mathematical optimization problems defined over the elements and structure of the graph👇
-- Notations 1 --

V - vertices: elements called u
E - edges
A - adjacency matrix: square, with size the number of nodes
x_u - feature vector: information for each node u
X - feature matrix: stacking feature vectors for all nodes [x1,...xV]^T
-- Notations 2 --

N_u - neighborhood nodes: set of neighboring nodes for each node u
X_N_u - neighborhood features: set of feature vectors for all neighboring nodes
h_u - local function, takes into account the neighborhood

h_u = \theta(x_u, X_N_u)
-- Message passing --

Have you heard of "message passing" for Graph Neural Networks but didn't know what it was?

Here you do: \theta is also known as "propagation" or "message passing"

The are three main types of \theta, with equation 10 the message passing one. Image
1. For each node: a "message" value is computed by applying a (neural network) function for all its neighbors in its neighborhood N_u

2. The values computed at 1. (as many values as neighbors) are then aggregated by e.g. sum (adding up all values), average (averaging) or maximum
3. Then the (neural network) function \theta is applied over the value(s) resulting from 2. & the node's own feature vector.

Don't forget that the above 1-2-3 sequence is computed for every node! These values are then used directly as e.g. input to a node classification problem.
-- Transformers --

What happens if we don't know the real connectivity of the graph, i.e. we don't have A?

Let's assume an extreme case: the graph is in fact fully connected, i.e. A is full of 1.

Then, attentional GNNs (eq 9 above) reduces to the forward pass of a Transformer! Image
This makes sense, as Transformers model the interactions among words in a sentence. These interactions start off with a complete graph (everything can be related to everything), and are iteratively improved to only keep the relevant links.

More in-depth: graphdeeplearning.github.io/post/transform…
Almost everything in Biology can be thought of as a graph, therefore the potential of applying these techniques is huge.

Don't forget that AlphaFold2 (already cited 8,100 times) is also a Graph Neural Network!

nature.com/articles/s4158…

Fin 🧵

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Simona Cristea

Simona Cristea Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @simocristea

Jan 20
Division frenzy 🤩: T cells can divide indefinitely & long outlive their host organism!

One of 2023's most exciting papers so far!

A paper that challenges scientific paradigms & brings strong experimental evidence against long-held scientific beliefs.

Let's break it down🧵
Friends, this small 5-page @Nature paper is the perfect example of the ideal science:

1. Pick a very relevant topic (T cell adaptive immunity)
2. Ask a very relevant question related to this topic (how often can CD8+ T cells divide?)
👇
nature.com/articles/s4158…
3. Understand very well the current state of research (T cells have limited division potential)
4. Develop a hypothesis testing current state
5. Craft an accurate experiment to test it (passage same T cells for 10 years)
6. Investigate findings
7. Confirm/contradict hypothesis 🎁
Read 26 tweets
Jan 17
The science of #immunotherapy can cure a patient's otherwise incurable cancer.

But sometimes immunotherapy fails completely

Shockingly, we hardly know why.

A meta-analysis of #Genomics & #Transcriptomics in >1,000 immunotherapy-treated patients aims to better understand why🧵
This 2021 @CellCellPress paper is one of the best #DataScience #Bioinformatics resources out there for understanding the genetic determinants of response to immune checkpoint inhibitors (ICIs).

cell.com/cell/fulltext/…
Some context:

PD-1 & PD-L1 inhibitors are examples of ICIs.

ICI is a type of immunotherapy that un-blocks the immune system & allows it to mount attacks🤺

It does it by inhibiting checkpoints (s.a. PD-1 & PD-L1): proteins that keep the immune system from attacking its own self
Read 28 tweets
Jan 10
We all think we're one of a kind.

But sometimes, we come across someone who looks just like us!

A @CellReports study tested the DNA of "fake twins".

Guess what:

They also share 🧬DNA variants related to facial features & behavior 🤯

Surprised or not really? Let’s dig in🧵👇
First, let’s see why this study might NOT surprise you.

Monozygotic twins share almost identical facial traits & the same DNA sequence. Therefore, looking-alike strangers could follow a similar pattern.

Still, looking-alike strangers are not twins! So we can’t know for sure if:
a. they share more of their genome than random people

b. if yes to (a), how much they share & what would be the functional role of the genes on which such SNVs are

c. how about #multiomics similarity, such as DNA methylation or microbiome (different in monozygotic twins)?
Read 19 tweets
Dec 27, 2022
We all know that babies inherit their microbiome from mum👩‍👧(vertical gene transfer).

First time ever, a brand new🔥study finds another novel mechanism for microbiome sharing between mothers & their infants: horizontal gene 🧬 transfer.

Why is this totally crazy?

Let's unpack🧵 Image
Let's first clarify why these findings might seem shocking:

This paper found hundreds of mother-to-infant gene bacterial transmission events WITHOUT transmission of the full bacterial genomes themselves.

This is called horizontal gene transfer.

cell.com/cell/fulltext/…
This paper, a #multiomics longitudinal study just out in @CellCellPress, tracked the co-development of microbiomes & metabolomes from late pregnancy to 1 year of age in 70 mother-infant pairs.

Top 5 main findings, explained👇 Image
Read 22 tweets
Dec 21, 2022
Our immune system is essential in keeping us healthy.

But the immune system also changes profoundly as we age.

Why is that? Could we prevent it?

Let's see how #singlecell biology can help us better understand #immune #aging

🧵👇
First, some background.

Everybody knows that the immune system is hugely complex.

#singlecell sequencing has (arguably) done more for the immune system than for other health applications.

Via #scRNAseq, we discovered & characterized crazily detailed immune cell phenotypes. Image
Such detailed phenotypes have been found in both healthy and diseased tissues.

I wrote several threads about this topic and find it to be one of the most foundational & fascinating progresses that have happened in biomedicine in the past 10 years.
Read 28 tweets
Dec 9, 2022
#singlecell analysis is revolutionizing medicine and changing the way we look at disease.

New perspective article just out🚨@NatureMedicine reflecting on @humancellatlas: informative for both #singlecell lovers❤️& skeptiks🤔

Let's map out where the field stands & what is next🧵
First, some context.

The genomics single cell field has started out 1-2 decades ago with a huge promise:

"Find the missing link between genes, diseases and therapies. This will bring completely novel therapeutics to the market & cure disease."
The underlying logic is straigtforward:

1. the cell is the main unit of living organisms
⬇️
2. cells break down in disease
⬇️
3. understanding cells helps understand how & why they break
⬇️
4. this helps with engineering new therapeutics
⬇️
5. new therapeutics will cure disease
Read 13 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(