You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When comparing two groups, it is standard practice to set the levels of the grouping variable (factor) in order to control which group is being used as the reference. Libra does not respect factor levels in the metadata label_col, meaning that it may or may not use the reference group specified by the user. This is a problem because A) half the time it's not doing the comparison the user intends and B) in order to find out what comparison it actually is doing, the user has to inspect the expression levels of individual genes and compare them to the sign of the fold change in the Libra output.
A hacky way around this exists: if you're not getting the comparison you want, swap the reference level, even if that means setting it to the level that you explicitly don't want to be the reference. This is clearly undesirable, though.
The text was updated successfully, but these errors were encountered:
By default, Libra will refactor according to the character order of the labels. We understand this is non-optimal and we will push a fix soon where we can include factor_levels as an argument.
When comparing two groups, it is standard practice to set the levels of the grouping variable (factor) in order to control which group is being used as the reference. Libra does not respect factor levels in the metadata
label_col
, meaning that it may or may not use the reference group specified by the user. This is a problem because A) half the time it's not doing the comparison the user intends and B) in order to find out what comparison it actually is doing, the user has to inspect the expression levels of individual genes and compare them to the sign of the fold change in the Libra output.A hacky way around this exists: if you're not getting the comparison you want, swap the reference level, even if that means setting it to the level that you explicitly don't want to be the reference. This is clearly undesirable, though.
The text was updated successfully, but these errors were encountered: