File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11from biofilter import Biofilter
22
3+
4+ # from urllib.parse import quote_plus
5+ # user = "bioadmin"
6+ # pwd = quote_plus("xxx@1111") # -> 'xxx%401111'
7+ # host = "<SERVER_IP>"
8+ # uri = f"postgresql+psycopg2://{user}:{pwd}@{host}:5432/biofilter?sslmode=require"
9+ # # engine = create_engine(uri)
10+
11+
312# db_uri = "sqlite:///dev_biofilter.db"
413db_uri = "postgresql+psycopg2://bioadmin:bioadmin@localhost/biofilter"
14+ # db_uri = "postgresql+psycopg2://bioadmin:Penn%402025@109.199.114.191:5432/biofilter?sslmode=require"
15+
516
617if __name__ == "__main__" :
718
1021 print (bf .metadata .schema_version )
1122
1223 # List reports
13- # print(bf.report.list_reports())
24+ print (bf .report .list_reports ())
1425
1526 # Run specific report
1627 # df = bf.report.run_report("report_etl_status")
1728
18- # result = bf.report.run_report(
19- # "report_gene_to_snp",
20- # assembly='38',
21- # input_data=[
22- # "TXLNGY",
23- # "HGNC:18473",
24- # "246126",
25- # "ENSG00000131002",
26- # "HGNC:5"
27- # ],
28- # )
2929 result = bf .report .run_report (
3030 "report_gene_to_snp" ,
31- input_data = "/home/bioadmin/biofilter/scripts/gene_list.txt"
31+ assembly = '38' ,
32+ input_data = [
33+ "TXLNGY" ,
34+ "HGNC:18473" ,
35+ "246126" ,
36+ "ENSG00000131002" ,
37+ "HGNC:5"
38+ ],
3239 )
3340
34- # bf.report.explain("report_gene_to_snp")
35- # result = bf.report.run_example_report("report_gene_to_snp")
36- # bf.report.list_reports()
37-
3841 # def flatten_allele(val):
3942 # if isinstance(val, list):
4043 # return ";".join(val)
4447 # result["Alt Allele"] = result["Alt Allele"].apply(flatten_allele)
4548
4649
47- print (result )
50+ # print(result)
You can’t perform that action at this time.
0 commit comments