Skip to contents

supporting function for groupTranscripts_Delaunay, assign group ID for 3 transcripts in single cell in 3D based on distant cutoff

Usage

myFun_3point_singleCell(
  dfCoord_subset,
  transSpatLocs_coln = c("x", "y", "z"),
  distance_cutoff = 2.7,
  startGroup = 1
)

Arguments

dfCoord_subset

transcript data.table for single cell with only 3 transcripts in rows

transSpatLocs_coln

the column name of 1st, 2nd, optional 3rd spatial dimension of each transcript in transcript_df

distance_cutoff

maximum distance within connected transcript group

startGroup

the index of starting group ID

Value

a data.table with transcript_group column added to original input data.table