FilterSubfeatures

Data Stream Processing > Processing Modules > General manipulation Modules

Description
The FilterSubfeatures processing module is designed to work on Features with subfeatures to remove subfeatures not specified in the category filtering and then rebuild the outer feature boundaries based on the remaining subfeatures. The module will resort features on the data stream as needed to preserve the stream integrity.

Parameters

 *  : defines the subfeatures which are retained in the rebuilt primary feature.

Example
This script combines two CalcInterSubfeatures modules with a FilterSubfeatures module to manipulate a complex gene model of exons and UTRs into a new gene model based on coding exons. It first creates intron features between the exons which might be labeled either as block or exon. The second CalcInterSubfeatures then uses 5utr and 3utr and intron as demarkation to create codingexon subfeatures. Lastly the FilterSubfeatures rebuilds the transcript gene model using only these codingexon subfeatures.

   block exon intron  5utr 3utr intron</category_filter> codingexon</new_subfeature_category> <spstream module="FilterSubfeatures"> codingexon</category_filter> </stream_queue> </zenbu_script>

Here is a ZENBU view showing this script in use http://fantom.gsc.riken.jp/zenbu/gLyphs/#config=adzrWGcdF1GoZMET-n_LRC;loc=hg19::chr8:128746973..128755020