distance_from_attractor_hard_filter: Remove connections to landmark nodes based on an expression...

Description Usage Arguments Value

View source: R/scaffold.R

Description

This function removes connections to a landmark node, in cases where the expression of all markers for that landmark is less than a threshold. This is useful when mapping data that contains markers which are all expected to be absent in certain landmarks

Usage

1
distance_from_attractor_hard_filter(dd, tab, col.names, thresh = 0.5)

Arguments

dd

A matrix of cosine similarity values between cluster nodes (rows) and landmark nodes (columns)

tab

A data.frame containing the data (median expression values) for the landmark nodes

col.names

A vector of colum names to be used for the computation

thresh

The threshold to use. Connections to landmarks for which the expression of all the markers is < thresh, will be removed

Value

Returns the same dd matrix, but with the values corresponding to the connections that have been removed set to 0


ParkerICI/scgraphs documentation built on April 30, 2021, 1:10 p.m.