Skip to content

Commit e0eb2a4

Browse files
Merge pull request #1477 from virtualcell/fix-field-data-algorithim
Fix field data algorithim
2 parents c9ef35f + 1f42ea0 commit e0eb2a4

30 files changed

Lines changed: 2313 additions & 278 deletions

File tree

docker/swarm/README_zeke_stack_on_linux.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
-Dvcellapi.privateKey.file=/Users/evalencia/Documents/VCellDummyFiles/apiKeys \
3131
-Dvcell.mongodb.database=test \
3232
-Dvcell.mongodb.host.internal=localhost \
33-
-Dvcell.mongodb.port.internal=27020
33+
-Dvcell.mongodb.port.internal=27020 \
34+
-Dvcell.primarySimdatadir.internal=/Users/evalencia/Documents/TempStorage
3435
popd
3536
```

python-restclient/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ Class | Method | HTTP request | Description
9494
*BioModelResourceApi* | [**get_biomodel_by_id**](docs/BioModelResourceApi.md#get_biomodel_by_id) | **GET** /api/v1/bioModel/{bioModelID} | Get BioModel information in JSON format by ID.
9595
*BioModelResourceApi* | [**upload_bio_model**](docs/BioModelResourceApi.md#upload_bio_model) | **POST** /api/v1/bioModel/upload_bioModel | Upload the BioModel to VCell database. Returns BioModel ID.
9696
*FieldDataResourceApi* | [**analyze_file**](docs/FieldDataResourceApi.md#analyze_file) | **POST** /api/v1/fieldData/analyzeFile | Analyze uploaded image file (Tiff, Zip, and Non-GPL BioFormats) and create default field data specification. Color mapped images not supported (the colors in those images will be interpreted as separate channels). Filenames must be lowercase alphanumeric, and can contain underscores.
97+
*FieldDataResourceApi* | [**analyze_file_and_create**](docs/FieldDataResourceApi.md#analyze_file_and_create) | **POST** /api/v1/fieldData/analyzeAndCreateFromFile | For advanced users, combines the two separate requests of Analyze File and Create From Analyzed File. The following files are accepted: .tif and .zip.
9798
*FieldDataResourceApi* | [**copy_models_field_data**](docs/FieldDataResourceApi.md#copy_models_field_data) | **POST** /api/v1/fieldData/copyModelsFieldData | Copy all existing field data from a BioModel/MathModel that you have access to, but don't own.
9899
*FieldDataResourceApi* | [**create_from_analyzed_file**](docs/FieldDataResourceApi.md#create_from_analyzed_file) | **POST** /api/v1/fieldData/createFromSpecification | Take the field data specification, and save it to the server. User may adjust the analyzed file before uploading to edit defaults.
99100
*FieldDataResourceApi* | [**create_from_simulation**](docs/FieldDataResourceApi.md#create_from_simulation) | **POST** /api/v1/fieldData/createFromSimulation | Create new field data from existing simulation results.

python-restclient/docs/FieldDataResourceApi.md

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ All URIs are relative to *https://vcell-dev.cam.uchc.edu*
55
Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**analyze_file**](FieldDataResourceApi.md#analyze_file) | **POST** /api/v1/fieldData/analyzeFile | Analyze uploaded image file (Tiff, Zip, and Non-GPL BioFormats) and create default field data specification. Color mapped images not supported (the colors in those images will be interpreted as separate channels). Filenames must be lowercase alphanumeric, and can contain underscores.
8+
[**analyze_file_and_create**](FieldDataResourceApi.md#analyze_file_and_create) | **POST** /api/v1/fieldData/analyzeAndCreateFromFile | For advanced users, combines the two separate requests of Analyze File and Create From Analyzed File. The following files are accepted: .tif and .zip.
89
[**copy_models_field_data**](FieldDataResourceApi.md#copy_models_field_data) | **POST** /api/v1/fieldData/copyModelsFieldData | Copy all existing field data from a BioModel/MathModel that you have access to, but don't own.
910
[**create_from_analyzed_file**](FieldDataResourceApi.md#create_from_analyzed_file) | **POST** /api/v1/fieldData/createFromSpecification | Take the field data specification, and save it to the server. User may adjust the analyzed file before uploading to edit defaults.
1011
[**create_from_simulation**](FieldDataResourceApi.md#create_from_simulation) | **POST** /api/v1/fieldData/createFromSimulation | Create new field data from existing simulation results.
@@ -86,6 +87,94 @@ Name | Type | Description | Notes
8687

8788
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
8889

90+
# **analyze_file_and_create**
91+
> FieldDataSavedResults analyze_file_and_create(file=file, file_name=file_name, extent=extent, i_size=i_size, channel_names=channel_names, times=times, annotation=annotation, origin=origin)
92+
93+
For advanced users, combines the two separate requests of Analyze File and Create From Analyzed File. The following files are accepted: .tif and .zip.
94+
95+
### Example
96+
97+
```python
98+
import time
99+
import os
100+
import vcell_client
101+
from vcell_client.models.extent import Extent
102+
from vcell_client.models.field_data_saved_results import FieldDataSavedResults
103+
from vcell_client.models.i_size import ISize
104+
from vcell_client.models.origin import Origin
105+
from vcell_client.rest import ApiException
106+
from pprint import pprint
107+
108+
# Defining the host is optional and defaults to https://vcell-dev.cam.uchc.edu
109+
# See configuration.py for a list of all supported configuration parameters.
110+
configuration = vcell_client.Configuration(
111+
host = "https://vcell-dev.cam.uchc.edu"
112+
)
113+
114+
# The client must configure the authentication and authorization parameters
115+
# in accordance with the API server security policy.
116+
# Examples for each auth method are provided below, use the example that
117+
# satisfies your auth use case.
118+
119+
# Enter a context with an instance of the API client
120+
with vcell_client.ApiClient(configuration) as api_client:
121+
# Create an instance of the API class
122+
api_instance = vcell_client.FieldDataResourceApi(api_client)
123+
file = None # bytearray | (optional)
124+
file_name = 'file_name_example' # str | (optional)
125+
extent = vcell_client.Extent() # Extent | (optional)
126+
i_size = vcell_client.ISize() # ISize | (optional)
127+
channel_names = ['channel_names_example'] # List[str] | (optional)
128+
times = [3.4] # List[float] | (optional)
129+
annotation = 'annotation_example' # str | (optional)
130+
origin = vcell_client.Origin() # Origin | (optional)
131+
132+
try:
133+
# For advanced users, combines the two separate requests of Analyze File and Create From Analyzed File. The following files are accepted: .tif and .zip.
134+
api_response = api_instance.analyze_file_and_create(file=file, file_name=file_name, extent=extent, i_size=i_size, channel_names=channel_names, times=times, annotation=annotation, origin=origin)
135+
print("The response of FieldDataResourceApi->analyze_file_and_create:\n")
136+
pprint(api_response)
137+
except Exception as e:
138+
print("Exception when calling FieldDataResourceApi->analyze_file_and_create: %s\n" % e)
139+
```
140+
141+
142+
143+
### Parameters
144+
145+
Name | Type | Description | Notes
146+
------------- | ------------- | ------------- | -------------
147+
**file** | **bytearray**| | [optional]
148+
**file_name** | **str**| | [optional]
149+
**extent** | [**Extent**](Extent.md)| | [optional]
150+
**i_size** | [**ISize**](ISize.md)| | [optional]
151+
**channel_names** | [**List[str]**](str.md)| | [optional]
152+
**times** | [**List[float]**](float.md)| | [optional]
153+
**annotation** | **str**| | [optional]
154+
**origin** | [**Origin**](Origin.md)| | [optional]
155+
156+
### Return type
157+
158+
[**FieldDataSavedResults**](FieldDataSavedResults.md)
159+
160+
### Authorization
161+
162+
[openId](../README.md#openId)
163+
164+
### HTTP request headers
165+
166+
- **Content-Type**: multipart/form-data
167+
- **Accept**: application/json
168+
169+
### HTTP response details
170+
| Status code | Description | Response headers |
171+
|-------------|-------------|------------------|
172+
**200** | OK | - |
173+
**401** | Not Authorized | - |
174+
**403** | Not Allowed | - |
175+
176+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
177+
89178
# **copy_models_field_data**
90179
> Dict[str, ExternalDataIdentifier] copy_models_field_data(source_model=source_model)
91180

0 commit comments

Comments
 (0)