scGSVA icon indicating copy to clipboard operation
scGSVA copied to clipboard

Use a custom gene set?

Open heinin opened this issue 3 years ago • 6 comments

Is it possible to use a custom gene set to calculate the enrichment scores?

heinin avatar Nov 09 '22 20:11 heinin

Hi @heinin, I am not sure your "custom gene set" looks like? maybe a matrix? Yes, it supports; a vector ? No. Or "custom gene set" mean the annotation file? Yes, it supports. K

guokai8 avatar Nov 10 '22 01:11 guokai8

Thank you for developing this package. As of now, it looks like I have to build an annotation object which is restricted to few databases. Sometimes, i want to run custom gene sets as mentioned above. This can be made into a data frame where I have a column for genes and a second column for Function/Annotation. Another way could be as named lists or GMT files. Will it be possible to build an annotation object from a custom gene set like that to be used with scGSVA?

Thanks, Saeed

saeedfc avatar Dec 13 '22 14:12 saeedfc

Hi @saeedfc, You can use the annotation file with a dataframe (first column is the gene name, second column is the Function or Annotation). Please try it and then let me know if you have any issues. And if you want to have a annotation object, you can use my bioAnno (https://github.com/guokai8/bioAnno) package with the fromOwn function. K

guokai8 avatar Dec 14 '22 03:12 guokai8

Thanks, it works. However, it needs 3 columns in the annotation data frame. 1st for genes and 3rd for annotation of the genes.

saeedfc avatar Dec 18 '22 10:12 saeedfc

Hi @saeedfc, Please set useTerm=F, if you just have two columns. K

guokai8 avatar Dec 18 '22 13:12 guokai8

Hi @saeedfc , please install the newest version. K

guokai8 avatar Sep 12 '23 17:09 guokai8