Trees | Indices | Help |
|
---|
|
|
|||
UserProxy Represents the current user of the connection, with methods delegating to the connection itself. |
|
|||
|
|||
tuple of 3 lists |
|
||
Dict or String |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
cache = CacheBase()
|
|||
logger = logging.getLogger(__name__)
|
|||
annotations = login_required()(jsonp(_annotations))
|
|||
table_query = login_required()(jsonp(_table_query))
|
Imports: re, omero, HttpResponse, HttpResponseServerError, HttpResponseRedirect, Http404, simplejson, smart_str, urlquote, require_POST, template_loader, reverse, Context, FileWrapper, rlong, unwrap, NSBULKANNOTATIONS, imageMarshal, shapeMarshal, md5, StringIO, client_wrapper, ApiUsageException, timeit, TimeIt, Ice, glob, settings, webgateway_cache, CacheBase, webgateway_tempfile, logging, os, traceback, time, zipfile, shutil, login_required, ConnCleaningHttpResponse, Connector, Image, ImageDraw
|
Splits the request query channel information for images into a sequence of channels, window ranges and channel colors.
|
Break the GET information from the request object into details on how to render the image. The following keys are recognized: z - Z axis position t - T axis position q - Quality set (0,0..1,0) m - Model (g for greyscale, c for color) p - Projection (see blitz_gateway.ImageWrapper.PROJECTIONS for keys) x - X position (for now based on top/left offset on the browser window) y - Y position (same as above) c - a comma separated list of channels to be rendered (start index 1)
zm - the zoom setting (as a percentual value)
|
Returns an HttpResponse wrapped jpeg with the rendered bird's eye view for image 'iid'. We now use a thumbnail for performance. #10626
|
Returns an HttpResponse wrapped jpeg with the rendered thumbnail for image 'iid'
|
For the given ROI, choose the shape to render (first time-point, mid z-section) then render a region around that shape, scale to width and height (or default size) and draw the shape on to the region
|
For the given Shape, redner a region around that shape, scale to width and height (or default size) and draw the shape on to the region.
|
Render a region around the specified Shape, scale to width and height (or default size) and draw the shape on to the region. Returns jpeg data.
|
returns a string that identifies this image, along with the settings passed on the request. Useful for using as img identifier key, for prepared image.
|
Fetches the Image object for image 'iid' and prepares it according to the request query, setting the channels, rendering model and projection arguments. The compression level is parsed and returned too. For parameters in request, see getImgDetailsFromReq
|
Returns a jpeg of the OMERO image, rendering only a region specified in query string as region=x,y,width,height. E.g. region=0,512,256,256 Rendering settings can be specified in the request parameters.
|
Renders the image with id {{iid}} at {{z}} and {{t}} as jpeg. Many options are available from the request dict. See getImgDetailsFromReq for list. I am assuming a single Pixels object on image with image-Id='iid'. May be wrong
|
Renders the OME-TIFF representation of the image(s) with id cid in ctx (i)mage, (d)ataset, or (p)roject. For multiple images export, images that require pixels pyramid (big images) will be silently skipped. If exporting a single big image or if all images in a multple image export are big, a 404 will be triggered. A request parameter dryrun can be passed to return the count of images that would actually be exported.
|
Renders a movie from the image with id iid
|
Renders a split channel view of the image with id {{iid}} at {{z}} and {{t}} as jpeg. Many options are available from the request dict. Requires PIL to be installed on the server.
|
Decorator for adding debugging functionality to methods.
|
Decorator for adding connection debugging and returning function result as json, depending on values in kwargs
|
Renders the line plot for the image with id {{iid}} at {{z}} and {{t}} as gif with transparent background. Many options are available from the request dict. I am assuming a single Pixels object on image with Image ID='iid'. May be wrong TODO: cache
|
Renders the line plot for the image with id {{iid}} at {{z}} and {{t}} as gif with transparent background. Many options are available from the request dict. I am assuming a single Pixels object on image with id='iid'. May be wrong TODO: cache
|
Get a dict with image information TODO: cache
|
Get a dict with image information TODO: cache
|
|
lists all Images in a Dataset, as json TODO: cache
|
lists all Images in a Well, as json TODO: cache
|
lists all Datasets in a Project, as json TODO: cache
|
return json encoded details for a dataset TODO: cache
|
lists all Projects, as json TODO: cache
|
grab details from one specific project TODO: cache
|
Returns a dict of options for searching, based on parameters in the http request Request keys include:
|
Search for objects in blitz. Returns json encoded list of marshalled objects found by the search query Request keys include:
|
Requests that the rendering defs passed in the request be set as the default for this image. Rendering defs in request listed at getImgDetailsFromReq TODO: jsonp
|
Lists the images on the same project that would be viable targets for copying rendering settings. TODO: change method to: list_compatible_imgs_json (request, iid, server_id=None, conn=None, **kwargs):
|
If 'fromid' is in request, copy the image ID to session, for applying later using this same method. If list of 'toids' is in request, paste the image ID from the session to the specified images. If 'fromid' AND 'toids' are in the reqest, we simply apply settings and don't save anything to request. If 'to_type' is in request, this can be 'dataset', 'plate', 'acquisition' Returns json dict of Boolean:[Image-IDs] for images that have successfully had the rendering settings applied, or not.
|
Try to remove all rendering defs the logged in user has for this image.
|
This view is responsible for showing the omero_image template Image rendering options in request are used in the display page. See getImgDetailsFromReq.
|
Downloads the archived file(s) as a single file or as a zip (if more than one file)
|
Get a list of path/name strings for original files associated with the imgae
|
|
Returns json data of the ROIs in the specified image.
|
Tests the full_viewer with no args passed to the template.
|
If current user is admin, switch the session to a new connection owned by 'user' (puts the new session ID in the request.session) Return False if not possible
|
Retrieve annotations for object specified by object type and identifier, optionally traversing object model graph. Returns dictionary containing annotations in NSBULKANNOTATIONS namespace if successful, error information otherwise Example: /annotations/Plate/1/ retrieves annotations for plate with identifier 1 Example: /annotations/Plate.wells/1/ retrieves annotations for plate that contains well with identifier 1 Example: /annotations/Screen.plateLinks.child.wells/22/ retrieves annotations for screen that contains plate with well with identifier 22 @param request: http request. @param objtype: Type of target object, or type of target object followed by a slash-separated list of properties to resolve @param objid: Identifier of target object, or identifier of object reached by resolving given properties @param conn: L{omero.gateway.BlitzGateway} @param **kwargs: unused @return: A dictionary with key 'error' with an error message or with key 'data' containing an array of dictionaries with keys 'id' and 'file' of the retrieved annotations |
Query a table specified by fileid Returns a dictionary with query result if successful, error information otherwise
|
Query bulk annotations table attached to an object specified by object type and identifier, optionally traversing object model graph. Returns a dictionary with query result if successful, error information otherwise Example: /table/Plate/1/query/?query=* queries bulk annotations table for plate with identifier 1 Example: /table/Plate.wells/1/query/?query=* queries bulk annotations table for plate that contains well with identifier 1 Example: /table/Screen.plateLinks.child.wells/22/query/?query=Well-22 queries bulk annotations table for screen that contains plate with well with identifier 22 @param request: http request. @param objtype: Type of target object, or type of target object followed by a slash-separated list of properties to resolve @param objid: Identifier of target object, or identifier of object reached by resolving given properties @param conn: L{omero.gateway.BlitzGateway} @param **kwargs: unused @return: A dictionary with key 'error' with an error message or with key 'data' containing a dictionary with keys 'columns' (an array of column names) and 'rows' (an array of rows, each an array of values)
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Sep 23 15:04:49 2014 | http://epydoc.sourceforge.net |