MATLAB 帮助中心
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.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处