# Block Development Walkthrough

## What to expect from this guide

The guide will create an overview of the main components of a typical downstream block, and will provide examples for each of the steps, from configuring the development environment, to running the software analysis tool within Platforma back-end and showing the results in the UI.

Examples from a real block, [ImmunoMatch](https://github.com/platforma-open/immuno-match), will be used.

The examples might differ from the original repository to allow focusing on the various concepts or simply because of the natural evolution of the original repository. To experiment with the code it is recommended to sync the [ImmunoMatch](https://github.com/platforma-open/immuno-match) project.

## Overview

A block wraps a biotech software analysis tool.

In general it will:

1. [Use information produced by upstream blocks](#using-information-produced-by-upstream-blocks).
2. Arrange it in a convenient way, so that the software analysis tool can use it as input. Usually as one or more csv/tsv files.
3. Process the software tool outputs, usually some other csv/tsv files and optionally make them available to other blocks.
4. Display the results in tables, graphs or other UI elements.

For the ImmunoMatch block it:

1. Presents the user with the option to choose Heavy chains [data produced by an upstream block](#ui-selecting-a-data-source), like [MiXCR Clonotyping 2](https://github.com/platforma-open/mixcr-clonotyping-2).
2. Discovers the associated Light chains and and Light chain types.
3. Prepares this data as a csv file which is then fed into the ImmunoMatch software analysis tool.
4. Displays the results as a histogram in the Platforma application.

In the following sections we will break down each of the steps listed above.

## Data flow

```mermaid
flowchart TD
subgraph identifier[" "]
        A["Data from upstream blocks (Results Pool)"]
 end
 subgraph Workflow
        B["Select and transform data, usually to csv (PColumn / PFrames data structures)"]
        C["Run bio analysis tools (R / Python / Java) on the csv data"]
        D["Transform tool output files (csv) to → PColumn / PFrames Layer"]
  end
 subgraph Model
        E["Add contextual data and prepare for UI"]
  end
 subgraph UI
       
        F["UI Presentation: Tables, Graphs, UI Elements"]
  end
    A --> Workflow
    B --> C
    C --> D
    D --> Model
    E --> UI
```

**Diagram:** The data comes from upstream Blocks (Results Pool) and goes to the Workflow. The Workflow selects and transforms the data, usually to csv (PColumn / PFrames data structures). Then it runs bio analysis tools (R / Python / Java) on the csv data. Then it transforms the tool output files (csv) to the PColumn / PFrames layer. The data then goes to the Model, which adds contextual data and prepares it for the UI. The UI shows the result as tables, graphs and UI elements.

Throughout the guide we will be referring to the terms backend and client:

1. Backend refers to the server part of Platforma. It is where the software analysis tool will run and where the data is stored.
2. Client or Platforma UI refers to the Platforma Desktop application. This usually runs on your computer or laptop.

## Using information produced by upstream blocks

Upstream blocks can choose to export the software analysis tool run results to be used by other downstream blocks. The place where these results can be found at is called the “Result Pool”. For example, the MiXCR Clonotyping block will export the Heavy chains, Light Chains and many other analysis results there. ImmunoMatch will export the Heavy chain / Light chain pairing results, and so on.

### Result Pool data: PColumns

![PColumn](/_astro/pcolumn-overview.BWw1Gve0_182I0d.webp)

“PColumns” is the data structure used to store data in the Results pool. Put simply it can be seen as a table where:

1. One column represents the data. For example the Heavy Chain VDJ Region.

2. One or more columns represent where this data is coming from, uniquely identifying each row like a primary key. For example the Clone Label.
   - We call these columns “Axes” and we use them to correlate data and join them. For example, we will join the Heavy Chain PColumn with the Light chain PColumn and the Light chain type PColumn, since they share an axis: the “Clone Label”.

3. The specification: a structured way of describing the PColumn; its metadata. It contains information like:

   - Which are the axes: `axesSpec`

   - What the domain is: `domain`:

     - Alphabet: aminoacid or nucleotide (identified by `domain["pl7.app/alphabet"]`)
     - Clonotype Chain: Heavy / Light (identified by `domain["pl7.app/vdj/scClonotypeChain"]`)

   - Annotations: `annotations`. They provide more information about the data. The UI components use the annotations when rendering. Some examples are:

     - Column names, dropdown labels, etc (e.g. `annotations: {"pl7.app/label": "Heavy VDJRegion aa Primary"}`)
     - Show / hide column implicit behavior (e.g. `annotations: {"pl7.app/table/visibility": "optional"}`)

> **Note:**
>
> Why do we need `annotations` when the specification is already metadata describing the PColumn?
>
> Because PColumns are uniquely identified in the Resource Pool by their name, axes AND domain. When using PColumns we select them from the results pool based on their name, axis and/or domain, depending on how specific we want to be, BUT NOT by their annotation, as they are used for presentation purposes only.

## UI: selecting a data source

```mermaid
graph BT
  B["Result Pool"] --> |PColumn Specs| A["Model"]
```

**Diagram:** The Result Pool gives PColumn Specs to the Model.

The starting point of block development is usually selecting some datasource that the user can choose from to do the analysis, along with other relevant parameters for the analysis tool.

In the ImmunoMatch case, we want to present the user with datasources containing Heavy Chain sequences. To do this we need to… you guessed it, find compatible data in the [result pool](#result-pool-data-pcolumns).

### Model outputs

We use the [model package](/sdk-getting-started/#model) to select the corresponding data from the result pool.

*model/src/index.ts*

```ts
export const model = BlockModel.create()
  // ... additional code omitted


  // This is used to populate the "Heavy Chain" dropdown in the UI.
  .output('heavyInputOptions', (ctx) => {
    // Fetch PColumns from the result pool by spec properties.
    // Organize them as labeled references to be presented in UI dropdowns.
    return ctx.resultPool.getOptions(
      (spec) =>
        isPColumnSpec(spec)
        && spec.name === 'pl7.app/vdj/sequence'
        && spec.domain?.['pl7.app/alphabet'] === 'aminoacid'
        && spec.domain?.['pl7.app/vdj/feature'] === 'VDJRegion'
        && spec.axesSpec?.[0]?.domain?.['pl7.app/vdj/receptor'] === 'IG'
        && spec.domain?.['pl7.app/vdj/scClonotypeChain'] === 'A'
        && spec.domain?.['pl7.app/vdj/scClonotypeChain/index'] === 'primary',
    );
  })


  // ... additional code omitted
  .done();
```

Model outputs are the bridge between your block’s data processing and its user interface. Each output has two key components:

1. **Identifier String** (first parameter):

   - This becomes a property in the UI layer (Vue.js component)
   - The identifier (`'heavyInputOptions'` in our example) will be bound using `:options` to a Platforma UI dropdown form input that already knows how to render such data.
   - When users interact with a dropdown, this data binding keeps everything in sync.

2. **Provider Function** (second parameter):

   - A callback function that receives the context object (`ctx`)
   - Responsible for generating the data that will be exposed to the UI
   - Typically returns data structures that UI components know how to render

#### What’s Happening Here?

1. **Search the Result Pool**: `ctx.resultPool.getOptions()` searches through all PColumns available from upstream blocks.

2. **Filtering with a Predicate**: The function takes a predicate (a function that returns true/false) to filter the PColumns:

   - `isPColumnSpec(spec)`: Ensures we’re looking at PColumn specifications
   - `spec.name === 'pl7.app/vdj/sequence'`: Find only sequence data
   - `spec.domain?.['pl7.app/alphabet'] === 'aminoacid'`: Looking specifically for amino acid sequences (not nucleotide)
   - `spec.domain?.['pl7.app/vdj/feature'] === 'VDJRegion'`: From the VDJ region
   - `spec.axesSpec?.[0]?.domain?.['pl7.app/vdj/receptor'] === 'IG'`: Only immunoglobulin receptors (not T-cell)
   - `spec.domain?.['pl7.app/vdj/scClonotypeChain'] === 'A'`: Only “A” chains (Heavy chains)
   - `spec.domain?.['pl7.app/vdj/scClonotypeChain/index'] === 'primary'`: Only primary sequences

3. **Returns Data Format**: The function returns an array of `Option` objects, each with:

   - `label`: A user-friendly display name (derived automatically from the PColumn metadata)
   - `ref`: A reference to the actual data that can be used later to fetch the content

### Dropdown options in UI

![](/_astro/ui-dropdown.qhf0Wltp_1WUHTU.webp)

Original code: [ui/src/pages/Main.vue](https://github.com/platforma-open/immuno-match/blob/fd9729ae204de9abe56bb94f6880f38e054a6381/ui/src/pages/MainPage.vue#L39)

*ui/src/pages/Main.vue*

```ts
const app = useApp();


// ... additional code omitted


<template>
    <!-- ... additional code omitted -->
    <PlDropdownRef
        v-model="app.model.args.inputHeavy"
        :options="app.model.outputs.heavyInputOptions"
        label="Heavy Input" />
</template>
```

The Platforma SDK creates the `app.model` object which contains:

- `model.outputs`: Contains all the outputs defined in your model
- `model.args`: Stores the user’s selections and parameter values

In this example:

- `heavyInputOptions` is available as `app.model.outputs.heavyInputOptions` because it was defined in the model using `.output('heavyInputOptions', ...)`
- When the user selects an option, the selected value is stored in `app.model.args.inputHeavy`

The `PlDropdownRef` component is a specialized [Platforma UI component](https://github.com/milaboratory/platforma/blob/5f4dacc32459b850192c0ff838c3300cb15ea550/lib/ui/uikit/src/components/PlDropdownRef/PlDropdownRef.vue#L3) that renders option references returned by the model. It automatically handles displaying the labels and managing the references behind the scenes.

> **Tip:**
>
> Demo block with available Platforma UI components is found here: [UI Examples](https://github.com/milaboratory/platforma/blob/5f4dacc32459b850192c0ff838c3300cb15ea550/etc/blocks/ui-examples/block/package.json)

## Running the analysis tool

The analysis tool will run in the backend based on the args passed from the UI.

All the code examples in this guide are taken from the ImmunoMatch block.

### Args are declared in the model

Args are declared in the Model code, set by the user in the UI, and passed to the workflow code.

*model/src/index.ts*

```ts
export type BlockArgs = {
  // Heavy chain PColumn reference from a MiXCR Clonotyping 2 block
  // It will be used to get the associated heavy chain sequences, light chain sequences,
  // and light chain type
  inputHeavy?: PlRef;
};


export const model = BlockModel.create()
  .withArgs<BlockArgs>({})
  // Activate "Run" button only after these conditions get fulfilled
  .argsValid((ctx) => ctx.args.inputHeavy !== undefined)
  // ... additional code omitted
  .done();
```

![](/_astro/workflow-args.CMCNCrbD_1ttTUe.webp)

### Bundle related PColumns

The [workflow code](/sdk-getting-started/#workflow) will use the args to run the software analysis tool and send the results back to the model and/or result pool.

#### Resolving input resources

`inputHeavy` is a reference to the Heavy Chain PColumn. References need to be resolved before using them, as they might not be available yet. They are similar to promises in JavaScript or futures in other languages.

*workflow/src/main.tpl.tengo*

```go
wf := import("@platforma-sdk/workflow-tengo:workflow")
// ... additional code omitted


// Pre-resolve the heavyPCol resource before executing the workflow body
// This ensures the required input is available and ready when the body function runs
wf.prepare(func(args){
  return{
    heavyPCol: wf.resolve(args.inputHeavy, { errIfMissing: true })
  }
})
```

The `prepare` is a lifecycle function that is called by the Platforma SDK before the workflow body is executed.

#### Anchored Columns

The “Anchor” pattern can be viewed similar to a variable in a programming language.

In the example below, we’re using the string `"main"` as an alias for our input Heavy Chain PColumn, but we could use any other string.

Then we can use it to search for other PColumns by referencing the `"main"` PColumn properties. For example:

- `domainAnchor: "main"` - looking for PColumns with the same domain as the `"main"` PColumn.
- `axes: [{anchor: "main", idx: 0}]` - looking for PColumns with the same first axis as the `"main"` PColumn.

We can say that the resulting Columns Bundle is “anchored” to the `"main"` PColumn.

1. Create a Column Bundler and anchor it to the Heavy Chain PColumn

```go
// Column bundler helps gather related PColumns together.
// We're using anchoring here to link related data PColumns to the Heavy Chain input PColumn.
bundleBuilder := wf.createPBundleBuilder();
// By using "main" as an alias for our input Heavy Chain PColumn, we can reference its properties
// (like axes and domain values) when querying for related columns, ensuring they stay properly linked.
bundleBuilder.addAnchor("main", args.inputHeavy);
```

2. Add Primary Light Chain Sequence PColumn

```go
bundleBuilder.addById({
    name: "pl7.app/vdj/sequence",
    // Primary Light Chain PColumn has the same domain as the "main" anchor column (the Heavy Chain PColumn
    domainAnchor: "main",
    // ... except for the chain type ('A' being Heavy Chain, 'B' being Light Chain)
    domain: {
        "pl7.app/vdj/scClonotypeChain": "B"
    },
    // ... and has one axis, the same as the first and only axis of the "main" anchor column (the Heavy Chain PColumn)
    axes: [{anchor: "main", idx: 0}]
});
```

3. Add Primary Light Chain Type PColumn

```go
// Add Primary Light Chain Chain Type PColumn to identify Kappa or Lambda chains
bundleBuilder.addById({
    name: "pl7.app/vdj/chain",
    domain: {
        "pl7.app/vdj/scClonotypeChain": "B",
        "pl7.app/vdj/scClonotypeChain/index": "primary"
    },
    // Has one axis, the same as the first and only axis of the "main" anchor column (the Heavy Chain PColumn)
    // The anchor axis domain includes the clonotypingRunId, which is sufficient to uniquely identify the associated
    // Light chain type (e.g. "pl7.app/vdj/clonotypingRunId": "e0551d7e-e33b-449c-93f9-ae9b85a02616")
    axes: [{anchor: "main", idx: 0}]
})
```

> **Tip:**
>
> Full schema for anchored columns queries is available here: [Workflow - schema for anchored columns queries](https://github.com/milaboratory/platforma/blob/5f4dacc32459b850192c0ff838c3300cb15ea550/sdk/workflow-tengo/src/workflow/model.lib.tengo#L48)

### Preparing the csv data for the analysis tool

#### Resolving the Column Bundle Resource

At this point we have a “Resource” with all the PColumns we need to gather the data and prepare it for the analysis tool. However, Resources are like promises in JavaScript, or futures in other languages. They need to be resolved before using them.

The way to achieve this, and you will see this pattern in many places in the Platforma SDK, is to render another template , that is a nother \*tpl.tengo file, that will use this Resource as input.

The new template will have access to the resolved Resource, and we can use it to prepare the csv data for the analysis tool.

*workflow/src/main.tpl.tengo*

```go
render := import("@platforma-sdk/workflow-tengo:render")


// imm.tpl.tengo is the template that will process the column bundler results.
imm := assets.importTemplate(":imm")


// Process the column bundler results in a separate template.
// Inside the "imm" template we will have access to the resolved PColumns from the columnBundle.
// createEphemeral is needed here to ensure the template is executed every time (not deduplicated)
immResult := render.createEphemeral(imm, {
    blockId: blockId,
    anchorCol: args.inputHeavy,
    scKeyAxisSpec: scKeyAxisSpec,
    columnBundle: columnBundle
})
```

#### Exporting column bundle to a csv file

Within the [imm.tpl.tengo](https://github.com/platforma-open/immuno-match/blob/fd9729ae204de9abe56bb94f6880f38e054a6381/workflow/src/imm.tpl.tengo#L20) template, we can use the `columnBundle` resource to export the data to a csv file.

This is achieved by:

1. Creating a table builder from the column bundle. The table builder has access to the resolved PColumns from the columnBundle, but need to select which ones to include
2. Select the PColumns from the bundle that we want to include in the csv.
3. Build the csv table.

```mermaid
graph LR
  A["Column Bundle"] --> |create| B["Table Builder"]
  B --> |select columns to include| A
  B --> |build| C["CSV Table"]
```

**Diagram:** The Column Bundle creates a Table Builder. The Table Builder selects the columns to include from the Column Bundle, then builds a CSV Table.

*workflow/src/imm.tpl.tengo*

```go
// Preparing a CSV table from the column bundle to pass to the ImmunoMatch software (python script)
tableBuilder := columnBundle.xsvTableBuilder()


// TableBuilder has access to the resolved PColumns from the columnBundle, but need to select which ones to include
// The ImmunoMatch software needs to know the column header names. {header: "chosen-header-name"}
// overrides the default header name in the resulting CSV.
tableBuilder.add(anchorCol, {header: "VH"})
tableBuilder.add({/* Code removed for brevity. See orig file */}, {header: "VL"})
tableBuilder.add({/* Code removed for brevity. See orig file */}, {header: "locus"})


tableBuilder.setAxisHeader({name: "pl7.app/vdj/scClonotypeKey"}, "scClonotypeKey")


// Build the CSV table from the selected PColumns
fullTable := tableBuilder.build("csv", {joinType: "Inner"})
```

### Run the analysis tool with the csv data

#### Import the ImmunoMatch models for Kappa and Lambda chains. They are stored separately from the block

*workflow/src/imm.tpl.tengo*

```ts
assets:= import("@platforma-sdk/workflow-tengo:assets")


immunomatchKappa := assets.importAsset("@platforma-open/milaboratories.immunomatch-assets:immunomatch-kappa")
immunomatchLambda := assets.importAsset("@platforma-open/milaboratories.immunomatch-assets:immunomatch-lambda")
```

> **Note:**
>
> The ImmunoMatch models are stored separately from the block to avoid bloating the block bundle with large assets. Creating assets and publishing them to the Platforma Registry will be covered in a later guide.
>
> In the development phase, the models can be imported from the local file system to avoid the need to publish them first.

#### Run the ImmunoMatch software

The ImmunoMatch software is a python script that can be run using the `exec` package.

*workflow/src/imm.tpl.tengo*

```go
immunoMatch := exec.builder().
    software(assets.importSoftware("@platforma-open/milaboratories.immuno-match.software:immuno-match")).
    // Create directories for the models
    mkDir("immunomatch-lambda").
    mkDir("immunomatch-kappa").
    // Add the models to the appropriate directories in the working directory
    addAsset(immunomatchKappa, "immunomatch-kappa", []).
    addAsset(immunomatchLambda, "immunomatch-lambda", []).
    // Add the tableBuilder created CSV table to the working directory
    addFile("input.csv", fullTable).
    // Pass the model directories and input CSV to the ImmunoMatch software as arguments
    arg("--kappa_dir").arg("immunomatch-kappa").
    arg("--lambda_dir").arg("immunomatch-lambda").
    arg("--input").arg("input.csv").
    // Output the predictions to a CSV file
    arg("--output").arg("predictions.csv").
    // Pass the column names for the VH, VL, and locus columns
    arg("--hseq_col").arg("VH").
    arg("--lseq_col").arg("VL").
    arg("--ltype_col").arg("locus").
    // Save the ImmunoMatch output CSV file to prevent it from being deleted after the template execution
    saveFile("predictions.csv").
    run()
```

### Export the ImmunoMatch results

Once the ImmunoMatch software has finished running, we can `getFile` any files it produced *and* were marked to be persisted (`saveFile`) after the template execution finishes.

*workflow/src/imm.tpl.tengo*

```go
predictionsCsv := immunoMatch.getFile("predictions.csv")
```

We can only export PColumns to the result pool, not files. So we need to parse the CSV file into a PColumn.

The actual thing we are exporting is a PFrame, which is like a table with a set of PColumns.

[As we saw earlier](#result-pool-data-pcolumns), PColumns have a `spec` property that describes them, which contains axes information, and axes are just other columns of unique identifiers for the PColumn data values that can be used to join PColumns with the same axes.

In the below code you can see that:

1. We use the SDK `xsv` package to parse the CSV file into a PFrame.

2. `axes`: specify the axes for the PFrame, which are the same as the ones used in the ImmunoMatch software.

3. `columns`: specify which CSV columns to include in the PFrame. In this case we are including just one column.

   - `column`: the header name of the CSV column to include.
   - `spec`: the spec for the PColumn, which describes the PColumn’s data type, name, and domain.

*workflow/src/imm.tpl.tengo*

```go
xsv := import("@platforma-sdk/workflow-tengo:pframes.xsv")
// Parse the output CSV as a PFrame with one PColumn for the pairing scores
predictionsPFrame := xsv.importFile(predictionsCsv, "csv",
    {
        axes: [{
            // CSV column that will be used as axis. Identified by the CSV header name
            column: "scClonotypeKey",
            // Define the axis spec that will be used in the created PColumn.
            // In this case we are using the axis spec as the heavy chain PColumn.
            spec: scKeyAxisSpec
        }],
        columns: [{
            // CSV column that will be used to create the PColumn. Identified by the CSV header name
            column: "pairing_scores",
            // Define the spec for the PColumn.
            spec: {
                valueType: "Double",
                name: "pl7.app/immunomatch/pairing_score",
                annotations: {
                    "pl7.app/label": "Pairing Score",
                    "pl7.app/vdj/receptor": "IG"
                },
                domain: {
                    "pl7.app/blockId": blockId,
                    "pl7.app/alphabet": "aminoacid",
                    "pl7.app/vdj/feature": "VDJRegion",
                    "pl7.app/vdj/scClonotypeChain/index": "primary"
                }
            }
        }]
    }
);


// Return the PFrame to the main template (main.tpl.tengo)
return {
    predictionsPf: predictionsPFrame
}
```

### Make the PFrame available to the UI and to the Result Pool for downstream blocks

*workflow/src/main.tpl.tengo*

```go
predictionsPf := immResult.output("predictionsPf")


return {
    outputs: {
        // UI will use outputs to display the predictions as a histogram.
        // Since the block workflow is executed on the back-end, we need to export the data to the client side.
        // `exportFrame` is needed to make the data available on the client side (model & UI)
        predictions: pframes.exportFrame(predictionsPf)
    },
    exports: {
        // Export the predictions to the results pool to make them available for downstream blocks
        predictionsPf: predictionsPf
    }
}
```

## Show the results in the UI

Workflow `outputs` are also visible in the block model.

The model will prepare the data to be displayed in the UI in one of the Platforma SDK UI toolkit components: the `GraphMaker` component, configured to display the `predictions` PFrame as a histogram.

All components in the toolkit are tailored to work with PFrames, know how to pull the data from the backend and properly display it in the UI.

![GraphMaker](/_astro/workflow-outputs-ui.BdqTZKbb_B064z.webp)

### Model: Prepare the PFrame for the GraphMaker component

*model/src/index.ts*

```ts
// Get the IMM predictions and prepare them for the histogram graph
  .output('predictions', (ctx) => {
    const pCols = ctx.outputs?.resolve('predictions')?.getPColumns();
    if (pCols === undefined) return undefined;


    return createPFrameForGraphs(ctx, pCols);
  })
```

### Model: Set GraphMaker initial configuration

The configuration is stored in the persistent UI state. All properties set in `.withUiState` will be persisted even if the view is switched to another block, or the Platforma Desktop Application is restarted.

*model/src/index.ts*

```ts
// Persisted UI state and initial graph configuration
export type UiState = {
  graphStateHistogram: GraphMakerState;
};


export const model = BlockModel.create()
// ... additional code omitted
.withUiState<UiState>({
    graphStateHistogram: {
      title: 'ImmunoMatch',
      template: 'bins',
      currentTab: null,
    },
  })
```

### UI: add the GraphMaker component to the block

Now that the GraphMaker data source PFrame and the initial configuration were created in the model, we can add the GraphMaker component to the block.

- `v-model` binds the UI state to the GraphMaker component.
- `:p-frame` binds the GraphMaker data source PFrame to the GraphMaker component.
- `:default-options` configures which PColumn from the PFrame will be used as the data source for the graph.

Original source code: [MainPage.vue](https://github.com/platforma-open/immuno-match/blob/fd9729ae204de9abe56bb94f6880f38e054a6381/ui/src/pages/MainPage.vue#L19)

*ui/src/pages/MainPage.vue*

```html
<!-- code removed for brevity -->
<GraphMaker
    v-model="app.model.ui.graphStateHistogram"
    chartType="histogram"
    :p-frame="app.model.outputs.predictions"
    :default-options="[{
      inputName: 'value',
      selectedSource: {
        kind: 'PColumn',
        name: 'pl7.app/immunomatch/pairing_score',
        valueType: 'Double',
        axesSpec: [
          {
            name: 'pl7.app/vdj/scClonotypeKey',
            type: 'String',
          },
        ],
      },
    }] satisfies PredefinedGraphOption<'histogram'>[]"
  />
```

## Development environment

Install the [Prerequisites](/sdk-getting-started/#prerequisites)

### Run Local back-end

Follow the instructions in [Run Local Backend](/sdk-dev-environment/#run-local-backend)

### Configure non-stable blocks repository channel

Open the Platforma Desktop Application and click “Settings”.

In the “Block Updates Channel” dropdown, select “any”.

![Settings](/_astro/block-updates-channel.CSo7CR0__mnWm6.webp)

### Configure development blocks registry

Follow the instructions in [Set Path to Development Blocks](/sdk-dev-environment/#set-path-to-development-blocks)

## Useful resources

1. [Block Repository Anatomy](/sdk-block-anatomy/)
2. [Workflow - Model - UI Diagram](/sdk-getting-started/#block-lifecycle)
3. [Workflow - schema for anchored columns queries](https://github.com/milaboratory/platforma/blob/5f4dacc32459b850192c0ff838c3300cb15ea550/sdk/workflow-tengo/src/workflow/model.lib.tengo#L48)
4. Resources - to be defined
5. [ImmunoMatch block source code at commit #fd9729](https://github.com/platforma-open/immuno-match/tree/fd9729ae204de9abe56bb94f6880f38e054a6381)

Source: https://docs.platforma.bio/sdk-block-development/
