Opened 14 years ago

Last modified 14 years ago

#139 new request

Combinations of Target objects

Reported by: Peter Owned by: Peter
Priority: minor Milestone: yat 0.x+
Component: classifier Version: trunk
Keywords: Cc:

Description (last modified by Jari Häkkinen)

See also #150

The Target has got some binary functionality see e.g. set_binary() and binary(). So for example for a genomic Target with labels "deleted", "mutated", and "wild-type" Target can be set so binary answers the question "Is that sample wild-type?". Having more than one Targets say x and y, it would be useful to be able to create a new Target Z that is some sort of logical combination of X and Y. For example elemnt i in Z could be true if X AND Y are true in element i.

It could look something like

Target Z = combine(X,Y, Logic), where Logic is a binary_function<bool, bool, bool> such as std::logical_and<bool> or std::logical_or<bool>.

Or perhaps even make it a constructor in target class.

Change History (3)

comment:1 Changed 14 years ago by Peter

This should probably be a feature for microarray::DataSet? #150 not for Target itself.

comment:2 Changed 14 years ago by Jari Häkkinen

Type: idearequest

Removing type "idea" and changing this to a "request".

comment:3 Changed 14 years ago by Jari Häkkinen

Description: modified (diff)
Note: See TracTickets for help on using tickets.