MATLAB 帮助中心
Return the names of specified blocks in pipeline
Since R2023a
names = blockName(pipeline,blocks)
names = blockName(pipeline,blocks) returns the names of the blocks in the pipeline.
names
pipeline
blocks
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.
fcBlock = FileChooser(which("ex1.sam"));
Create a SamSort block.
ssBlock = SamSort;
Add blocks to the pipeline.
addBlock(P,[fcBlock,ssBlock]);
Retrieve the block names.
bNames = blockName(P,[fcBlock,ssBlock])
bNames = 1×2 string "FileChooser_1" "SamSort_1"
bioinfo.pipeline.Pipeline
Bioinformatics pipeline, specified as a bioinfo.pipeline.Pipeline object.
bioinfo.pipeline.Block
Blocks in the pipeline, specified as a bioinfo.pipeline.Block object or vector of such objects.
Block names, returned as a string scalar or string array. If blocks is an array, names(i) is the name of the ith block blocks(i).
names(i)
blocks(i)
Introduced in R2023a
bioinfo.pipeline.Block | bioinfo.pipeline.Pipeline | Biopipeline Designer
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 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处