reg-gen
reg-gen copied to clipboard
gProfileR URI should be improved
- the organism should be added
- evaluate all needed options
- gene names should be sanitised before joining
Possible changes to the gProfiler link in the enrichment report, @JuliaGeh
gProfilerPrefix = "https://biit.cs.ut.ee/gprofiler/gost?organism=hsapiens&query=
gProfilerSuffix = "&ordered=false&all_results=false&no_iea=false&combined=false&measure_underrepresentation=false&domain_scope=annotated&significance_threshold_method=g_SCS&user_threshold=0.05&numeric_namespace=ENTREZGENE_ACC&sources=GO:MF,GO:CC,GO:BP,KEGG,TF,REAC,MIRNA,HPA,CORUM,HP,WP"
gProfilerPrefix + "+".join(gene_name_list) + gProfilerSuffix
@JuliaGeh please fix enrichment output (genes should not have strand or empty parentheses)
TST( ) CACNA1I(-)
I've removed the gprofiler link altogether, as the API has changed too much (now it needs a post request). I've tried to fiddle with javascript to send a json POST request and print out the huge json response in html, but it's not a very efficient approach.
gprofiler provides an official python API - we should make use of it somehow, and link it to the report.