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
First, thanks a lot for the package, it is very useful!
I have a problem with the FeaturePlot_scCustom function. The gene names for the organism I am studying are quite big (for instance: "typeII-glutathioneperoxidase-like-tryparedoxinperoxidase.1"
In the FeaturePlot function from seurat, the feature names are ploted in the secondary Y axis if "split.by" is set:
However, in FeaturePlot_scCustom, the feature names are plotted as a title for the color scale. In case gene names have different sizes, this leads to plots with different widths:
But then there is no information on which feature is being plotted in each row. Would it be possible to add an option to plot the feature names in the secondary Y axis as FeaturePlot() from seurat does?
Thanks once again for the package!
Gabriel
The text was updated successfully, but these errors were encountered:
Thanks for kind words. I think I can probably do that but it would have to come with tradeoffs. The reason I don't use secondary y-axis for gene names is because I've implemented code to allow for selection of column number when returning split plots (which Seurat doesn't, potentially for this reason?). Therefore it's possible to end up with multiple features in same row.
I think I can implement an optional parameter to switch it to the secondary y-axis with the sacrifice that column number will be automatically set based on the number of split.by conditions to avoid issues in confused labeling.
Feature is now live in the dev branch v0.7.0.9946. The new parameter is called label_feature_yaxis and logical that is set to FALSE by default. It is only applicable when using split.by and again when used it will auto set the number of columns of the output. It will issue a warning if user tries to set provide column number and set parameter to TRUE and abort the function if user does not provide split.by.
If you have any issues let me know and I can reopen the issue. I will be planning on full release on master branch for scCustomize this week or next but develop branch should be stable to download now for you to start using function.
Hi,
First, thanks a lot for the package, it is very useful!
I have a problem with the FeaturePlot_scCustom function. The gene names for the organism I am studying are quite big (for instance: "typeII-glutathioneperoxidase-like-tryparedoxinperoxidase.1"
In the FeaturePlot function from seurat, the feature names are ploted in the secondary Y axis if "split.by" is set:
features_to_plot <- c("hypotheticalprotein.50", "typeII-glutathioneperoxidase-like-tryparedoxinperoxidase.1") FeaturePlot(seuratObj, features_to_plot, split.by = "sample")
However, in FeaturePlot_scCustom, the feature names are plotted as a title for the color scale. In case gene names have different sizes, this leads to plots with different widths:
features_to_plot <- c("hypotheticalprotein.50", "typeII-glutathioneperoxidase-like-tryparedoxinperoxidase.1") FeaturePlot_scCustom(seuratObj, features_to_plot, split.by = "sample")
I can fix this by removing the legend title by adding a theme() function:
features_to_plot <- c("hypotheticalprotein.50", "typeII-glutathioneperoxidase-like-tryparedoxinperoxidase.1") FeaturePlot_scCustom(seuratObj, features_to_plot, split.by = "sample")& theme(legend.title = element_blank())
But then there is no information on which feature is being plotted in each row. Would it be possible to add an option to plot the feature names in the secondary Y axis as FeaturePlot() from seurat does?
Thanks once again for the package!
Gabriel
The text was updated successfully, but these errors were encountered: