#include <hatrees.h>
Public Types | |
| typedef map< T, node< T > * >::iterator | niterator |
| typedef map< T, node< T > * >::const_iterator | const_niterator |
Public Member Functions | |
| hatrees () | |
| hatrees (const std::multimap< T, T > &mm) | |
| ~hatrees () | |
| void | clear () |
| void | readFromMap (const std::multimap< T, T > &m) |
| void | readFromFile (const string &file) |
| void | showStore (ostream &os) const |
| int | getNodeCount () const |
| void | showCluster (ostream &os, bool reverse=true) |
| void | showClusterIntId (ostream &ous, int &id) |
| int | showClusterByLine (ostream &os) |
| set< T > | keyset () const |
| vector< T > | keyarray () const |
| void | clusterArray (vector< set< T > > &vecset) |
| std::multimap< T, T > & | getCluster () |
Private Member Functions | |
| void | transform () |
Private Attributes | |
| map< T, node< T > * > | nodes |
| std::multimap< T, T > | result |
build a cluster object directly from multimap Save the call to readFromMap()
References hatrees< T >::nodes.
Referenced by breakonecl().
References join(), hatrees< T >::nodes, and T.
Referenced by breakonecl(), buildGeneCluster(), clusterFromTable(), hatrees< std::string >::hatrees(), and qual().
References ifstream(), join(), hatrees< T >::nodes, and T.
Referenced by clusterFromFile(), and main().
using representative as cluster id, results inserted into tab changes the parent pointer of the nodes
References getRoot(), node< T >::key, and hatrees< T >::nodes.
Referenced by clusterFromFile(), and main().
number of unique members
Referenced by clumpModelIntoGene(), clusterFromFile(), clusterFromTable(), clustergene(), main(), and qual().
in a table format: (cluster_id(representative), members)
References hatrees< T >::result, and hatrees< T >::transform().
Referenced by clusterFromFile(), and main().
an initial id is given, the program will auto_increment this id. This should work with either string or int type of idtype.
References hatrees< T >::result, T, and hatrees< T >::transform().
Referenced by breakonecl(), and main().
return the number of clusters
Display one cluster per line, with all members on the same line
References hatrees< T >::result, T, and hatrees< T >::transform().
Referenced by clusterFromFile(), main(), and qual().
return all the keys as a set<T> it is all the members in the input. Useful for finding singleton clusters.
References hatrees< T >::nodes.
Referenced by clumpModelIntoGene(), clustergene(), and qual().
References hatrees< T >::nodes.
produce an array of clusters, used call by reference to avoid creating tmp and copying. The result could be used for further analysis. This is one of the output methods.
References hatrees< T >::result, T, and hatrees< T >::transform().
Referenced by breakonecl(), clumpModelIntoGene(), and clustergene().
Return a relational table with two columns: | representative | member | Use this method to load into database tables. Singletons are not included in the output.
Referenced by buildGeneCluster(), and loadIntoTable().
This is the result table: representative->members Should have another method to return a reversed result.
Referenced by hatrees< std::string >::clear(), hatrees< T >::clusterArray(), hatrees< std::string >::getCluster(), hatrees< T >::showCluster(), hatrees< T >::showClusterByLine(), hatrees< T >::showClusterIntId(), and hatrees< T >::transform().
1.5.6