getTrajectory sums traj value across breaks instead of mean? #1291
Unanswered
Zepeng-Mu
asked this question in
Questions / Documentation
Replies: 1 comment 1 reply
-
Unless I'm mis-understanding your post, this would normally be handled by the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm trying to plot "MotifMatrix" value along a trajectory, which is similar to pueudotime but not exactly the same.
I found that in
getTrajectory
, trajectory values are divided into 100 bins, and this comes as natural because trajectory value is between 1 and 100. Then the matrix values in these bins are sum together, and this is done by.getGroupMatrix
function. I think this is a bit problematic in my case, because in my data 80% of the cells have a trajectory value below 10, and the rest are distributed between 10 and 100 for instance. In this case, even if a matrix value is correlated with trajectory score, it may not be the case after summing and smoothing, because the number of cells in each bin (therefore summation) is biased towards those with low trajectory scores.I think at least in my case, getting the mean instead of sum would make more sense. I'm wondering whether it's possible to have this feature in the package.
Thanks so much!
Beta Was this translation helpful? Give feedback.
All reactions