Skip to content

Commit 6f71116

Browse files
committed
Test remote Conections
1 parent f160fa4 commit 6f71116

1 file changed

Lines changed: 21 additions & 18 deletions

File tree

scripts/Run_Reports.py

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
from 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"
413
db_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

617
if __name__ == "__main__":
718

@@ -10,31 +21,23 @@
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)
@@ -44,4 +47,4 @@
4447
# result["Alt Allele"] = result["Alt Allele"].apply(flatten_allele)
4548

4649

47-
print(result)
50+
# print(result)

0 commit comments

Comments
 (0)