mg-rest-3d server¶
Methods¶
Get Endpoints¶
Get Resolutions¶
-
class
rest.app.
GetResolutions
[source]¶ Class to handle the http requests for returning information about the resolutions that models have been generated for
-
get
(*args, **kwargs)[source]¶ GET List available resolutions from dataset
Parameters: - user_id (str) – User ID
- file_id (str) – Identifier of the file to retrieve data from
Returns: file – JSON file listing the available resolutions within the dataset
Return type: json
Examples
1
curl -X GET http://localhost:5001/mug/api/3dcoord/resolutions?user_id=test&file_id=test_file
-
Get Chromosomes¶
-
class
rest.app.
GetChromosomes
[source]¶ Class to handle the http requests for returning information about the chromosomes that the models have been generated across
-
get
(*args, **kwargs)[source]¶ GET List available chromosomes from dataset
Parameters: - user_id (str) – User ID
- file_id (str) – Identifier of the file to retrieve data from
- res (int) – Resolution
Returns: file – JSON file listing the available chromosomes within a dataset at a given resolution
Return type: json
Examples
1
curl -X GET http://localhost:5001/mug/api/3dcoord/chromosomes?user_id=test&file_id=test_file
-
Get Regions¶
-
class
rest.app.
GetRegions
[source]¶ Class to handle the http requests for returning information about the regions that are available in a given region and level of resolution
-
get
(*args, **kwargs)[source]¶ GET List available models from dataset
Parameters: - user_id (str) – User ID
- file_id (str) – Identifier of the file to retrieve data from
- res (int) – Resolution
- chrom (str) – Chromosome identifier (1, 2, 3, chr1, chr2, chr3, I, II, III, etc) for the chromosome of interest
- start (int) – Start position for a selected region
- end (int) – End position for a selected region
Returns: file – JSON file listing the available models within a dataset at a given resolution and chromosomal region
Return type: json
Examples
1
curl -X GET http://localhost:5001/mug/api/3dcoord/regions?user_id=test&file_id=test_file&res=1000000&chrom=1&start=1&end=1000000
-
Get Models¶
-
class
rest.app.
GetModels
[source]¶ Class to handle the http requests for returning information about the models that are available within a given region.
-
get
(*args, **kwargs)[source]¶ GET List available models from dataset
Parameters: - user_id (str) – User ID
- file_id (str) – Identifier of the file to retrieve data from
- res (int) – Resolution
- region (str) – Region ID
Returns: file – JSON file listing the available models within a dataset at a given resolution and chromosomal region
Return type: json
Examples
1
curl -X GET http://localhost:5001/mug/api/3dcoord/models?user_id=test&file_id=test_file&res=1000000®ion=1
-
Get Model¶
-
class
rest.app.
GetModel
[source]¶ Class to handle the http requests for returning the models from a given region. The list of models is a comma separated list that can return multiple models from the same region
-
get
(*args, **kwargs)[source]¶ GET List available model from dataset
Parameters: - user_id (str) – User ID
- file_id (str) – Identifier of the file to retrieve data from
- res (int) – Resolution
- region (str) – Region ID
- model (str) – model ID
Returns: file – JSON file listing the available models within a dataset at a given resolution and chromosomal region
Return type: json
Examples
1
curl -X GET http://localhost:5001/mug/api/3dcoord/model?user_id=test&file_id=test_file®ion=1&model=model1
-