Add blocks to pipeline
, for any
syntax, returns the added block or vector of blocks
addedBlocks = addBlock(___)
outBlocks as a
bioinfo.pipeline.Block object or vector of such objects.
Add Blocks to Bioinformatics Pipeline
Import the Pipeline and block objects needed for the example.
import bioinfo.pipeline.Pipeline import bioinfo.pipeline.block.*
Create a pipeline.
qcpipeline = Pipeline;
Select an input FASTQ file using a
fastqfile = FileChooser(which("SRR005164_1_50.fastq"));
fastqfile block to the pipeline.
By default, if you do not provide the block name, the pipeline gives a unique and valid variable name for the block when the block is added to the pipeline.
ans = "FileChooser_1"
Add the sequence filter (
SeqFilter) block to the pipeline. Optionally, you can provide the block name.
sequenceFilter = addBlock(qcpipeline,SeqFilter,"SF"); qcpipeline.BlockNames
ans = 2×1 string "FileChooser_1" "SF"
pipeline — Bioinformatics pipeline
Bioinformatics pipeline, specified as a
blockNames — Names of input blocks
character vector | string scalar | string vector | cell array of character vectors
Names of input blocks, specified as a character vector, string scalar, string vector, or cell array of character vectors.
inBlocks is a single block,
must be a character vector or string scalar. Otherwise,
must be a string vector or cell array of character vectors with the same number of
inBlocks. The block names must be valid variable names
and must be unique within a pipeline.
Introduced in R2023a