Scientist Guide
Scientist Guide
Section titled “Scientist Guide”As a scientist or data analyst, you use Brane to compose and run workflows — sequences of operations that process data across distributed domains. You don’t need to know about containers, infrastructure, or networking. You just write what you want to compute, and Brane handles the rest.
What You’ll Learn
Section titled “What You’ll Learn”- Writing Workflows — How to write BraneScript workflows
- BraneScript Reference — Language syntax and features
Prerequisites
Section titled “Prerequisites”- The Brane CLI installed on your machine
- Access to a running Brane instance (ask your administrator for the address)
- Packages already published to the instance (ask your developers)
Getting Started
Section titled “Getting Started”Connect to an Instance
Section titled “Connect to an Instance”brane login http://<INSTANCE_ADDRESS> --username <YOUR_NAME>Explore Available Packages
Section titled “Explore Available Packages”See what packages are available on the instance:
brane package searchStart the REPL
Section titled “Start the REPL”The interactive REPL lets you run BraneScript commands one at a time:
brane workflow repl --remote http://<INSTANCE_ADDRESS>:50053Or run a workflow from a file:
brane workflow run --remote http://<INSTANCE_ADDRESS>:50053 workflow.bsWorkflow Basics
Section titled “Workflow Basics”A typical workflow:
- Import the packages you need
- Call functions to process data
- Print or store the results
import data_loader;import ml_trainer;
let data := load_data("patient_records");let model := train(data);println(model);Brane figures out where each step should run based on data location and policies. Your workflow looks like a simple sequential program, but it may execute across multiple organizations.