results
Description
returns the results of blockResults
= results(pipeline
,block
)block
in the
pipeline
.
Tip
Use fetchResults
instead of results
if you
are running in parallel. fetchResults
waits for the block to
complete before returning its results.
Examples
Get Block Results from Bioinformatics Pipeline
Import the pipeline and block objects needed for the example.
import bioinfo.pipeline.Pipeline import bioinfo.pipeline.block.*
Create a pipeline.
P = Pipeline;
Create the FileChooser and SamSort blocks.
FCB = FileChooser(which("ex1.sam"));
SSB = SamSort;
Add blocks to the pipeline and connect them.
addBlock(P,[FCB,SSB]); connect(P,FCB,SSB,["Files","SAMFile"]);
Run the pipeline.
run(P);
The outputs of the FileChooser and SamSort blocks are files that are saved to your file system.
fcbResults = results(P,FCB)
fcbResults = struct with fields:
Files: [1×1 bioinfo.pipeline.datatype.File]
ssbResults = results(P,SSB)
ssbResults = struct with fields:
SortedSAMFile: [1×1 bioinfo.pipeline.datatype.File]
Tip: Use the unwrap
method to see the location of the output file. For example, unwrap(ssbResults.SortedSAMFiles)
shows the location of the sorted SAM file.
Input Arguments
pipeline
— Bioinformatics pipeline
bioinfo.pipeline.Pipeline
object
Bioinformatics pipeline, specified as a bioinfo.pipeline.Pipeline
object.
block
— Block in pipeline
bioinfo.pipeline.Block
object | character vector | string scalar
Block in the pipeline, specified as a scalar bioinfo.pipeline.Block
object, character vector, or string scalar as the block
name. To get the list of block names, enter pipeline
.BlockNames
at the
command line.
Output Arguments
blockResults
— Block results
structure | bioinfo.pipeline.datatypes.Incomplete
Block results, returned as a structure or
bioinfo.pipeline.datatypes.Incomplete
object. The
Incomplete
object is returned if the block results are not yet
computed or available.
If it is a structure, the field names are the output port names of the block, and
the field values are the output values. If you have not run the pipeline or the results
are not available yet, each output value has the default value of
Incomplete
, which is a
bioinfo.pipeline.Incomplete
object.
Data Types: struct
Version History
Introduced in R2023a
Apri esempio
Si dispone di una versione modificata di questo esempio. Desideri aprire questo esempio con le tue modifiche?
Comando MATLAB
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:
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
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)