From 77c9d0199181d986f8159823ef8556fd6ba0ede3 Mon Sep 17 00:00:00 2001 From: Rebecca C <57101783+rebecca-c21@users.noreply.github.com> Date: Fri, 16 Oct 2020 18:01:44 -0400 Subject: [PATCH 1/9] get_databases() function --- .idea/.gitignore | 0 .../inspectionProfiles/profiles_settings.xml | 6 ++++ .idea/misc.xml | 7 ++++ .idea/modules.xml | 8 +++++ .idea/singlecellvr.iml | 12 +++++++ .idea/vcs.xml | 6 ++++ .idea/workspace.xml | 32 +++++++++++++++++++ 7 files changed, 71 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/singlecellvr.iml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..7a85af6 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..85d62a7 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/singlecellvr.iml b/.idea/singlecellvr.iml new file mode 100644 index 0000000..8b8c395 --- /dev/null +++ b/.idea/singlecellvr.iml @@ -0,0 +1,12 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..5fa8971 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + 1602885565744 + + + + \ No newline at end of file From 0f6cf233bf4d846ddf2c44f52b7c743a767d66d4 Mon Sep 17 00:00:00 2001 From: Rebecca C <57101783+rebecca-c21@users.noreply.github.com> Date: Fri, 16 Oct 2020 18:13:12 -0400 Subject: [PATCH 2/9] get_databases() function imported glob module as well --- dash_app/apps/dash-singlecell-vr/app.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/dash_app/apps/dash-singlecell-vr/app.py b/dash_app/apps/dash-singlecell-vr/app.py index b447cae..f2c7fe4 100644 --- a/dash_app/apps/dash-singlecell-vr/app.py +++ b/dash_app/apps/dash-singlecell-vr/app.py @@ -13,7 +13,7 @@ import base64 import uuid import qrcode - +import glob # Load data APP_PATH = str(pathlib.Path(__file__).parent.resolve()) @@ -58,6 +58,18 @@ def serve_static(uid): def show_help(): return render_template('help.html') +@app.server.route('/databases') +def get_databases(): + databases = sorted(glob.glob("/databases/*.anndata'")) + return databases + list_databases = [] + for i in range(adata.shape[0]): + dict_datab = dict() + dict_datab['id'] = adata.obs_names[i] + dict_datab['description'] = adata.obs['description'].tolist()[i] + list_databases.append(dict_datab) + return jsonify(list_databases) + app.title = "SingleCellVR" # App layout From 708fdb1f43cd26cc3406959cb23ae169f838b7e9 Mon Sep 17 00:00:00 2001 From: rebeccacombs <71912974+rebeccacombs@users.noreply.github.com> Date: Fri, 16 Oct 2020 18:15:20 -0400 Subject: [PATCH 3/9] Delete workspace.xml --- .idea/workspace.xml | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 .idea/workspace.xml diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100644 index 5fa8971..0000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - - - - 1602885565744 - - - - \ No newline at end of file From d50083d5d1e74b7a9bd1afed05d98142a9103ab5 Mon Sep 17 00:00:00 2001 From: rebeccacombs <71912974+rebeccacombs@users.noreply.github.com> Date: Fri, 16 Oct 2020 18:15:28 -0400 Subject: [PATCH 4/9] Delete profiles_settings.xml --- .idea/inspectionProfiles/profiles_settings.xml | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 .idea/inspectionProfiles/profiles_settings.xml diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml deleted file mode 100644 index 105ce2d..0000000 --- a/.idea/inspectionProfiles/profiles_settings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file From 85972f482d385fe24271678c38daa56602b19bfe Mon Sep 17 00:00:00 2001 From: rebeccacombs <71912974+rebeccacombs@users.noreply.github.com> Date: Fri, 16 Oct 2020 18:15:40 -0400 Subject: [PATCH 5/9] Delete misc.xml --- .idea/misc.xml | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 .idea/misc.xml diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 7a85af6..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - \ No newline at end of file From ba0828f500c9cf55ae45686e407d2ea9aecab8d2 Mon Sep 17 00:00:00 2001 From: rebeccacombs <71912974+rebeccacombs@users.noreply.github.com> Date: Fri, 16 Oct 2020 18:15:48 -0400 Subject: [PATCH 6/9] Delete modules.xml --- .idea/modules.xml | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 .idea/modules.xml diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 85d62a7..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file From bbe01de7c837a06ea91dd1edb9d9839395bce804 Mon Sep 17 00:00:00 2001 From: rebeccacombs <71912974+rebeccacombs@users.noreply.github.com> Date: Fri, 16 Oct 2020 18:15:55 -0400 Subject: [PATCH 7/9] Delete singlecellvr.iml --- .idea/singlecellvr.iml | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 .idea/singlecellvr.iml diff --git a/.idea/singlecellvr.iml b/.idea/singlecellvr.iml deleted file mode 100644 index 8b8c395..0000000 --- a/.idea/singlecellvr.iml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - \ No newline at end of file From 14efdddc459980658bea02a8665dd950932a6479 Mon Sep 17 00:00:00 2001 From: rebeccacombs <71912974+rebeccacombs@users.noreply.github.com> Date: Fri, 16 Oct 2020 18:16:07 -0400 Subject: [PATCH 8/9] Delete vcs.xml --- .idea/vcs.xml | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 .idea/vcs.xml diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 94a25f7..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file From b48f2142114dcca1f51469c3c8a2a2f3480b9bc6 Mon Sep 17 00:00:00 2001 From: rebeccacombs <71912974+rebeccacombs@users.noreply.github.com> Date: Fri, 16 Oct 2020 18:16:23 -0400 Subject: [PATCH 9/9] Delete .gitignore --- .idea/.gitignore | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 .idea/.gitignore diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index e69de29..0000000