Rename block in pipeline
Rename Blocks in Bioinformatics Pipeline
Import the Pipeline and block objects needed for the example.
import bioinfo.pipeline.Pipeline import bioinfo.pipeline.block.*
Create a pipeline.
p = Pipeline;
Create a FileChooser block.
FCB = FileChooser(which("ex1.bam"));
Add the block to the pipeline and set the block name to "File".
Rename the block. Use the existing block name to reference the block to be renamed.
ans = "BamFile"
Alternatively, you can use the block object itself.
ans = "Ex1Bam"
pipeline — Bioinformatics pipeline
Bioinformatics pipeline, specified as a
block — Pipeline block
bioinfo.pipeline.Block object | character vector | string scalar
Pipeline block, specified as a
bioinfo.pipeline.Block object, character vector, or string scalar,
representing the current block name.
name — New block name
character vector | string scalar
New block name, specified as a character vector or string scalar. The name must be a valid variable name and must be unique within a pipeline.
Introduced in R2023a