Additional parameters in some functions - new functions
See original GitHub issueDear all,
I am writing to ask you some other functionalities. I have just moved from Seurat to Scanpy and I am finding Scanpy a very nice and well done Python package.
-
I wrote a function to show the 3D plot of the UMAP, tSNE and PCA spaces. In the
scanpy.tl.tsne
function is not possible to change the number of components, it calculates only the first two components, even if thescanpy.pl.tsne
function has a parametercomponent
. May you add a parameter like then_components
of thescanpy.tl.umap
function? -
In the
rank_genes_groups
function the log2FC values are provided only for ‘t-test’ based methods. May you return the log2FC values (maybe named log2FC) for all the implemented statistical methods? -
I think that two parameters in the
rank_genes_groups
function should be added.min_pCells
to test only the genes that are detected in a minimum fraction of cells of either of the two populations (e.g., cluster 0 vs rest). For instance, min_pCells=0.3 means that at least 30% of the cells must express that gene.positive
, if it is True, the function should return only positive marker genes for each population.
-
A function showing the volcano plots (based on the log2FC) can help (I can write it if the log2FC values are provided).
Thank you in advance. Best, Andrea
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:23 (12 by maintainers)
Sorry this is a little off topic, but it’s something I’ve found useful:
@LuckyMD and anyone else looking for an interactive volcano plot, I’ve been using
hvplot
in my notebooks. A volcano plot can be made from DE data frame with something like:Complete example using scanpy
@LuckyMD your tutorial is very interesting! I agree with you regarding the
min_pCells
parameter, it should be used as a filtering step before calculating the marker genes.