-
Notifications
You must be signed in to change notification settings - Fork 229
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
column_order
is ignored when column_split
is used
#1166
Comments
column_order
is ignored when column_split
is used
I posted a full MWE in here, pasted below as well: Check the following MWE with the iris data. 1- Create my data matrix (small subset of iris for just setosa and virginica Species), and a meta information data frame with just sample ID and Species (my grouping variable):
These look like this:
2- Define heatmap and Species grouping colors, column annotation (Species groups), column order and column split (gap between Species groups):
Note here (and this is the problem), that I want the virginica group on the left, and the setosa group on the right, so my column order is the following:
3- Make the heatmap without column_split:
This is all good, the heatmap produced below has my sample IDs ordered correctly with virginica on the left (in blue as specified by col_vector), and setosa on the right (in red as specified by col_vector): 4- Make the heatmap with column_split; if I just uncomment the column_split line that specifies to split the column by the Species variable, I woould expect the exact same heatmap, with just a gap between the two Species groups. However, the column_order is ignored, and setosa samples appear on the left...
|
column_order
is ignored when column_split
is usedcolumn_order
is ignored when column_split
is used
Found the answer, The solution is to define
|
Hey, The only solution I could find was |
See if any of these 2 questions in stackoverflow help you out: |
I tried above suggested method to re-order the columns but no help.
Error: When |
I have a heat map like this, where I apply
column_order
to obtain the order of columns that I want (withNoT
group beforeLTR
group):Now I just want to apply a column gap between the
NoT
and theLTR
columns. For that I usecolumn_split
with a variable that maps my matrix column names to their group, in the same order.This worked for me before, cause my groups were
A
andB
, so the A-B order was kept. However, now I want to plot this groups as B-A, so when I applycolumn_split
, the group order is reversed, ignoring mycolumn_order
.How can I overcome this? I tried changing the order of my split variable, but to no avail. Thanks!
The text was updated successfully, but these errors were encountered: