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.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ