-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with count touching cells #4
Comments
Your code looks fine. Are you using the latest version of phenoptr? If so, can you send me the cell seg data and segmentation map files that are failing? (Add |
Thank you for your suggestion. I found the error causing file pair and removed it. The script run fine after that. |
This problem occurred when there was a single touching cell pair. Fixed with the above commit. |
Thank you for the failing example. The error occurred when there was
exactly one touching cell pair. It is fixed now in the development version
of phenoptr. You can install this with
devtools::install_github('akoyabio/phenoptr@9000')
Thanks again,
Kent
…On Tue, Apr 9, 2019 at 9:16 PM Athanasios72 ***@***.***> wrote:
Closed #4 <#4>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AOFrjaLsQUylNgwH94EvwJ89XWLMJJUPks5vfTt3gaJpZM4cXD90>
.
--
*Kent Johnson | Principal Software Developer*
|
Hi Kent,
I have been having an issue with count_touching_cells. I have used the following code in RStudio on a Windows PC:
**base_path <- '~/OPAL R ANALYSIS/T panel/SPATIAL ANALYSIS/TOUCH PAIRS/IMminGC/SEGNO/'
paths <- list_cell_seg_files(base_path)
files <- list_cell_seg_files(base_path)
pairs <- list(
c('CD3DN', 'AE1AE3'),
c('CD3DN', 'CD3CD4'),
c('CD3DN', 'CD3CD4FOXP3'),
c('CD3DN', 'CD3CD8')
)
write_images <- FALSE
touch_counts <- purrr::map_df(files, function(path) {
count_touching_cells(path, pairs, write_images=write_images)
})**
I get the following error message:
Error in touch_pairs[, 1] : incorrect number of dimensions
Called from: unique(touch_pairs[, 1])
Is there anything wrong with the script?
Many thanks.
Kind regards,
Athanasios
The text was updated successfully, but these errors were encountered: