You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,9 +42,34 @@ All examples follow the same deployment process:
42
42
- Select your compute environment
43
43
- Adjust CPU, GPU, and memory allocations as needed
44
44
- Mount any required data using the **Mount data** option
45
+
- Configure environment variables if the example supports them (see [Environment Variables](#environment-variables) section)
45
46
5. Review the configuration in the **Summary** section
46
47
6. Click **Add and start** to create and launch the Studio
47
48
49
+
## Environment Variables
50
+
51
+
Some examples support environment variable configuration to customize data paths and application settings without modifying the container image. This makes those examples more flexible and reusable across different datasets and configurations.
52
+
53
+
### Examples with Environment Variables
54
+
55
+
Only the following examples support environment variable configuration:
56
+
-**CellxGene**: `DATASET_FILE`, `DATASET_TITLE` - Configure dataset path and display title
57
+
-**Shiny**: `DATA_PATH` - Configure data file path with automatic cloud storage path conversion
58
+
59
+
### Examples without Environment Variables
60
+
61
+
These examples work with their default configurations and don't require environment variable setup:
- Mount the cloud storage bucket/container from Data Explorer in Seqera Studios
112
+
- Provide cloud storage paths in the `DATASET_FILE` environment variable
113
+
114
+
> [!WARNING]
115
+
> **Bucket Mounting Required**: When using cloud storage paths (`s3://`, `gs://`, `az://`), ensure the corresponding buckets are mounted in your Studio via the **Mount data** option. Unmounted buckets will cause the Studio to fail when trying to access the converted paths.
116
+
94
117
## Using in Seqera Studios
95
118
96
119
> [!NOTE]
97
120
> For the common deployment process, see the [main README](../README.md#deploying-to-seqera-studios).
98
121
99
122
Additional steps specific to this example:
100
-
1.Create a data link called 'cellxgene_datasets' and place your .h5ad file there
123
+
1.In the **Compute and Data** tab, click the **Mount data** button to mount your cloud storage bucket/container
101
124
2. Follow the common deployment process
102
-
3. When mounting data, ensure to mount 'cellxgene_datasets' using the **Mount data** option
125
+
3. Configure environment variables:
126
+
-`DATASET_FILE`: Cloud storage path to your .h5ad file
127
+
- Supports S3 (`s3://`), Google Cloud Storage (`gs://`), and Azure Blob Storage (`az://`) paths
- Supports cloud storage paths (automatically converted to local Studio paths)
138
+
- Example: `s3://my-bucket/annotations/cellxgene`
139
+
140
+
> [!WARNING]
141
+
> **Bucket Mounting**: If using cloud storage paths for `USER_DATA_DIR` or `ANNOTATIONS_DIR`, ensure the corresponding buckets are mounted in your Studio. Unmounted buckets will cause the Studio to fail when trying to access the converted paths.
103
142
104
143
## Notes
105
144
106
145
- The app uses CellxGene 1.3.0 for interactive single-cell data visualization
107
-
- User data and annotations are stored in /user-data/cellxgene
108
-
- The default dataset is pbmc3k.h5ad, but can be changed via the DATASET_NAME environment variable
146
+
- User data and annotations directories can be configured via environment variables
147
+
- Default storage locations: `/user-data/cellxgene` (can be overridden with cloud storage paths)
148
+
- Specify your dataset via the DATASET_FILE environment variable
149
+
- Customize the display title via the DATASET_TITLE environment variable
109
150
110
151
> [!NOTE]
111
152
> For common technical notes, see the [main README](../README.md#common-features).
0 commit comments