Main Content

bioinfo.pipeline.block.CuffMerge

Bioinformatics pipeline block to merge transcript assemblies

Since R2023a

  • cuffmerge block icon

Description

A CuffMerge block enables you to merge assembled transcripts from two or more GTF files.

The block requires the Cufflinks Support Package for the Bioinformatics Toolbox™. If the support package is not installed, then a download link is provided. For details, see Bioinformatics Toolbox Software Support Packages.

Creation

Description

example

b = bioinfo.pipeline.block.CuffMerge creates a CuffMerge block.

b = bioinfo.pipeline.block.CuffMerge(options) also specifies additional options.

b = bioinfo.pipeline.block.CuffMerge(Name=Value) specifies additional options as the property names and values of a CuffMergeOptions object. This object is set as the value of the Options property of the block.

Input Arguments

expand all

CuffMerge options, specified as a CuffMergeOptions object, string, or character vector.

If you are specifying a string or character vector, it must be in the CuffMerge native syntax (prefixed by one or two dashes) [1].

Name-Value Arguments

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Note

The following list of arguments is a partial list. For the complete list, refer to the properties of CuffMergeOptions object.

The commands must be in the native syntax (prefixed by one or two dashes). Use this option to apply undocumented flags and flags without corresponding MATLAB® properties.

When the software converts the original flags to MATLAB properties, it stores any unrecognized flags in this property.

Example: '--library-type fr-secondstrand'

Data Types: char | string

Flag to include all the object properties with the corresponding default values when converting to the original options syntax, specified as true or false. You can convert the properties to the original syntax prefixed by one or two dashes (such as '-d 100 -e 80') by using getCommand. The default value false means that when you call getCommand(optionsObject), it converts only the specified properties. If the value is true, getCommand converts all available properties, with default values for unspecified properties, to the original syntax.

Note

If you set IncludeAll to true, the software converts all available properties, using default values for unspecified properties. The only exception is when the default value of a property is NaN, Inf, [], '', or "". In this case, the software does not translate the corresponding property.

Example: true

Data Types: logical

Properties

expand all

Function to handle errors from the run method of the block, specified as a function handle. The handle specifies the function to call if the run method encounters an error within a pipeline. For the pipeline to continue after a block fails, ErrorHandler must return a structure that is compatible with the output ports of the block. The error handling function is called with the following two inputs:

  • Structure with these fields:

    FieldDescription
    identifierIdentifier of the error that occurred
    messageText of the error message
    indexLinear index indicating which block process failed in the parallel run. By default, the index is 1 because there is only one run per block. For details on how block inputs can be split across different dimensions for multiple run calls, see Bioinformatics Pipeline SplitDimension.

  • Input structure passed to the run method when it fails

Data Types: function_handle

This property is read-only.

Input ports of the block, specified as a structure. The field names of the structure are the names of the block input ports, and the field values are bioinfo.pipeline.Input objects. These objects describe the input port behaviors. The input port names are the expected field names of the input structure that you pass to the block run method.

The CuffMerge block Inputs structure has the following field:

  • GenomicAlignmentFiles — Names of SAM or BAM files containing alignment records for each sample. This input is a required input that must be satisfied. The default value is a bioinfo.pipeline.datatypes.Unset object, which means that the input value is not set yet.

Data Types: struct

This property is read-only.

Output ports of the block, specified as a structure. The field names of the structure are the names of the block output ports, and the field values are bioinfo.pipeline.Output objects. These objects describe the output port behaviors. The field names of the output structure returned by the block run method are the same as the output port names.

The CuffMerge block Outputs structure has the following field:

  • MergedGTFFile — Name of the output GTF file containing the merged transcriptome.

Tip

To see the actual location of the output file, first get the results of the block. Then use the unwrap method as shown in this example.

Data Types: struct

CuffMerge options, specified as a CuffMergeOptions object. The default value is a default CuffMergeOptions object.

Object Functions

compilePerform block-specific additional checks and validations
copyCopy array of handle objects
emptyInputsCreate input structure for use with run method
evalEvaluate block object
runRun block object

Examples

collapse all

Merge GTF files that contain assembled isoforms.

import bioinfo.pipeline.block.*
import bioinfo.pipeline.Pipeline

gtfFiles = {which("Myco_1_1.transcripts.gtf"), which("Myco_1_2.transcripts.gtf")};
FC = FileChooser(gtfFiles);
CM = CuffMerge;

P = Pipeline;
addBlock(P,[FC,CM]);
connect(P,FC,CM,["Files","GenomicAnnotationFiles"]);

run(P);
R = results(P,CM)
R = 

  struct with fields:

    MergedGTFFile: [1×1 bioinfo.pipeline.datatypes.File]

Call unwrap on the field of the result structure R.

unwrap(R.MergedGTFFile)
ans = 

    "C:\PipelineResults\CuffMerge_1\1\merged_asm\merged.gtf"

References

[1] Trapnell, Cole, Brian A Williams, Geo Pertea, Ali Mortazavi, Gordon Kwan, Marijke J van Baren, Steven L Salzberg, Barbara J Wold, and Lior Pachter. “Transcript Assembly and Quantification by RNA-Seq Reveals Unannotated Transcripts and Isoform Switching during Cell Differentiation.” Nature Biotechnology 28, no. 5 (May 2010): 511–15.

Version History

Introduced in R2023a