In the fastreseg_full_pipeline(), I am running into problems when the updated_perCellExprs matrices do not have the probes in a consistent order across all FOVs. The final merge step in the pipeline then silently mixes up the probes because cbind assumes that all columns are in the same order.
|
updated_perCellExprs <- do.call(cbind, updated_perCellExprs) |
This lead to some strange downstream results which disappeared when I merged the per-FOV matrices from the each_segRes.rds files manually and ensured that all columns and rows matched up.
I think this may have something to do with (control) probes that remain undetected being pushed to the end of the list but I am not sure about this.
In the
fastreseg_full_pipeline(), I am running into problems when theupdated_perCellExprsmatrices do not have the probes in a consistent order across all FOVs. The final merge step in the pipeline then silently mixes up the probes becausecbindassumes that all columns are in the same order.FastReseg/R/fastReseg_full_pipeline.R
Line 485 in efad6dc
This lead to some strange downstream results which disappeared when I merged the per-FOV matrices from the
each_segRes.rdsfiles manually and ensured that all columns and rows matched up.I think this may have something to do with (control) probes that remain undetected being pushed to the end of the list but I am not sure about this.