chemicalchecker.util.aggregate.aggregate.AggregateAsPairs
- class AggregateAsPairs(method)[source]
Bases:
object
AggregateAsPairs class.
Given a matrix with potential duplicates, aggregate them.
Initialize a AggregateAsPairs instance.
- Parameters:
method (str) – The aggregation method to be used. Must be one of: -first: The first occurrence of the signature is kept. -last: The last occurrence of the signature is kept. -average: The average of the signature is kept.
Methods
Get aggregation function.