You have a large image stack (.mrc or .st) and you only want part of the stack to use in some other process
This is a new service and these are new directions, if something doesn't work or is missing from the documentation please contact me so I can fix it. |
From the portal:
The last slice is NOT included in the new stack, if you want just the first slice you would choose 0 (because the stack begins at 0) and 1 |
Through the API:
The API uses a static username and password so it can be used in scripts and you don't need to hard code your user credentials.
username: NCMIR
pass: dl-MRC4me&u
Assuming you want the first 15 slices of the following stack
/ccdbprod/ccdbprod28/home/CCDB_DATA_USER.portal/CCDB_DATA_USER/acquisition/project_20285/microscopy_5402879/processed_data/txbr-art/bin4/AG39-ControlDiet-August2022-A7-SA11k-de64_tomo6.st
send a get request to:
https://processing.crbs.ucsd.edu/API/get_substack
with the following parameters
?path=/ccdbprod/ccdbprod28/home/CCDB_DATA_USER.portal/CCDB_DATA_USER/acquisition/project_20285/microscopy_5402879/processed_data/txbr-art/bin4/AG39-ControlDiet-August2022-A7-SA11k-de64_tomo6.st
&first=0
&last=15
&filename=for_download.mrc
(be sure to include the credentials or you will get back a 403)
All 4 parameters are required, the file will always be in the download directory and the download URL for this example would be
https://processing.crbs.ucsd.edu/dl/project_20285/microscopy_5402879/processed_data/for_download.mrc
As it make take some time to complete the URL for the download may return a 404 until the file is generated. The file will be available at that URL for 5 days. Credentials will be required for the download.
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
|