parseSpotFile: Parse spot detector output

Description Usage Arguments Value Examples

View source: R/utility.R

Description

Parses the output from the ST spot detector tool for use with SpatialCPie.

Usage

1

Arguments

file

spot file

Value

data.frame with columns "x" and "y" specifying the pixel coordinates of each spot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Create spot file
data <- rbind(
    c(7, 18, 7.00, 18.07, 563.2, 947.0),
    c(8, 11, 8.00, 11.04, 612.5, 627.7)
)
filename <- tempfile()
write.table(
    data,
    file = filename,
    sep = "\t",
    quote = FALSE,
    col.names = c("x", "y", "new_x", "new_y", "pixel_x", "pixel_y")
)

## Parse spot file
parseSpotFile(filename)

## Delete spot file
unlink(filename)

Example output

Warning message:
In grepl("^[a-z0-9\\-_][a-z0-9\\-_.]*$", prefix, ignore.case = TRUE,  :
  PCRE JIT compilation error
	'no more memory'
         x     y
7x18 563.2 947.0
8x11 612.5 627.7
Warning message:
system call failed: Cannot allocate memory 

SpatialCPie documentation built on Nov. 8, 2020, 7:43 p.m.