MATLAB Help Center
Rename block in pipeline
Since R2023a
renameBlock(pipeline,block,name)
renameBlock(pipeline,block,name) sets the name of the block to the specified name.
pipeline
block
name
example
collapse all
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".
addBlock(p,FCB,"File");
Rename the block. Use the existing block name to reference the block to be renamed.
renameBlock(p,"File","BamFile"); p.BlockNames
ans = "BamFile"
Alternatively, you can use the block object itself.
renameBlock(p,FCB,"Ex1Bam"); p.BlockNames
ans = "Ex1Bam"
bioinfo.pipeline.Pipeline
Bioinformatics pipeline, specified as a bioinfo.pipeline.Pipeline object.
bioinfo.pipeline.Block
Pipeline block, specified as a bioinfo.pipeline.Block object, character vector, or string scalar, representing the current block name.
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
removeBlock | addBlock | findBlock | bioinfo.pipeline.Block | bioinfo.pipeline.Pipeline | Biopipeline Designer
removeBlock
addBlock
findBlock
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
Europe
Asia Pacific
Contact your local office