Help CenterHelp Center
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
Hai fatto clic su un collegamento che corrisponde a questo comando MATLAB:
Esegui il comando inserendolo nella finestra di comando MATLAB. I browser web non supportano i comandi MATLAB.
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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office