mdvtools 1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mdvtools-1.1/.gitignore +62 -0
- mdvtools-1.1/PKG-INFO +55 -0
- mdvtools-1.1/pypireadme.md +29 -0
- mdvtools-1.1/pyproject.toml +65 -0
- mdvtools-1.1/readme.md +30 -0
mdvtools-1.1/.gitignore
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
node_modules
|
|
2
|
+
_tests/
|
|
3
|
+
_dev/
|
|
4
|
+
mlv.config.js
|
|
5
|
+
avocato.config.js
|
|
6
|
+
mlv.dev.config.js
|
|
7
|
+
mlv.dev.stream.js
|
|
8
|
+
.vscode
|
|
9
|
+
*.obsidian
|
|
10
|
+
_mlv/
|
|
11
|
+
_avocato/
|
|
12
|
+
project1/
|
|
13
|
+
.DS_Store
|
|
14
|
+
_test.py
|
|
15
|
+
__pycache__
|
|
16
|
+
vite-dist
|
|
17
|
+
dist
|
|
18
|
+
dist/_mlv
|
|
19
|
+
dist/_avocato
|
|
20
|
+
.env
|
|
21
|
+
*.spec
|
|
22
|
+
python/build
|
|
23
|
+
python/data
|
|
24
|
+
python/mdvtools/dbutils/__pycache__
|
|
25
|
+
python/mdvtools/llm/key.json
|
|
26
|
+
python/mdvtools/llm/temp_code_3.py
|
|
27
|
+
python/mdvtools/llm/timing_results.log
|
|
28
|
+
python/mdvtools/tests/temp/*
|
|
29
|
+
python/mdvtools/test_projects/cache/*
|
|
30
|
+
python/mdvtools/static/*
|
|
31
|
+
.ipynb_checkpoints
|
|
32
|
+
|
|
33
|
+
python/dist/
|
|
34
|
+
docs/jsdocs/build/
|
|
35
|
+
docs/typedoc/
|
|
36
|
+
docs/maindocs/_build/
|
|
37
|
+
docs/maindocs/autoapi/
|
|
38
|
+
|
|
39
|
+
venv/
|
|
40
|
+
venv
|
|
41
|
+
docsenv/
|
|
42
|
+
data/
|
|
43
|
+
|
|
44
|
+
.idea
|
|
45
|
+
xvenv/
|
|
46
|
+
secrets/
|
|
47
|
+
app_logs/
|
|
48
|
+
docker-secrets-local.yml
|
|
49
|
+
|
|
50
|
+
LLM/cache
|
|
51
|
+
LLM/key.json
|
|
52
|
+
|
|
53
|
+
timing_results.log
|
|
54
|
+
docker-local-chat.yml
|
|
55
|
+
chat_log.json
|
|
56
|
+
chatlog.json
|
|
57
|
+
python/chat_debug.log
|
|
58
|
+
chat_debug.log
|
|
59
|
+
|
|
60
|
+
# as seen inside devcontainer
|
|
61
|
+
mdv/
|
|
62
|
+
logs/
|
mdvtools-1.1/PKG-INFO
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mdvtools
|
|
3
|
+
Version: 1.1
|
|
4
|
+
Summary: Multi Dimensional Viewer (MDV) is web based application for analyzing data
|
|
5
|
+
Project-URL: Homepage, https://github.com/Taylor-CCB-Group/MDV
|
|
6
|
+
Project-URL: Bug Tracker, https://github.com/Taylor-CCB-Group/MDV/issues
|
|
7
|
+
Author-email: Martin Sergeant <m.j.sergeant1@googlemail.com>, PeterTodd <peter.todd@well.ox.ac.uk>
|
|
8
|
+
License-Expression: GPL-3.0-only
|
|
9
|
+
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Requires-Python: >=3.10
|
|
13
|
+
Requires-Dist: anndata!=0.10.9,>=0.10.8
|
|
14
|
+
Requires-Dist: fasteners==0.19
|
|
15
|
+
Requires-Dist: flask>=2.2.0
|
|
16
|
+
Requires-Dist: h5py>=3.5.0
|
|
17
|
+
Requires-Dist: mudata>=0.2.3
|
|
18
|
+
Requires-Dist: numpy>=1.22
|
|
19
|
+
Requires-Dist: pandas>=1.5.0
|
|
20
|
+
Requires-Dist: pyyaml>=5.3
|
|
21
|
+
Requires-Dist: scanpy>=1.7.2
|
|
22
|
+
Requires-Dist: scipy>=1.7.3
|
|
23
|
+
Requires-Dist: typing-extensions>=4.1.0
|
|
24
|
+
Requires-Dist: werkzeug>=2.3.0
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
|
|
27
|
+
# MDV Tools Lite
|
|
28
|
+
|
|
29
|
+
This is a lightweight version of MDV, designed to simplify project creation and deployment. It provides:
|
|
30
|
+
|
|
31
|
+
- Tools for creating and manipulating MDV projects
|
|
32
|
+
- A **lightweight server** for viewing and modifying projects
|
|
33
|
+
- A method to **create static websites**, making it ideal for projects that require minimal server-side dependencies.
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
To install:-
|
|
37
|
+
```
|
|
38
|
+
pip install mdvtools
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
To test, run the script below, which creates and serves a project from the pbmc3k test data. `folder` is the location where the project will be stored and can be any location that you have write access. A new folder will be created if one does not exist already.
|
|
42
|
+
|
|
43
|
+
```python
|
|
44
|
+
import scanpy
|
|
45
|
+
from mdvtools.conversions import convert_scanpy_to_mdv
|
|
46
|
+
from mdvtools.serverlite import serve_project
|
|
47
|
+
folder = "/path/to/mytestproject"
|
|
48
|
+
data = scanpy.datasets.pbmc3k_processed()
|
|
49
|
+
proj= convert_scanpy_to_mdv(folder,data)
|
|
50
|
+
serve_project(proj)
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
The MDV project will be in the folder you specified and you can view it by pointing your browser to localhost:5050
|
|
54
|
+
|
|
55
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# MDV Tools Lite
|
|
2
|
+
|
|
3
|
+
This is a lightweight version of MDV, designed to simplify project creation and deployment. It provides:
|
|
4
|
+
|
|
5
|
+
- Tools for creating and manipulating MDV projects
|
|
6
|
+
- A **lightweight server** for viewing and modifying projects
|
|
7
|
+
- A method to **create static websites**, making it ideal for projects that require minimal server-side dependencies.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
To install:-
|
|
11
|
+
```
|
|
12
|
+
pip install mdvtools
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
To test, run the script below, which creates and serves a project from the pbmc3k test data. `folder` is the location where the project will be stored and can be any location that you have write access. A new folder will be created if one does not exist already.
|
|
16
|
+
|
|
17
|
+
```python
|
|
18
|
+
import scanpy
|
|
19
|
+
from mdvtools.conversions import convert_scanpy_to_mdv
|
|
20
|
+
from mdvtools.serverlite import serve_project
|
|
21
|
+
folder = "/path/to/mytestproject"
|
|
22
|
+
data = scanpy.datasets.pbmc3k_processed()
|
|
23
|
+
proj= convert_scanpy_to_mdv(folder,data)
|
|
24
|
+
serve_project(proj)
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
The MDV project will be in the folder you specified and you can view it by pointing your browser to localhost:5050
|
|
28
|
+
|
|
29
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "mdvtools"
|
|
7
|
+
version = "1.1"
|
|
8
|
+
authors = [
|
|
9
|
+
{ name= "Martin Sergeant", email="m.j.sergeant1@googlemail.com"},
|
|
10
|
+
{ name= "PeterTodd", email="peter.todd@well.ox.ac.uk"},
|
|
11
|
+
]
|
|
12
|
+
description = "Multi Dimensional Viewer (MDV) is web based application for analyzing data"
|
|
13
|
+
readme = "pypireadme.md"
|
|
14
|
+
requires-python = ">=3.10"
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Programming Language :: Python :: 3",
|
|
17
|
+
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
|
18
|
+
"Operating System :: OS Independent",
|
|
19
|
+
]
|
|
20
|
+
license = "GPL-3.0-only"
|
|
21
|
+
license-files = ["LICENSE"]
|
|
22
|
+
|
|
23
|
+
dependencies = [
|
|
24
|
+
"fasteners==0.19",
|
|
25
|
+
"Flask>=2.2.0",
|
|
26
|
+
"h5py>=3.5.0",
|
|
27
|
+
"mudata>=0.2.3",
|
|
28
|
+
"pyyaml>=5.3",
|
|
29
|
+
"numpy>=1.22",
|
|
30
|
+
"pandas>=1.5.0",
|
|
31
|
+
"scanpy>=1.7.2",
|
|
32
|
+
"anndata>=0.10.8, !=0.10.9", #0.10.9 is incompatible with some versions of mudata
|
|
33
|
+
"scipy>=1.7.3",
|
|
34
|
+
"typing_extensions>=4.1.0",
|
|
35
|
+
"Werkzeug>=2.3.0"
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
[project.urls]
|
|
39
|
+
"Homepage" = "https://github.com/Taylor-CCB-Group/MDV"
|
|
40
|
+
"Bug Tracker" = "https://github.com/Taylor-CCB-Group/MDV/issues"
|
|
41
|
+
|
|
42
|
+
[tool.hatch.build]
|
|
43
|
+
directory = "./dist"
|
|
44
|
+
|
|
45
|
+
[project.scripts]
|
|
46
|
+
mdvtools = "mdvtools.cli:cli"
|
|
47
|
+
|
|
48
|
+
[tool.hatch.build.targets.wheel.force-include]
|
|
49
|
+
"../python/mdvtools/mdvproject.py" = "mdvtools/mdvproject.py"
|
|
50
|
+
"../python/mdvtools/__init__.py" = "mdvtools/__init__.py"
|
|
51
|
+
"../python/mdvtools/image_view_prototype.py"="mdvtools/image_view_prototype.py"
|
|
52
|
+
"../python/mdvtools/serverlite.py"="mdvtools/serverlite.py"
|
|
53
|
+
"../python/mdvtools/server_utils.py"="mdvtools/server_utils.py"
|
|
54
|
+
"../python/mdvtools/conversions.py"="mdvtools/conversions.py"
|
|
55
|
+
"../python/mdvtools/charts" = "mdvtools/charts"
|
|
56
|
+
"../python/mdvtools/static"="mdvtools/static"
|
|
57
|
+
"../python/mdvtools/templates"="mdvtools/templates"
|
|
58
|
+
"../python/mdvtools/chart_prototypes.py" = "mdvtools/chart_prototypes.py"
|
|
59
|
+
"../python/mdvtools/logging_config.py"="mdvtools/logging_config.py"
|
|
60
|
+
"../python/mdvtools/cli.py"="mdvtools/cli.py"
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
mdvtools-1.1/readme.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
|
|
2
|
+
This folder contains a .toml file to build a scaled down version of MDVTools which has the compiled version of the JavaScript frontend and a lightweight server for local viewing/editing. Only the necessary python modules and dependencies are included and it is pip installable
|
|
3
|
+
|
|
4
|
+
To build , first of all you need to build the javascript. In the main directory:-
|
|
5
|
+
```
|
|
6
|
+
npm run vite-build
|
|
7
|
+
```
|
|
8
|
+
Make sure you have hatch installed:-
|
|
9
|
+
```
|
|
10
|
+
pip install hatch
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Then cd to this directory (mdvtools_lite_build) and build:-
|
|
14
|
+
```
|
|
15
|
+
hatch build
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
To test, run the following script, which will create a virtual environment, activate it, install mdvtools and serve an mdv project. Once you stop the server, the virtual environment will be deleted. You will need to change the paths to reflect your set-up.
|
|
19
|
+
```bash
|
|
20
|
+
python -m venv /path/to/venv
|
|
21
|
+
source /path/to/venv/bin/activate
|
|
22
|
+
pip install /path/to/mdv/mdvtools_lite_build
|
|
23
|
+
python -m mdvtools.serverlite /path/to/mdvproject
|
|
24
|
+
deactivate
|
|
25
|
+
rm -r /path/to/venv
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
//TODO
|
|
29
|
+
include only necessary modules in the JavaScript build
|
|
30
|
+
|