| 1 |
/** |
| 2 |
|
| 3 |
Copyright (c) 2010-2015, Daniel S. Standage and CONTRIBUTORS |
| 4 |
|
| 5 |
The AEGeAn Toolkit is distributed under the ISC License. See |
| 6 |
the 'LICENSE' file in the AEGeAn source code distribution or |
| 7 |
online at https://github.com/standage/AEGeAn/blob/master/LICENSE. |
| 8 |
|
| 9 |
**/ |
| 10 |
#ifndef AEGEAN_ATTRIBUTE_FILTER_STREAM |
| 11 |
#define AEGEAN_ATTRIBUTE_FILTER_STREAM |
| 12 |
|
| 13 |
#include "extended/node_stream_api.h" |
| 14 |
#include "core/hashmap_api.h" |
| 15 |
#include "AgnUnitTest.h" |
| 16 |
|
| 17 |
/** |
| 18 |
* @class AgnFilterStream |
| 19 |
* |
| 20 |
* Implements the GenomeTools ``GtNodeStream`` interface. This is a node stream |
| 21 |
* used to remove features with certain attributes from a node stream. |
| 22 |
*/ |
| 23 |
typedef struct AgnAttributeFilterStream AgnAttributeFilterStream; |
| 24 |
|
| 25 |
/** |
| 26 |
* @function Class constructor. The keys of the `filters` hashmap should be the |
| 27 |
* attribute keys/value pairs (such as `partial=true` or `pseudo=true`) to test |
| 28 |
* each feature node against. The values associated with each key in the hashmap |
| 29 |
* can be any non-NULL value. Any feature node having an attribute key/value |
| 30 |
* pair matching an entry in the hashmap will be discarded. |
| 31 |
*/ |
| 32 |
GtNodeStream* agn_attribute_filter_stream_new(GtNodeStream *in_stream, |
| 33 |
GtHashmap *filters); |
| 34 |
|
| 35 |
/** |
| 36 |
* @function Run unit tests for this class. |
| 37 |
*/ |
| 38 |
bool agn_attribute_filter_stream_unit_test(AgnUnitTest *test); |
| 39 |
|
| 40 |
#endif |