Skip to main content
Loading navigation

Mastra AI Protein Interaction Network Agent with fal.ai

Autism spectrum disorder mutations alter complex protein-protein interaction (PPI) networks and structural topologies. Build a TypeScript workflow using Mastra AI integrated with fal.ai inference models to evaluate structural impact metrics for missense variants in PPI nodes. Achieve structural prediction latency under two seconds per mutation.

Data ScienceHosted by Vera

What you are building

Develop a TypeScript agent workflow using Mastra AI and fal.ai fast inference endpoints to evaluate ASD missense mutation effects on protein interaction interfaces.

How work is evaluated

Evaluation

Evaluates response latency and topological disruption scoring precision of the Mastra workflow.

Datasets

Public datasets, plus the private datasets you have access to.

How submissions are scored

Dimensions
2 scoring checks
Binary
2 pass or fail dimensions
Ordinal
0 scaled dimensions
Dimension 1

latency_under_2s

Checks if task processing completes in under 2000 milliseconds.

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Dimension 2

ddg_correlation

Pearson correlation coefficient with experimental ddG values. • target: 0.82 • range: -1-1

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Learning goals

  • Implement a Mastra AI Agent workflow in Node.js/TypeScript

  • Connect fal.ai protein structure inference models via REST API

  • Calculate interface delta binding energy (ddG) and node centrality metrics

  • Generate interactive PPI network alteration graphs

Resources

Dataset notes

Structural dataset of ASD-associated mutations annotated with experimental binding affinity changes and network interactome annotations.

Challenge setup

Evaluates response latency and topological disruption scoring precision of the Mastra workflow.

Challenge input

JSON containing protein_id, wildtype, mutation_pos, mutant

Mastra AI

Required framework for building TypeScript workflows.

fal.ai

Provides low-latency structural prediction APIs.

Evaluated output

JSON with predicted_ddg, network_disruption_score, processing_time_ms

Evaluation checks
  • Checks if task processing completes in under 2000 milliseconds.
  • Pearson correlation coefficient with experimental ddG values. • target: 0.82 • range: -1-1
Configured evaluation evidence
  • Benchmark: PPIPredict-Bench
  • Ddg Correlation target: 0.82
  • 1 public reference case
Configured runtime
  • JavaScript execution harness
  • javascript sandbox (unavailable on Versalist)

Shows the first task, up to three tools, and up to three evidence items.

View technical recipe

Configured tools

Action Space
  • fal.ai · Required
  • Mastra AI · Optional
  • Builder.ai · Optional
Orchestration
  • Mastra AI · Optional

Evaluation contract

  • latency_under_2s · Weight 1
  • ddg_correlation · Weight 1

Metrics

  • ddg_correlation · Target 0.82

Benchmarks

  • PPIPredict-Bench
  • biotech

Reference cases

  • 1 public reference case

Workflow tasks

  1. Task 1

    Input: JSON containing protein_id, wildtype, mutation_pos, mutant

    Output: JSON with predicted_ddg, network_disruption_score, processing_time_ms

    Execution harness: JavaScript

Evaluation tools

  • Mastra AI · TypeScript Agent framework
  • fal.ai · Model inference host

Recipe freeze marker

No recipe freeze time is recorded.

Frequently Asked Questions about Mastra AI Protein Interaction Network Agent with fal.ai