thematic_search.FuzzyQuery

class thematic_search.FuzzyQuery(db, matrix: ndarray)

A query object operating on the entire soft cluster matrix at once.

__init__(db, matrix: ndarray)

Methods

__init__(db, matrix)

samples([threshold])

Return a SampleQuery containing samples that are contained in at least one topic with strength >= threshold.

samples_where(query)

Apply a sample metadata filter to the query.

topics([threshold])

Return a TopicQuery containing topics that contain at least one sample with strength >= threshold.

topics_where(query)

Apply a topic metadata filter to the query by computing the colimit over the topic tree indexed by the filter.

unwrap()