-
Notifications
You must be signed in to change notification settings - Fork 18
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
problem: dec_cci and dec_cci_all #10
Comments
You can set |
@jinyuanchun I have checked the code and I guess the reason might be that the nrow of |
@jinyuanchun Another reason is that the names of cells or spots contain |
|
@hahia I guess it might be the names of |
Ok! Problem solved. |
thank you
| |
***@***.***
|
|
***@***.***
|
…---- Replied Message ----
| From | ***@***.***> |
| Date | 02/17/2023 09:31 |
| To | ***@***.***> |
| Cc | ***@***.***>***@***.***> |
| Subject | Re: [ZJUFanLab/SpaTalk] problem: dec_cci and dec_cci_all (Issue #10) |
@hahia I guess it might be the names of ***@***.***$rawmeta$cell. You could paste a C to the cellname, e.g., C111300, C30834, and re-run the codes starting from createSpaTalk()
Ok! Problem solved.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hi, When I used dec_cci and dec_cci_all to analysis my data about cell-cell communications
and it pops errors
dec_cci error :
dec_cci_all error
Note: there are 6 cell types and 30 pair-wise cell pairs
Begin to find LR pairs
Error in {: task 1 failed - "invalid character indexing"
Traceback:
. "reshape2"), .export = c(".get_cellpair", ".lr_distance",
. ".get_tf_res", ".get_score")) %dopar% {
. celltype_sender <- celltype_pair$celltype_sender[i]
. celltype_receiver <- celltype_pair$celltype_receiver[i]
. cell_pair <- .get_cellpair(celltype_dist, st_meta, celltype_sender,
. celltype_receiver, n_neighbor)
. cell_sender <- st_meta[st_meta$celltype == celltype_sender,
. ]
. cell_receiver <- st_meta[st_meta$celltype == celltype_receiver,
. ]
. cell_pair_all <- nrow(cell_sender) * nrow(cell_receiver)/2
. if (nrow(cell_pair) > min_pairs) {
. if (nrow(cell_pair) > cell_pair_all * min_pairs_ratio) {
. lrdb <- object@lr_path$lrpairs
. lrdb <- .lr_distance(st_data, cell_pair, lrdb, celltype_sender,
. celltype_receiver, per_num, pvalue)
. max_hop <- object@para$max_hop
. receptor_tf <- NULL
. if (nrow(lrdb) > 0) {
. receptor_tf <- .get_tf_res(celltype_sender, celltype_receiver,
. lrdb, ggi_tf, cell_pair, st_data, max_hop,
. co_exp_ratio)
. if (!is.null(receptor_tf)) {
. lrdb <- .get_score(lrdb, receptor_tf)
. }
. else {
. lrdb <- NULL
. }
. }
. if (is.data.frame(lrdb)) {
. if (nrow(lrdb) > 0) {
. list(lrdb = lrdb, receptor_tf = receptor_tf,
. cell_pair = cell_pair)
. }
. }
. }
. }
. }
The text was updated successfully, but these errors were encountered: