rnalysis.filtering.DESeqFilter.split_fold_change_direction
- DESeqFilter.split_fold_change_direction() tuple
Splits the features in the DESeqFilter object into two non-overlapping DESeqFilter objects, based on the direction of their log2foldchange. The first object will contain only features with a positive log2foldchange, the second object will contain only features with a negative log2foldchange.
- Return type:
Tuple[filtering.DESeqFilter, filteirng.DESeqFilter]
- Returns:
a tuple containing two DESeqFilter objects: the first has only features with positive log2 fold change, and the other has only features with negative log2 fold change.
- Examples:
>>> from rnalysis import filtering >>> d = filtering.DESeqFilter('tests/test_files/test_deseq.csv') >>> pos, neg = d.split_fold_change_direction() Filtered 2 features, leaving 26 of the original 28 features. Filtering result saved to new object. Filtered 26 features, leaving 2 of the original 28 features. Filtering result saved to new object.